C# Class Revit.SDK.Samples.ProjectInfo.CS.WrapperConverter

Type converter for wrapper classes
Inheritance: System.ComponentModel.ExpandableObjectConverter
Show file Open project: AMEE/revit

Public Methods

Method Description
CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool

Can be converted to string

ConvertTo ( ITypeDescriptorContext context, System culture, object value, Type destinationType ) : object

Converts to string. If value is null, convert it to "(null)". if value has a "Name" property, returns its name. otherwise, returns "(...)".

Method Details

CanConvertTo() public method

Can be converted to string
public CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool
context ITypeDescriptorContext
destinationType System.Type
return bool

ConvertTo() public method

Converts to string. If value is null, convert it to "(null)". if value has a "Name" property, returns its name. otherwise, returns "(...)".
public ConvertTo ( ITypeDescriptorContext context, System culture, object value, Type destinationType ) : object
context ITypeDescriptorContext
culture System
value object
destinationType System.Type
return object