C# Класс Hypermedia.Metadata.FieldExtensions

Показать файл Открыть проект

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

Метод Описание
GetValue ( this field, object instance ) : object

Gets the actual value of the field.

Is ( this field, FieldOptions options ) : bool

Returns a value indicating whether or not the field adheres to the list of specified options.

IsNot ( this field, FieldOptions options ) : bool

Returns a value indicating whether the field does not adheres to the list of specified options.

SetValue ( this field, object instance, object value ) : void

Sets the value for the field.

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

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

Gets the actual value of the field.
public static GetValue ( this field, object instance ) : object
field this The field to test the options against.
instance object The instance to return the value from.
Результат object

Is() публичный статический Метод

Returns a value indicating whether or not the field adheres to the list of specified options.
public static Is ( this field, FieldOptions options ) : bool
field this The field to test the options against.
options FieldOptions The list of options to test on the field.
Результат bool

IsNot() публичный статический Метод

Returns a value indicating whether the field does not adheres to the list of specified options.
public static IsNot ( this field, FieldOptions options ) : bool
field this The field to test the options against.
options FieldOptions The list of options to test on the field.
Результат bool

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

Sets the value for the field.
public static SetValue ( this field, object instance, object value ) : void
field this The field to test the options against.
instance object The instance to set the value on.
value object The value to set for the field.
Результат void