C# Class System.Runtime.Serialization.XmlFormatterSerializer

显示文件 Open project: kumpera/mono Class Usage Examples

Public Methods

Method Description
Serialize ( Type type, object graph ) : void
Serialize ( XmlDictionaryWriter writer, object graph, Type declaredType, KnownTypeCollection types, bool ignoreUnknown, int maxItems, string root_ns, bool preserveObjectReferences, DataContractResolver resolver, DataContractResolver defaultResolver ) : void
SerializePrimitive ( Type type, object graph, XmlQualifiedName qname ) : void
TrySerializeAsReference ( bool isMapReference, object graph, string &label ) : bool
WriteEndElement ( ) : void
WriteStartElement ( string memberName, string memberNamespace, string contentNamespace ) : void
XmlFormatterSerializer ( XmlDictionaryWriter writer, KnownTypeCollection types, bool ignoreUnknown, int maxItems, string root_ns, bool preserveObjectReferences, DataContractResolver resolver, DataContractResolver defaultResolver ) : System

Method Details

Serialize() public method

public Serialize ( Type type, object graph ) : void
type System.Type
graph object
return void

Serialize() public static method

public static Serialize ( XmlDictionaryWriter writer, object graph, Type declaredType, KnownTypeCollection types, bool ignoreUnknown, int maxItems, string root_ns, bool preserveObjectReferences, DataContractResolver resolver, DataContractResolver defaultResolver ) : void
writer System.Xml.XmlDictionaryWriter
graph object
declaredType System.Type
types KnownTypeCollection
ignoreUnknown bool
maxItems int
root_ns string
preserveObjectReferences bool
resolver DataContractResolver
defaultResolver DataContractResolver
return void

SerializePrimitive() public method

public SerializePrimitive ( Type type, object graph, XmlQualifiedName qname ) : void
type System.Type
graph object
qname System.Xml.XmlQualifiedName
return void

TrySerializeAsReference() public method

public TrySerializeAsReference ( bool isMapReference, object graph, string &label ) : bool
isMapReference bool
graph object
label string
return bool

WriteEndElement() public method

public WriteEndElement ( ) : void
return void

WriteStartElement() public method

public WriteStartElement ( string memberName, string memberNamespace, string contentNamespace ) : void
memberName string
memberNamespace string
contentNamespace string
return void

XmlFormatterSerializer() public method

public XmlFormatterSerializer ( XmlDictionaryWriter writer, KnownTypeCollection types, bool ignoreUnknown, int maxItems, string root_ns, bool preserveObjectReferences, DataContractResolver resolver, DataContractResolver defaultResolver ) : System
writer System.Xml.XmlDictionaryWriter
types KnownTypeCollection
ignoreUnknown bool
maxItems int
root_ns string
preserveObjectReferences bool
resolver DataContractResolver
defaultResolver DataContractResolver
return System