C# Class MWS.Helper.XmlHelper

Mostra file Open project: Movilizer/.NET_Connector Class Usage Examples

Public Methods

Method Description
DeserializeFromFile ( string filename, Type attrType, string defaultNameSpace ) : object
DeserializeFromResourceCode ( string resourceCode, Type attrType, string defaultNameSpace ) : object
DeserializeFromStream ( Stream stream, Type attrType, string defaultNameSpace ) : object
DeserializeFromString ( string str, Type attrType, string defaultNameSpace ) : object
GetXmlNamespace ( string s ) : string
Serialize ( TextWriter writer, object attribute ) : void
SerializeToConsole ( object attribute ) : void
SerializeToFile ( string filename, object attribute ) : void
SerializeToString ( object attribute ) : string

Method Details

DeserializeFromFile() public static method

public static DeserializeFromFile ( string filename, Type attrType, string defaultNameSpace ) : object
filename string
attrType System.Type
defaultNameSpace string
return object

DeserializeFromResourceCode() public static method

public static DeserializeFromResourceCode ( string resourceCode, Type attrType, string defaultNameSpace ) : object
resourceCode string
attrType System.Type
defaultNameSpace string
return object

DeserializeFromStream() public static method

public static DeserializeFromStream ( Stream stream, Type attrType, string defaultNameSpace ) : object
stream Stream
attrType System.Type
defaultNameSpace string
return object

DeserializeFromString() public static method

public static DeserializeFromString ( string str, Type attrType, string defaultNameSpace ) : object
str string
attrType System.Type
defaultNameSpace string
return object

GetXmlNamespace() public static method

public static GetXmlNamespace ( string s ) : string
s string
return string

Serialize() public static method

public static Serialize ( TextWriter writer, object attribute ) : void
writer System.IO.TextWriter
attribute object
return void

SerializeToConsole() public static method

public static SerializeToConsole ( object attribute ) : void
attribute object
return void

SerializeToFile() public static method

public static SerializeToFile ( string filename, object attribute ) : void
filename string
attribute object
return void

SerializeToString() public static method

public static SerializeToString ( object attribute ) : string
attribute object
return string