Provides methods for creating new instances of objects
More...
Provides methods for creating new instances of objects
Definition at line 29 of file ObjectActivator.cs.
◆ GetActivator()
static Func<object[], object> QuantConnect.Util.ObjectActivator.GetActivator |
( |
Type |
dataType | ) |
|
|
static |
◆ Clone()
static object QuantConnect.Util.ObjectActivator.Clone |
( |
object |
instanceToClone | ) |
|
|
static |
Clones the specified instance using reflection
- Parameters
-
instanceToClone | The instance to be cloned |
- Returns
- A field/property wise, non-recursive clone of the instance
Definition at line 96 of file ObjectActivator.cs.
◆ Clone< T >()
Clones the specified instance and then casts it to T before returning
Definition at line 116 of file ObjectActivator.cs.
◆ AddActivator()
static void QuantConnect.Util.ObjectActivator.AddActivator |
( |
Type |
key, |
|
|
Func< object[], object > |
value |
|
) |
| |
|
static |
Adds method to return an instance of object
- Parameters
-
key | The key of the method to add |
value | The value of the method to add |
Definition at line 131 of file ObjectActivator.cs.
◆ ResetActivators()
static void QuantConnect.Util.ObjectActivator.ResetActivators |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following file: