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.
Показать файл Открыть проект Примеры использования класса

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

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