C# Класс 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.
Наследование: Instance
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

IsReference() публичный Метод

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
Результат bool

SetInstance() публичный Метод

public SetInstance ( Object Object ) : Object
Object Object
Результат Object

ValueInstance() публичный Метод

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 ///
Результат SimpleFramework.Xml.Strategy