C# Class Hypermedia.Metadata.FieldExtensions

Datei anzeigen Open project: cosullivan/Hypermedia

Public Methods

Method Description
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.

Method Details

GetValue() public static method

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.
return object

Is() public static method

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.
return bool

IsNot() public static method

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.
return bool

SetValue() public static method

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.
return void