C# Class SimpleFramework.Xml.Core.ValueInstance

The ValueInstance object is used to create an object by using a Value instance to determine the type. If the provided value instance represents a reference then this will simply provide the value of the reference, otherwise it will instantiate a new object and return that.
Inheritance: Instance
Afficher le fichier Open project: ngallagher/simplexml

Méthodes publiques

Méthode Description
IsReference ( ) : bool

This is used to determine if the type is a reference type. A reference type is a type that does not require any XML deserialization based on its annotations. Values that are references could be substitutes objects or existing ones.

SetInstance ( Object Object ) : Object
ValueInstance ( Instantiator creator, Value value ) : SimpleFramework.Xml.Strategy

Constructor for the ValueInstance object. This is used to represent an instance that delegates to the given value object in order to acquire the object.

Method Details

IsReference() public méthode

This is used to determine if the type is a reference type. A reference type is a type that does not require any XML deserialization based on its annotations. Values that are references could be substitutes objects or existing ones.
public IsReference ( ) : bool
Résultat bool

SetInstance() public méthode

public SetInstance ( Object Object ) : Object
Object Object
Résultat Object

ValueInstance() public méthode

Constructor for the ValueInstance object. This is used to represent an instance that delegates to the given value object in order to acquire the object.
public ValueInstance ( Instantiator creator, Value value ) : SimpleFramework.Xml.Strategy
creator Instantiator /// this is the instantiator used to create objects ///
value Value /// this is the value object that contains the data ///
Résultat SimpleFramework.Xml.Strategy