AgateLib.Serialization.Formatters.Xml.XmlFormatter.XmlFormatter.CustomSerializationEntry Struct Reference

The CustomSerializationEntry mimics the System.Runtime.Serialization.SerializationEntry class to make it possible to create our own entries. The class acts as a placeholder for a type, it's name and it's value. This class is used in the XmlFormatter class to serialize objects. More...

List of all members.

Public Member Functions

override string ToString ()
 Converts the custom serialization entry to a string.
 CustomSerializationEntry (string name, Type objectType)
 Constructor to create a CustomSerializationEntry without a value. Value is set to null.
 CustomSerializationEntry (string name, Type objectType, object value)
 Constructor to create a CustomSerializationEntry.
 CustomSerializationEntry (string name, Type objectType, object value, Type reflectedType)
 Constructor to create a CustomSerializationEntry.
internal void DetectListType ()

Properties

string Name [get]
 Gets the name of the object.
Type ObjectType [get, set]
 Gets the System.Type of the object.
Type ReflectedType [get, set]
 Gets the System.Type of the object this is reflected from.
object Value [get, set]
 Gets or sets the value contained in the object.
CollectionType CollectionType [get, set]
 Gets or sets whether the object is a list type.


Detailed Description

The CustomSerializationEntry mimics the System.Runtime.Serialization.SerializationEntry class to make it possible to create our own entries. The class acts as a placeholder for a type, it's name and it's value. This class is used in the XmlFormatter class to serialize objects.


Constructor & Destructor Documentation

AgateLib.Serialization.Formatters.Xml.XmlFormatter.XmlFormatter.CustomSerializationEntry.CustomSerializationEntry ( string  name,
Type  objectType 
)

Constructor to create a CustomSerializationEntry without a value. Value is set to null.

Parameters:
name The name of the object.
objectType The System.Type of the object.

AgateLib.Serialization.Formatters.Xml.XmlFormatter.XmlFormatter.CustomSerializationEntry.CustomSerializationEntry ( string  name,
Type  objectType,
object  value 
)

Constructor to create a CustomSerializationEntry.

Parameters:
name The name of the object.
objectType The System.Type of the object.
value The value of the object.

AgateLib.Serialization.Formatters.Xml.XmlFormatter.XmlFormatter.CustomSerializationEntry.CustomSerializationEntry ( string  name,
Type  objectType,
object  value,
Type  reflectedType 
)

Constructor to create a CustomSerializationEntry.

Parameters:
name The name of the object.
objectType The System.Type of the object.
value The value of the object.
reflectedType The reflected type of the object.


Member Function Documentation

override string AgateLib.Serialization.Formatters.Xml.XmlFormatter.XmlFormatter.CustomSerializationEntry.ToString (  ) 

Converts the custom serialization entry to a string.

Returns:


Property Documentation

CollectionType AgateLib.Serialization.Formatters.Xml.XmlFormatter.XmlFormatter.CustomSerializationEntry.CollectionType [get, set]

Gets or sets whether the object is a list type.

string AgateLib.Serialization.Formatters.Xml.XmlFormatter.XmlFormatter.CustomSerializationEntry.Name [get]

Gets the name of the object.

Type AgateLib.Serialization.Formatters.Xml.XmlFormatter.XmlFormatter.CustomSerializationEntry.ObjectType [get, set]

Gets the System.Type of the object.

Type AgateLib.Serialization.Formatters.Xml.XmlFormatter.XmlFormatter.CustomSerializationEntry.ReflectedType [get, set]

Gets the System.Type of the object this is reflected from.

object AgateLib.Serialization.Formatters.Xml.XmlFormatter.XmlFormatter.CustomSerializationEntry.Value [get, set]

Gets or sets the value contained in the object.


The documentation for this struct was generated from the following file:
AgateLib
Awesome Game and Tool Engine Library
SourceForge.net Logo