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
파일 보기 프로젝트 열기: ngallagher/simplexml

공개 메소드들

메소드 설명
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