C# Class XMLConverter, SDK-DotNet

Extension methods for the dynamic object.
ファイルを表示 Open project: Proxomo/SDK-DotNet Class Usage Examples

Public Methods

Method Description
IsSimpleType ( this type ) : bool

Determines whether [is simple type] [the specified type].

ToXml ( object obj, bool includetype = false ) : System.Xml.Linq.XElement

Converts an anonymous type to an XElement.

ToXml ( object obj, string element, bool includetype = false ) : System.Xml.Linq.XElement

Converts an anonymous type to an XElement.

Private Methods

Method Description
CreateWithType ( System.Xml.Linq.XElement el, PropertyInfo prop ) : System.Xml.Linq.XElement

Adds a Type attribute an element.

GetArrayElement ( PropertyInfo info, Array input, bool includetype ) : System.Xml.Linq.XElement

Gets the array element.

Method Details

IsSimpleType() public static method

Determines whether [is simple type] [the specified type].
public static IsSimpleType ( this type ) : bool
type this The type to check.
return bool

ToXml() public static method

Converts an anonymous type to an XElement.
public static ToXml ( object obj, bool includetype = false ) : System.Xml.Linq.XElement
obj object
includetype bool
return System.Xml.Linq.XElement

ToXml() public static method

Converts an anonymous type to an XElement.
public static ToXml ( object obj, string element, bool includetype = false ) : System.Xml.Linq.XElement
obj object The input.
element string The element name.
includetype bool
return System.Xml.Linq.XElement