C# Класс nHydrate.Dsl.Design.Converters.ModuleRuleInclusionEnumConverter.EnumFieldDescriptor

This class represents an enumeration field in the property grid.
Наследование: SimplePropertyDescriptor
Показать файл Открыть проект

Открытые методы

Метод Описание
CanResetValue ( object component ) : bool

Retrieves a value indicating whether the enumeration field can be reset to the default value.

EnumFieldDescriptor ( Type componentType, string name, ITypeDescriptorContext context ) : System

Creates an instance of the enumeration field descriptor class.

GetValue ( object component ) : object

Retrieves the value of the enumeration field.

ResetValue ( object component ) : void

Resets the enumeration field to its default value.

SetValue ( object component, object value ) : void

Sets the value of the enumeration field.

ShouldSerializeValue ( object component ) : bool

Retrieves a value indicating whether the enumeration field is set to a non-default value.

Приватные методы

Метод Описание
GetDefaultValue ( ) : bool

Retrieves the enumerations field’s default value.

Описание методов

CanResetValue() публичный Метод

Retrieves a value indicating whether the enumeration field can be reset to the default value.
public CanResetValue ( object component ) : bool
component object
Результат bool

EnumFieldDescriptor() публичный Метод

Creates an instance of the enumeration field descriptor class.
public EnumFieldDescriptor ( Type componentType, string name, ITypeDescriptorContext context ) : System
componentType System.Type The type of the enumeration.
name string The name of the enumeration field.
context ITypeDescriptorContext The current context.
Результат System

GetValue() публичный Метод

Retrieves the value of the enumeration field.
public GetValue ( object component ) : object
component object /// The instance of the enumeration type which to retrieve the field value for. ///
Результат object

ResetValue() публичный Метод

Resets the enumeration field to its default value.
public ResetValue ( object component ) : void
component object
Результат void

SetValue() публичный Метод

Sets the value of the enumeration field.
public SetValue ( object component, object value ) : void
component object /// The instance of the enumeration type which to set the field value to. ///
value object /// True if the enumeration field should included to the enumeration; /// otherwise, False. ///
Результат void

ShouldSerializeValue() публичный Метод

Retrieves a value indicating whether the enumeration field is set to a non-default value.
public ShouldSerializeValue ( object component ) : bool
component object
Результат bool