Class XmlStore
Inheritance
System.Object
XmlStore
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ArtOfTest.Common.Serialization
Assembly: ArtOfTest.WebAii.dll
Syntax
public class XmlStore
Constructors
XmlStore(IXmlPersistable, IEnumerable<Type>)
Declaration
public XmlStore(IXmlPersistable value, IEnumerable<Type> knownTypes = null)
Parameters
IXmlPersistable
value
|
System.Collections.Generic.IEnumerable<System.Type>
knownTypes
|
Methods
ReadFromFile<T>(String, IEnumerable<Type>)
Declaration
public static T ReadFromFile<T>(string filename, IEnumerable<Type> knownTypes = null)
where T : IXmlPersistable
Parameters
System.String
filename
|
System.Collections.Generic.IEnumerable<System.Type>
knownTypes
|
Returns
T
|
Type Parameters
T
|
ReadFromStream<T>(Stream, IEnumerable<Type>)
Declaration
public static T ReadFromStream<T>(Stream stream, IEnumerable<Type> knownTypes = null)
Parameters
System.IO.Stream
stream
|
System.Collections.Generic.IEnumerable<System.Type>
knownTypes
|
Returns
T
|
Type Parameters
T
|
ReadFromString<T>(String, IEnumerable<Type>)
Declaration
public static T ReadFromString<T>(string xmlString, IEnumerable<Type> knownTypes = null)
Parameters
System.String
xmlString
|
System.Collections.Generic.IEnumerable<System.Type>
knownTypes
|
Returns
T
|
Type Parameters
T
|
ResolveSerializedType(String)
Declaration
public static Type ResolveSerializedType(string typeName)
Parameters
System.String
typeName
|
Returns
System.Type
|
SaveToFile(String)
Declaration
public void SaveToFile(string filename)
Parameters
System.String
filename
|
SaveToFile(String, IXmlPersistable, IEnumerable<Type>)
Declaration
public static void SaveToFile(string filename, IXmlPersistable value, IEnumerable<Type> knownTypes = null)
Parameters
System.String
filename
|
IXmlPersistable
value
|
System.Collections.Generic.IEnumerable<System.Type>
knownTypes
|
SaveToStream(Stream, IXmlPersistable, IEnumerable<Type>)
Declaration
public static void SaveToStream(Stream stream, IXmlPersistable value, IEnumerable<Type> knownTypes = null)
Parameters
System.IO.Stream
stream
|
IXmlPersistable
value
|
System.Collections.Generic.IEnumerable<System.Type>
knownTypes
|
SaveToString()
Declaration
public string SaveToString()
Returns
System.String
|
SaveToString(IXmlPersistable, IEnumerable<Type>)
Declaration
public static string SaveToString(IXmlPersistable value, IEnumerable<Type> knownTypes = null)
Parameters
IXmlPersistable
value
|
System.Collections.Generic.IEnumerable<System.Type>
knownTypes
|
Returns
System.String
|