ObjectFactory Class |
Namespace: CMS.Core
public class ObjectFactory : ObjectFactory<Object>
The ObjectFactory type exposes the following members.
Name | Description | |
---|---|---|
ObjectFactory |
Constructor
|
Name | Description | |
---|---|---|
CanCreateObject |
Returns true if the factory is able to create the object based on the given parameter
(Inherited from ObjectFactoryT.) | |
CreateActivator |
Creates an object activator for the created type
(Inherited from ObjectFactoryT.) | |
CreateInstance |
Creates a new instance of the object
(Inherited from ObjectFactoryT.) | |
CreateNewObject |
Creates and returns a new object
(Inherited from ObjectFactoryT.) | |
CreateNewTypedObject |
Creates and returns a new object
(Inherited from ObjectFactoryT.) | |
GetFactory |
Gets the factory for the given type
| |
GetFactoryGenericTObject |
Creates an object by an external factory of the given type
| |
New |
Creates an object of the given type
|
Name | Description | |
---|---|---|
AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
Name | Description | |
---|---|---|
Constructor |
Constructor used for dependency injection
(Inherited from ObjectFactoryT.) | |
CreatedType |
Returns the type created by this factory
(Inherited from ObjectFactoryT.) | |
Initializer |
Object initialization function
(Inherited from ObjectFactoryT.) | |
Singleton |
Singleton instance of the created object type
(Inherited from ObjectFactoryT.) | |
UseCompiledLambda |
If true, the compiled lambda expression is used to create new objects. Set to true if the factory will be creating a lot of objects
(Inherited from ObjectFactoryT.) |