C# Class XMLConverter, SDK-DotNet

Extension methods for the dynamic object.
Afficher le fichier Open project: Proxomo/SDK-DotNet Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

ToXml() public static méthode

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

ToXml() public static méthode

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
Résultat System.Xml.Linq.XElement