C# Class nHydrate.Dsl.Design.Converters.ModuleRuleInclusionEnumConverter

Flags enumeration type converter.
Inheritance: System.ComponentModel.EnumConverter
Afficher le fichier Open project: nHydrate/nHydrate

Méthodes publiques

Méthode Description
CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool
ConvertTo ( ITypeDescriptorContext context, System culture, object value, Type destinationType ) : object
GetProperties ( ITypeDescriptorContext context, object value, Attribute attributes ) : PropertyDescriptorCollection

Retrieves the property descriptors for the enumeration fields. These property descriptors will be used by the property grid to show separate enumeration fields.

GetPropertiesSupported ( ITypeDescriptorContext context ) : bool
GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool
ModuleRuleInclusionEnumConverter ( Type type ) : System

Creates an instance of the FlagsEnumConverter class.

Method Details

CanConvertTo() public méthode

public CanConvertTo ( ITypeDescriptorContext context, Type destinationType ) : bool
context ITypeDescriptorContext
destinationType System.Type
Résultat bool

ConvertTo() public méthode

public ConvertTo ( ITypeDescriptorContext context, System culture, object value, Type destinationType ) : object
context ITypeDescriptorContext
culture System
value object
destinationType System.Type
Résultat object

GetProperties() public méthode

Retrieves the property descriptors for the enumeration fields. These property descriptors will be used by the property grid to show separate enumeration fields.
public GetProperties ( ITypeDescriptorContext context, object value, Attribute attributes ) : PropertyDescriptorCollection
context ITypeDescriptorContext The current context.
value object A value of an enumeration type.
attributes System.Attribute
Résultat System.ComponentModel.PropertyDescriptorCollection

GetPropertiesSupported() public méthode

public GetPropertiesSupported ( ITypeDescriptorContext context ) : bool
context ITypeDescriptorContext
Résultat bool

GetStandardValuesSupported() public méthode

public GetStandardValuesSupported ( ITypeDescriptorContext context ) : bool
context ITypeDescriptorContext
Résultat bool

ModuleRuleInclusionEnumConverter() public méthode

Creates an instance of the FlagsEnumConverter class.
public ModuleRuleInclusionEnumConverter ( Type type ) : System
type System.Type The type of the enumeration.
Résultat System