C# Класс SimpleFramework.Xml.Core.ClassInstance

The ClassInstance object is used to create an object by using a Class to determine the type. If the given class can not be instantiated then this throws an exception when the instance is requested. For performance an instantiator is given as it contains a reflection cache for constructors.
Наследование: Instance
Показать файл Открыть проект

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

Метод Описание
ClassInstance ( Instantiator creator, Class type ) : System

Constructor for the ClassInstance object. This is used to create an instance of the specified type. If the given type can not be instantiated then an exception is thrown.

IsReference ( ) : bool
SetInstance ( Object value ) : Object

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

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

Constructor for the ClassInstance object. This is used to create an instance of the specified type. If the given type can not be instantiated then an exception is thrown.
public ClassInstance ( Instantiator creator, Class type ) : System
creator Instantiator /// this is the creator used for the instantiation ///
type Class /// this is the type that is to be instantiated ///
Результат System

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

public IsReference ( ) : bool
Результат bool

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

public SetInstance ( Object value ) : Object
value Object /// this is the value to insert as the type ///
Результат Object