C# Class 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.
Inheritance: Instance
Mostrar archivo Open project: ngallagher/simplexml

Public Methods

Method Description
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

Method Details

ClassInstance() public method

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 ///
return System

IsReference() public method

public IsReference ( ) : bool
return bool

SetInstance() public method

public SetInstance ( Object value ) : Object
value Object /// this is the value to insert as the type ///
return Object