C# Класс XMLConverter, SDK-DotNet

Extension methods for the dynamic object.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

IsSimpleType() публичный статический Метод

Determines whether [is simple type] [the specified type].
public static IsSimpleType ( this type ) : bool
type this The type to check.
Результат bool

ToXml() публичный статический Метод

Converts an anonymous type to an XElement.
public static ToXml ( object obj, bool includetype = false ) : System.Xml.Linq.XElement
obj object
includetype bool
Результат System.Xml.Linq.XElement

ToXml() публичный статический Метод

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
Результат System.Xml.Linq.XElement