C# Класс Hypermedia.Sample.XmlNodeExtensions

Показать файл Открыть проект

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

Метод Описание
GetDateTimeOffset ( this node, string name, DateTimeOffset defaultValue = default(DateTimeOffset) ) : DateTimeOffset

Gets an integer value from the given node's attribute.

GetInt32 ( this node, string name, int defaultValue ) : int

Gets an integer value from the given node's attribute.

GetString ( this node, string name, string defaultValue = null ) : string

Gets a string value from the given node's attribute.

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

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

Gets an integer value from the given node's attribute.
public static GetDateTimeOffset ( this node, string name, DateTimeOffset defaultValue = default(DateTimeOffset) ) : DateTimeOffset
node this The node to return the value from.
name string The name of the attribute to return the value for.
defaultValue DateTimeOffset The default value to return in the case that the attribute doesnt exist.
Результат DateTimeOffset

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

Gets an integer value from the given node's attribute.
public static GetInt32 ( this node, string name, int defaultValue ) : int
node this The node to return the value from.
name string The name of the attribute to return the value for.
defaultValue int The default value to return in the case that the attribute doesnt exist.
Результат int

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

Gets a string value from the given node's attribute.
public static GetString ( this node, string name, string defaultValue = null ) : string
node this The node to return the value from.
name string The name of the attribute to return the value for.
defaultValue string The default value to return in the case that the attribute doesnt exist.
Результат string