C# 클래스 Hypermedia.Metadata.FieldExtensions

파일 보기 프로젝트 열기: cosullivan/Hypermedia

공개 메소드들

메소드 설명
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