C# Class System.Data.RelationshipConverter

Inheritance: System.ComponentModel.ExpandableObjectConverter
Afficher le fichier Open project: dotnet/corefx

Méthodes publiques

Méthode Description
CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool

Gets a value indicating whether this converter can convert an object to the given destination type using the context.

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

Converts the given object to another type. The most common types to convert are to and from a string object. The default implementation will make a call to ToString on the object if the object is valid and if the destination type is string. If this cannot convert to the desitnation type, this will throw a NotSupportedException.

RelationshipConverter ( ) : System.ComponentModel

Method Details

CanConvertTo() public méthode

Gets a value indicating whether this converter can convert an object to the given destination type using the context.
public CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool
context ITypeDescriptorContext
destinationType System.Type
Résultat bool

ConvertTo() public méthode

Converts the given object to another type. The most common types to convert are to and from a string object. The default implementation will make a call to ToString on the object if the object is valid and if the destination type is string. If this cannot convert to the desitnation type, this will throw a NotSupportedException.
public ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType ) : object
context ITypeDescriptorContext
culture System.Globalization.CultureInfo
value object
destinationType System.Type
Résultat object

RelationshipConverter() public méthode

public RelationshipConverter ( ) : System.ComponentModel
Résultat System.ComponentModel