Method CreateInstance
- Namespace
- Bonsai
- Assembly
- Bonsai.Core.dll
CreateInstance(ITypeDescriptorContext, IDictionary)
Creates an instance of the type that this TypeConverter is associated with, using the specified context, given a set of property values for the object.
public override object CreateInstance(ITypeDescriptorContext context, IDictionary propertyValues)
Parameters
context
ITypeDescriptorContextAn ITypeDescriptorContext that provides a format context.
propertyValues
IDictionaryAn IDictionary of new property values.
Returns
- object
An object representing the given IDictionary, or null if the object cannot be created.