C# Class BlueCollar.ExceptionXElement

Creates an XML Linq XElement from an Exception instance.
Inheritance: System.Xml.Linq.XElement
Mostrar archivo Open project: ChadBurggraf/blue-collar Class Usage Examples

Public Methods

Method Description
ExceptionXElement ( Exception exception ) : System

Initializes a new instance of the ExceptionXElement class.

SerializeToXElement ( Exception exception ) : System.Xml.Linq.XElement

Serializes the given Exception to an XElement object.

Method Details

ExceptionXElement() public method

Initializes a new instance of the ExceptionXElement class.
public ExceptionXElement ( Exception exception ) : System
exception System.Exception An Exception to create an XElement from.
return System

SerializeToXElement() public static method

Serializes the given Exception to an XElement object.
public static SerializeToXElement ( Exception exception ) : System.Xml.Linq.XElement
exception System.Exception The Exception to serialize.
return System.Xml.Linq.XElement