Class XmlSerializer
Serializes and deserializes an object, or an entire graph of connected objects, in Xml format using the System.Runtime.Serialization.DataContractSerializer.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Namespace: IRM.Messaging
Assembly: IRM.dll
Syntax
public class XmlSerializer : ISerialize, IDeserializeUntyped
Methods
Deserialize(Stream, String)
De-serializes an object from a System.IO.Stream.
Declaration
public virtual object Deserialize(Stream input, string typeName)
Parameters
System.IO.Stream
input
The stream with the serialized object. |
String
typeName
The full name of the type. |
Returns
Object
The de-serialized object. |
Implements
Deserialize<T>(Stream)
De-serializes an object from a System.IO.Stream.
Declaration
public T Deserialize<T>(Stream input)
Parameters
System.IO.Stream
input
The stream with the serialized object. |
Returns
T
The de-serialized object. |
Type Parameters
T
The type of object to de-serialize. |
Implements
Serialize<T>(Stream, T)
Serializes an object to a System.IO.Stream.
Declaration
public void Serialize<T>(Stream output, T graph)
Parameters
System.IO.Stream
output
The stream to serialize the object to. |
T
graph
The object to serialize. |
Type Parameters
T
The type of object to serialize. |