Method | Description | |
---|---|---|
CleanUpAuxiliaryMemory ( ) : void |
Cleans up auxiliary memory used by YAXLib during different sessions of serialization.
|
|
Deserialize ( TextReader textReader ) : object |
Deserializes an object while reading input from an instance of
|
|
Deserialize ( System.Xml.Linq.XElement element ) : object |
Deserializes an object while reading from an instance of
|
|
Deserialize ( XmlReader xmlReader ) : object |
Deserializes an object while reading input from an instance of
|
|
Deserialize ( string input ) : object |
Deserializes the specified string containing the XML serialization and returns an object.
|
|
DeserializeFromFile ( string fileName ) : object |
Deserializes an object from the specified file which contains the XML serialization of the object.
|
|
Serialize ( object obj ) : string |
Serializes the specified object and returns a string containing the XML.
|
|
Serialize ( object obj, TextWriter textWriter ) : void |
Serializes the specified object into a
|
|
Serialize ( object obj, XmlWriter xmlWriter ) : void |
Serializes the specified object into a
|
|
SerializeToFile ( object obj, string fileName ) : void |
Serializes the specified object to file.
|
|
SerializeToXDocument ( object obj ) : XDocument |
Serializes the specified object and returns an instance of
|
|
SetDeserializationBaseObject ( object obj ) : void |
Sets the object used as the base object in the next stage of deserialization. This method enables multi-stage deserialization for YAXLib.
|
|
YAXSerializer ( Type type ) : System |
Initializes a new instance of the YAXSerializer class.
|
|
YAXSerializer ( Type type, YAXExceptionHandlingPolicies exceptionPolicy ) : System |
Initializes a new instance of the YAXSerializer class.
|
|
YAXSerializer ( Type type, YAXExceptionHandlingPolicies exceptionPolicy, YAXExceptionTypes defaultExType ) : System |
Initializes a new instance of the YAXSerializer class.
|
|
YAXSerializer ( Type t, YAXExceptionHandlingPolicies exceptionPolicy, YAXExceptionTypes defaultExType, YAXSerializationOptions option ) : System |
Initializes a new instance of the YAXSerializer class.
|
|
YAXSerializer ( Type type, YAXSerializationOptions seializationOptions ) : System |
Initializes a new instance of the YAXSerializer class.
|
Method | Description | |
---|---|---|
AddNamespacesToElement ( System.Xml.Linq.XElement rootNode ) : void | ||
AddObjectToElement ( System.Xml.Linq.XElement elem, System.Xml.Linq.XName alias, object obj ) : System.Xml.Linq.XElement |
Adds an element contatining data related to the specified object, to an existing xml element.
|
|
AtLeastOneOfCollectionMembersExists ( System.Xml.Linq.XElement elem, |
Checks whether at least one of the collection memebers of the specified collection exists.
|
|
AtLeastOneOfMembersExists ( System.Xml.Linq.XElement elem, |
Checks whether at least one of the memebers (property or field) of the specified object exists.
|
|
CreateElementWithNamespace ( |
Adds the namespace applying to the object type specified in wrapper to the className
|
|
DeserializeBase ( System.Xml.Linq.XElement baseElement ) : object |
The basic method which performs the whole job of deserialization.
|
|
DeserializeCollectionMember ( object o, |
Deserializes the collection member.
|
|
DeserializeCollectionValue ( |
Retreives the collection value.
|
|
DeserializeKeyValuePair ( System.Xml.Linq.XElement baseElement ) : object |
Deserializes the XML reperesentation of a key-value pair, as specified, and returns a
|
|
DeserializeTaggedDictionaryMember ( object o, |
Deserializes a dictionary member which also benefits from a YAXDictionary attribute
|
|
DeserializeTaggedDictionaryValue ( System.Xml.Linq.XElement xelemValue, System.Xml.Linq.XName alias, |
||
FinalizeNewSerializer ( |
||
FindDocumentDefaultNamespace ( ) : void | ||
GetArrayDimentionalIndex ( long linInd, int dims ) : int[] |
Gets the dimensional index for an element of a multi-dimensional array from a linear index specified.
|
|
GetFieldsToBeSerialized ( ) : IEnumerable |
Gets the sequence of fields to be serialized for the serializer's underlying type. This sequence is retreived according to the field-types specified by the user.
|
|
GetFieldsToBeSerialized ( |
Gets the sequence of fields to be serialized for the specified type. This sequence is retreived according to the field-types specified by the user.
|
|
ImportNamespaces ( |
||
InvokeCustomDeserializerFromAttribute ( Type customDeserType, XAttribute attrToDeser ) : object | ||
InvokeCustomDeserializerFromElement ( Type customDeserType, XElement elemToDeser ) : object | ||
InvokeCustomDeserializerFromValue ( Type customDeserType, string valueToDeser ) : object | ||
InvokeCustomSerializerToAttribute ( Type customSerType, object objToSerialize, XAttribute attrToFill ) : void | ||
InvokeCustomSerializerToElement ( Type customSerType, object objToSerialize, XElement elemToFill ) : void | ||
InvokeCustomSerializerToValue ( Type customSerType, object objToSerialize ) : string | ||
MakeBaseElement ( XElement insertionLocation, XName name, object value, bool &alreadyAdded ) : XElement |
Makes an XML element with the specified name, corresponding to the object specified.
|
|
MakeCollectionElement ( XElement insertionLocation, XName elementName, object elementValue, YAXCollectionAttribute collectionAttrInst, string format ) : XElement |
Serializes a collection object.
|
|
MakeDictionaryElement ( XElement insertionLocation, XName elementName, object elementValue, YAXDictionaryAttribute dicAttrInst, YAXCollectionAttribute collectionAttrInst ) : XElement |
Creates a dictionary element according to the specified options, as described by the attribute instances.
|
|
MakeElement ( XElement insertionLocation, MemberWrapper member, object elementValue, bool &moveDescOnly, bool &alreadyAdded ) : XElement |
Makes the element corresponding to the member specified.
|
|
NewInternalSerializer ( Type type, XNamespace namespaceToOverride, XElement insertionLocation ) : YAXSerializer | ||
OnExceptionOccurred ( YAXException ex, YAXExceptionTypes exceptionType ) : void |
Called when an exception occurs inside the library. It applies the exception handling policies.
|
|
PushObjectToSerializationStack ( object obj ) : void | ||
RegisterNamespace ( XNamespace ns, string prefix ) : void |
Registers the namespace to be added to the root element of the serialized document.
|
|
RegisterYaxLibNamespace ( ) : void | ||
RetreiveElementValue ( object o, MemberWrapper member, string elemValue, XElement xelemValue ) : void |
Retreives the value of the element from the specified XML element or attribute.
|
|
SerializeBase ( object obj ) : XElement |
One of the base methods that perform the whole job of serialization.
|
|
SerializeBase ( object obj, XName className ) : XElement |
The base method that performs the whole job of serialization. Other serialization methods call this method to have their job done.
|
|
SerializeXDocument ( object obj ) : XDocument |
Serializes the object into an
|
|
SetBaseElement ( XElement baseElement ) : void |
Sets the base XML element. This method is used when an
|
|
SetNamespaceToOverrideEmptyNamespace ( XNamespace otherNamespace ) : void | ||
VerifyDictionaryPairElements ( Type &keyType, bool &isKeyAttrib, bool &isKeyContent, XName keyAlias, XElement childElem ) : bool |
Verifies the existence of dictionary pair
|
public static CleanUpAuxiliaryMemory ( ) : void | ||
return | void |
public Deserialize ( TextReader textReader ) : object | ||
textReader | TextReader | The |
return | object |
public Deserialize ( System.Xml.Linq.XElement element ) : object | ||
element | System.Xml.Linq.XElement | The |
return | object |
public Deserialize ( XmlReader xmlReader ) : object | ||
xmlReader | XmlReader | The |
return | object |
public Deserialize ( string input ) : object | ||
input | string | The input string containing the XML serialization. |
return | object |
public DeserializeFromFile ( string fileName ) : object | ||
fileName | string | Path to the file. |
return | object |
public Serialize ( object obj ) : string | ||
obj | object | The object to serialize. |
return | string |
public Serialize ( object obj, TextWriter textWriter ) : void | ||
obj | object | The object to serialize. |
textWriter | TextWriter | The |
return | void |
public Serialize ( object obj, XmlWriter xmlWriter ) : void | ||
obj | object | The object to serialize. |
xmlWriter | XmlWriter | The |
return | void |
public SerializeToFile ( object obj, string fileName ) : void | ||
obj | object | The object to serialize. |
fileName | string | Path to the file. |
return | void |
public SerializeToXDocument ( object obj ) : XDocument | ||
obj | object | The object to serialize. |
return | XDocument |
public SetDeserializationBaseObject ( object obj ) : void | ||
obj | object | The object used as the base object in the next stage of deserialization. |
return | void |
public YAXSerializer ( Type type ) : System | ||
type | Type | The type of the object being serialized/deserialized. |
return | System |
public YAXSerializer ( Type type, YAXExceptionHandlingPolicies exceptionPolicy ) : System | ||
type | Type | The type of the object being serialized/deserialized. |
exceptionPolicy | YAXExceptionHandlingPolicies | The exception handling policy. |
return | System |
public YAXSerializer ( Type type, YAXExceptionHandlingPolicies exceptionPolicy, YAXExceptionTypes defaultExType ) : System | ||
type | Type | The type of the object being serialized/deserialized. |
exceptionPolicy | YAXExceptionHandlingPolicies | The exception handling policy. |
defaultExType | YAXExceptionTypes | The exceptions are treated as the value specified, unless otherwise specified. |
return | System |
public YAXSerializer ( Type t, YAXExceptionHandlingPolicies exceptionPolicy, YAXExceptionTypes defaultExType, YAXSerializationOptions option ) : System | ||
t | Type | The type of the object being serialized/deserialized. |
exceptionPolicy | YAXExceptionHandlingPolicies | The exception handling policy. |
defaultExType | YAXExceptionTypes | The exceptions are treated as the value specified, unless otherwise specified. |
option | YAXSerializationOptions | The serialization option. |
return | System |
public YAXSerializer ( Type type, YAXSerializationOptions seializationOptions ) : System | ||
type | Type | The type of the object being serialized/deserialized. |
seializationOptions | YAXSerializationOptions | The serialization option flags. |
return | System |