C# 클래스 SimpleFramework.Xml.Core.Instantiator

The Instantiator is used to instantiate types that will leverage a constructor cache to quickly create the objects. This is used by the various object factories to return type instances that can be used by converters to create the objects that will later be deserialized.
파일 보기 프로젝트 열기: ngallagher/simplexml 1 사용 예제들

공개 메소드들

메소드 설명
GetInstance ( Class type ) : Instance

This will create an Instance that can be used to instantiate objects of the specified class. This leverages an internal constructor cache to ensure creation is quicker.

GetInstance ( Value value ) : Instance

This will create an Instance that can be used to instantiate objects of the specified class. This leverages an internal constructor cache to ensure creation is quicker.

GetObject ( Class type ) : Object

This method will instantiate an object of the provided type. If the object or constructor does not have public access then this will ensure the constructor is accessible and can be used.

Instantiator ( ) : SimpleFramework.Xml.Strategy

Constructor for the Instantiator object. This will create a constructor cache that can be used to cache all of the constructors instantiated for the required types.

메소드 상세

GetInstance() 공개 메소드

This will create an Instance that can be used to instantiate objects of the specified class. This leverages an internal constructor cache to ensure creation is quicker.
public GetInstance ( Class type ) : Instance
type Class /// this is the type that is to be instantiated ///
리턴 Instance

GetInstance() 공개 메소드

This will create an Instance that can be used to instantiate objects of the specified class. This leverages an internal constructor cache to ensure creation is quicker.
public GetInstance ( Value value ) : Instance
value Value /// this contains information on the object instance ///
리턴 Instance

GetObject() 공개 메소드

This method will instantiate an object of the provided type. If the object or constructor does not have public access then this will ensure the constructor is accessible and can be used.
public GetObject ( Class type ) : Object
type Class /// this is used to ensure the object is accessible ///
리턴 Object

Instantiator() 공개 메소드

Constructor for the Instantiator object. This will create a constructor cache that can be used to cache all of the constructors instantiated for the required types.
public Instantiator ( ) : SimpleFramework.Xml.Strategy
리턴 SimpleFramework.Xml.Strategy