C# Class Ramone.Utility.ObjectSerialization.ObjectSerializer

Mostrar archivo Open project: JornWildt/Ramone Class Usage Examples

Public Methods

Method Description
Deserialize ( NameValueCollection values, ObjectSerializerSettings settings = null ) : object
ObjectSerializer ( Type t ) : System
Serialize ( object data, IPropertyVisitor visitor, ObjectSerializerSettings settings = null ) : void

Protected Methods

Method Description
Evaluate ( object classValue, Type t, IEnumerator propertyNames, string value ) : void
EvaluateProperty ( object classValue, Type propertyType, Func propertyAccessor, string value, bool &IsSimpleType ) : object
IsSimpleType ( Type t ) : bool
Serialize ( object data, Type dataType, string prefix ) : void
SerializeDictionary ( IDictionary dict, Type dataType, string prefix ) : void
SerializeFile ( IFile file, Type dataType, string prefix ) : void
SerializeList ( IList collection, Type dataType, string prefix ) : void
SerializeNameValueCollection ( NameValueCollection collection, Type dataType, string prefix ) : void
SerializeProperties ( object data, Type dataType, string prefix ) : void
SerializeSimpleValue ( object data, Type dataType, string prefix ) : void

Method Details

Deserialize() public method

public Deserialize ( NameValueCollection values, ObjectSerializerSettings settings = null ) : object
values System.Collections.Specialized.NameValueCollection
settings ObjectSerializerSettings
return object

Evaluate() protected method

protected Evaluate ( object classValue, Type t, IEnumerator propertyNames, string value ) : void
classValue object
t System.Type
propertyNames IEnumerator
value string
return void

EvaluateProperty() protected method

protected EvaluateProperty ( object classValue, Type propertyType, Func propertyAccessor, string value, bool &IsSimpleType ) : object
classValue object
propertyType System.Type
propertyAccessor Func
value string
IsSimpleType bool
return object

IsSimpleType() protected method

protected IsSimpleType ( Type t ) : bool
t System.Type
return bool

ObjectSerializer() public method

public ObjectSerializer ( Type t ) : System
t System.Type
return System

Serialize() public method

public Serialize ( object data, IPropertyVisitor visitor, ObjectSerializerSettings settings = null ) : void
data object
visitor IPropertyVisitor
settings ObjectSerializerSettings
return void

Serialize() protected method

protected Serialize ( object data, Type dataType, string prefix ) : void
data object
dataType System.Type
prefix string
return void

SerializeDictionary() protected method

protected SerializeDictionary ( IDictionary dict, Type dataType, string prefix ) : void
dict IDictionary
dataType System.Type
prefix string
return void

SerializeFile() protected method

protected SerializeFile ( IFile file, Type dataType, string prefix ) : void
file IFile
dataType System.Type
prefix string
return void

SerializeList() protected method

protected SerializeList ( IList collection, Type dataType, string prefix ) : void
collection IList
dataType System.Type
prefix string
return void

SerializeNameValueCollection() protected method

protected SerializeNameValueCollection ( NameValueCollection collection, Type dataType, string prefix ) : void
collection System.Collections.Specialized.NameValueCollection
dataType System.Type
prefix string
return void

SerializeProperties() protected method

protected SerializeProperties ( object data, Type dataType, string prefix ) : void
data object
dataType System.Type
prefix string
return void

SerializeSimpleValue() protected method

protected SerializeSimpleValue ( object data, Type dataType, string prefix ) : void
data object
dataType System.Type
prefix string
return void