Table of Contents

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 ITypeDescriptorContext

An ITypeDescriptorContext that provides a format context.

propertyValues IDictionary

An IDictionary of new property values.

Returns

object

An object representing the given IDictionary, or null if the object cannot be created.