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

Type converter for wrapper classes
Inheritance: System.ComponentModel.ExpandableObjectConverter
Afficher le fichier Open project: AMEE/revit

Méthodes publiques

Méthode 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 méthode

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

ConvertTo() public méthode

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
Résultat object