C# 클래스 AGS.Types.SerializeUtils

파일 보기 프로젝트 열기: adventuregamestudio/ags 1 사용 예제들

공개 메소드들

메소드 설명
CompatStringToResolution ( String s ) : Size
DeserializeFromXML ( object obj, XmlNode node ) : void
GetAttributeInt ( XmlNode node, string attrName ) : int
GetAttributeString ( XmlNode node, string attrName ) : string
GetChildNodes ( XmlNode parent, string elementName ) : XmlNodeList

Wrapper function for SelectSingleNode that throws an exception mentioning the node name if it is not found. Returns the node's children if successful.

GetElementString ( XmlNode node, string elementName ) : string

Wrapper function for SelectSingleNode that throws an exception mentioning the node name if it is not found. Returns the node text if successful.

GetElementStringOrDefault ( XmlNode node, string elementName, string defaultValue ) : string

Wrapper function for SelectSingleNode that returns the node text or some default text if it does not exist.

ResolutionToCompatString ( Size size ) : String
SerializeToXML ( object obj, XmlTextWriter writer ) : void
SerializeToXML ( object obj, XmlTextWriter writer, bool writeEndElement ) : void

메소드 상세

CompatStringToResolution() 공개 정적인 메소드

public static CompatStringToResolution ( String s ) : Size
s String
리턴 System.Drawing.Size

DeserializeFromXML() 공개 정적인 메소드

public static DeserializeFromXML ( object obj, XmlNode node ) : void
obj object
node System.Xml.XmlNode
리턴 void

GetAttributeInt() 공개 정적인 메소드

public static GetAttributeInt ( XmlNode node, string attrName ) : int
node System.Xml.XmlNode
attrName string
리턴 int

GetAttributeString() 공개 정적인 메소드

public static GetAttributeString ( XmlNode node, string attrName ) : string
node System.Xml.XmlNode
attrName string
리턴 string

GetChildNodes() 공개 정적인 메소드

Wrapper function for SelectSingleNode that throws an exception mentioning the node name if it is not found. Returns the node's children if successful.
public static GetChildNodes ( XmlNode parent, string elementName ) : XmlNodeList
parent System.Xml.XmlNode
elementName string
리턴 System.Xml.XmlNodeList

GetElementString() 공개 정적인 메소드

Wrapper function for SelectSingleNode that throws an exception mentioning the node name if it is not found. Returns the node text if successful.
public static GetElementString ( XmlNode node, string elementName ) : string
node System.Xml.XmlNode
elementName string
리턴 string

GetElementStringOrDefault() 공개 정적인 메소드

Wrapper function for SelectSingleNode that returns the node text or some default text if it does not exist.
public static GetElementStringOrDefault ( XmlNode node, string elementName, string defaultValue ) : string
node System.Xml.XmlNode
elementName string
defaultValue string
리턴 string

ResolutionToCompatString() 공개 정적인 메소드

public static ResolutionToCompatString ( Size size ) : String
size System.Drawing.Size
리턴 String

SerializeToXML() 공개 정적인 메소드

public static SerializeToXML ( object obj, XmlTextWriter writer ) : void
obj object
writer System.Xml.XmlTextWriter
리턴 void

SerializeToXML() 공개 정적인 메소드

public static SerializeToXML ( object obj, XmlTextWriter writer, bool writeEndElement ) : void
obj object
writer System.Xml.XmlTextWriter
writeEndElement bool
리턴 void