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
Afficher le fichier Open project: ngallagher/simplexml

Méthodes publiques

Méthode 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 méthode

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 ///
Résultat System

IsReference() public méthode

public IsReference ( ) : bool
Résultat bool

SetInstance() public méthode

public SetInstance ( Object value ) : Object
value Object /// this is the value to insert as the type ///
Résultat Object