Property | Type | Description | |
---|---|---|---|
CreateGetter | object>.Func | ||
GetBinaryConstructorType | |||
GetGetter | object>.Func | ||
GetObjectInfo | |||
SetObjectInfoAttributes | void |
Method | Description | |
---|---|---|
Dispose ( ) : void |
Dispose, release references.
|
|
Reset ( ) : void |
Clears the Collections.
|
|
Serialize ( object obj ) : |
Serializes an Object to a new XmlDocument.
|
|
Serialize ( object obj, String name, |
Serializes an Object and appends it to root (DocumentElement) of the specified XmlDocument.
|
|
Serialize ( object obj, String name, |
Serializes an Object and appends it to the specified XmlNode.
|
|
Serialize ( object obj, string filename ) : void |
Serializes an Object to a file.
|
Method | Description | |
---|---|---|
BuildSerializeableTypeDictionary ( ) : |
Builds the Hashtable that will be written to XML as the type dictionary. TODO: Why Hashtable? Better use a typesafe generic Dictionary. Maybe filesize can be decreased. While serialization the key of the type dictionary is the Type so it's easy to determine whether a Type is registered already. For deserialization the order is reverse: find a Type for a given key. This methods creates a reversed Hashtable with the Types information stored in TypeInfo instances. |
|
CheckPropertyHasToBeSerialized ( |
Returns wether the Property has to be serialized or not (depending on SerializationIgnoredAttributeType).
|
|
GetTypeKey ( |
Gets the key of a Type from the type dictionary. If the Type is not registered, yet, it will be registered here.
|
|
GetTypeKey ( object obj ) : string |
Gets the key of a Type from the type dictionary. If the Type is not registered, yet, it will be registered here.
|
|
SerializeBinaryObject ( Object obj, |
Serializes binary data to a XmlNode.
|
|
SerializeProperties ( object obj, |
Serializes the properties an Object and appends them to the specified XmlNode.
|
|
SetCollectionItems ( object obj, ICollection value, |
Sets the items on a collection. This method could be simplified since it's mainly the same code you can find in SetProperty() |
|
SetProperties ( object obj, |
||
SetProperty ( object obj, |
Sets a property.
|
|
SetProperty ( object obj, object value, |
Sets a property. This is the central method which is called recursivly! |
|
SetXmlElementFromBasicPropertyValue ( |
||
WriteTypeDictionary ( |
Writes the TypeDictionary to XML.
|
Method | Description | |
---|---|---|
CreateGetter ( |
||
GetBinaryConstructorType ( |
||
GetGetter ( |
||
GetObjectInfo ( string name, |
Returns an ObjectInfo filled with the values of Name, Type, and Assembly.
|
|
SetObjectInfoAttributes ( String propertyName, |
Sets the property attributes of a Property to an XmlNode.
|
protected BuildSerializeableTypeDictionary ( ) : |
||
return |
protected CheckPropertyHasToBeSerialized ( |
||
pi | ||
return | bool |
protected GetTypeKey ( |
||
type | ||
return | string |
public Serialize ( object obj ) : |
||
obj | object | |
return |
public Serialize ( object obj, String name, |
||
obj | object | |
name | String | |
doc | ||
return | void |
public Serialize ( object obj, String name, |
||
obj | object | |
name | String | |
parent | ||
return | void |
public Serialize ( object obj, string filename ) : void | ||
obj | object | |
filename | string | |
return | void |
protected SerializeBinaryObject ( Object obj, |
||
obj | Object | |
ctorParamType | ||
parent | ||
return | void |
protected SerializeProperties ( object obj, |
||
obj | object | |
parent | ||
return | void |
protected SetCollectionItems ( object obj, ICollection value, |
||
obj | object | |
value | ICollection | |
parent | ||
return | void |
protected SetProperties ( object obj, |
||
obj | object | |
node | ||
return | void |
protected SetProperty ( object obj, |
||
obj | object | |
pi | ||
parent | ||
return | void |
protected SetProperty ( object obj, object value, |
||
obj | object | |
value | object | |
pi | ||
parent | ||
return | void |
protected SetXmlElementFromBasicPropertyValue ( |
||
prop | ||
pt | ||
value | object | |
parent | ||
return | void |
protected WriteTypeDictionary ( |
||
parentNode | ||
return | void |