System.ComponentModel.TypeConverter.CreateInstance C# (CSharp) Method

CreateInstance() public method

public CreateInstance ( IDictionary propertyValues ) : object
propertyValues IDictionary
return object
        public object CreateInstance(IDictionary propertyValues) {
            return CreateInstance(null, propertyValues);
        }

Same methods

TypeConverter::CreateInstance ( ITypeDescriptorContext context, IDictionary propertyValues ) : object

Usage Example

 /// <summary>
 /// Creates an instance of the type that this <see cref="T:System.ComponentModel.TypeConverter"></see> is associated with, using the specified context, given a set of property values for the object.
 /// </summary>
 /// <param name="context">An <see cref="T:System.ComponentModel.ITypeDescriptorContext"></see> that provides a format context.</param>
 /// <param name="propertyValues">An <see cref="T:System.Collections.IDictionary"></see> of new property values.</param>
 /// <returns>
 /// An <see cref="T:System.Object"></see> representing the given <see cref="T:System.Collections.IDictionary"></see>, or <c>null</c> if the object can not be created.
 /// This method always returns <c>null</c>.
 /// </returns>
 public override object CreateInstance(System.ComponentModel.ITypeDescriptorContext context, System.Collections.IDictionary propertyValues)
 {
     return(baseTypeConverter.CreateInstance(context, propertyValues));
 }