C# Class Ramone.Utility.ObjectSerialization.ObjectSerializer

Afficher le fichier Open project: JornWildt/Ramone Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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

Evaluate() protected méthode

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

EvaluateProperty() protected méthode

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

IsSimpleType() protected méthode

protected IsSimpleType ( Type t ) : bool
t System.Type
Résultat bool

ObjectSerializer() public méthode

public ObjectSerializer ( Type t ) : System
t System.Type
Résultat System

Serialize() public méthode

public Serialize ( object data, IPropertyVisitor visitor, ObjectSerializerSettings settings = null ) : void
data object
visitor IPropertyVisitor
settings ObjectSerializerSettings
Résultat void

Serialize() protected méthode

protected Serialize ( object data, Type dataType, string prefix ) : void
data object
dataType System.Type
prefix string
Résultat void

SerializeDictionary() protected méthode

protected SerializeDictionary ( IDictionary dict, Type dataType, string prefix ) : void
dict IDictionary
dataType System.Type
prefix string
Résultat void

SerializeFile() protected méthode

protected SerializeFile ( IFile file, Type dataType, string prefix ) : void
file IFile
dataType System.Type
prefix string
Résultat void

SerializeList() protected méthode

protected SerializeList ( IList collection, Type dataType, string prefix ) : void
collection IList
dataType System.Type
prefix string
Résultat void

SerializeNameValueCollection() protected méthode

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

SerializeProperties() protected méthode

protected SerializeProperties ( object data, Type dataType, string prefix ) : void
data object
dataType System.Type
prefix string
Résultat void

SerializeSimpleValue() protected méthode

protected SerializeSimpleValue ( object data, Type dataType, string prefix ) : void
data object
dataType System.Type
prefix string
Résultat void