System.ComponentModel.ReferenceConverter Class

Provides a type converter to convert object references to and from other representations.

See Also: ReferenceConverter Members


public class ReferenceConverter : TypeConverter


The System.ComponentModel.ReferenceConverter is typically used within the context of sited components or a design environment. Without a component site or a usable System.ComponentModel.ITypeDescriptorContext, this converter is of little use.

This converter converts a reference of an object that implements the System.ComponentModel.IComponent interface and displays its properties in the Properties window.

For more information about type converters, see the System.ComponentModel.TypeConverter base class and How to: Implement a Type Converter.


You should never create an instance of the System.ComponentModel.ReferenceConverter class. Instead, call the TypeDescriptor.GetConverter(object) method of the System.ComponentModel.TypeDescriptor class. For more information, see the examples in the System.ComponentModel.TypeConverter base class.

This class provides the ReferenceConverter.IsValueAllowed(ITypeDescriptorContext, object) method to check whether a particular value can be added to the standard values collection. If you do not want to add the value to the collection, override this method.


Namespace: System.ComponentModel
Assembly: System (in System.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,,