C# 클래스 Hypermedia.Sample.XmlNodeExtensions

파일 보기 프로젝트 열기: cosullivan/Hypermedia

공개 메소드들

메소드 설명
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