C# 클래스 SharpNeat.Domains.XmlUtils

Static helper methods for reading value from XML configuration data in DOM form.
파일 보기 프로젝트 열기: colgreen/sharpneat

공개 메소드들

메소드 설명
GetValueAsBool ( XmlElement xmlParent, string elemName ) : bool

Parse the inner text of element with the given name as a boolean. If element is missing or parsing fails then throws an ArgumentException.

GetValueAsDouble ( XmlElement xmlParent, string elemName ) : double

Parse the inner text of element with the given name as a double. If element is missing or parsing fails then throws an ArgumentException.

GetValueAsInt ( XmlElement xmlParent, string elemName ) : int

Parse the inner text of element with the given name as an integer. If element is missing or parsing fails then throws an ArgumentException.

GetValueAsString ( XmlElement xmlParent, string elemName ) : string

Read the inner text of element with the given name. If element is missing then throws an ArgumentException.

TryGetValueAsBool ( XmlElement xmlParent, string elemName ) : bool?

Parse the inner text of element with the given name as a boolean. If element is missing or parsing fails then returns null.

TryGetValueAsDouble ( XmlElement xmlParent, string elemName ) : double?

Parse the inner text of element with the given name as a double. If element is missing or parsing fails then returns null.

TryGetValueAsInt ( XmlElement xmlParent, string elemName ) : int?

Parse the inner text of element with the given name as an integer. If element is missing or parsing fails then returns null.

TryGetValueAsString ( XmlElement xmlParent, string elemName ) : string

Read the inner text of element with the given name. If element is missing then returns null.

메소드 상세

GetValueAsBool() 공개 정적인 메소드

Parse the inner text of element with the given name as a boolean. If element is missing or parsing fails then throws an ArgumentException.
public static GetValueAsBool ( XmlElement xmlParent, string elemName ) : bool
xmlParent System.Xml.XmlElement
elemName string
리턴 bool

GetValueAsDouble() 공개 정적인 메소드

Parse the inner text of element with the given name as a double. If element is missing or parsing fails then throws an ArgumentException.
public static GetValueAsDouble ( XmlElement xmlParent, string elemName ) : double
xmlParent System.Xml.XmlElement
elemName string
리턴 double

GetValueAsInt() 공개 정적인 메소드

Parse the inner text of element with the given name as an integer. If element is missing or parsing fails then throws an ArgumentException.
public static GetValueAsInt ( XmlElement xmlParent, string elemName ) : int
xmlParent System.Xml.XmlElement
elemName string
리턴 int

GetValueAsString() 공개 정적인 메소드

Read the inner text of element with the given name. If element is missing then throws an ArgumentException.
public static GetValueAsString ( XmlElement xmlParent, string elemName ) : string
xmlParent System.Xml.XmlElement
elemName string
리턴 string

TryGetValueAsBool() 공개 정적인 메소드

Parse the inner text of element with the given name as a boolean. If element is missing or parsing fails then returns null.
public static TryGetValueAsBool ( XmlElement xmlParent, string elemName ) : bool?
xmlParent System.Xml.XmlElement
elemName string
리턴 bool?

TryGetValueAsDouble() 공개 정적인 메소드

Parse the inner text of element with the given name as a double. If element is missing or parsing fails then returns null.
public static TryGetValueAsDouble ( XmlElement xmlParent, string elemName ) : double?
xmlParent System.Xml.XmlElement
elemName string
리턴 double?

TryGetValueAsInt() 공개 정적인 메소드

Parse the inner text of element with the given name as an integer. If element is missing or parsing fails then returns null.
public static TryGetValueAsInt ( XmlElement xmlParent, string elemName ) : int?
xmlParent System.Xml.XmlElement
elemName string
리턴 int?

TryGetValueAsString() 공개 정적인 메소드

Read the inner text of element with the given name. If element is missing then returns null.
public static TryGetValueAsString ( XmlElement xmlParent, string elemName ) : string
xmlParent System.Xml.XmlElement
elemName string
리턴 string