C# 클래스 Jurassic.Library.PropertyNameAndValue

Represents a property name and value.
파일 보기 프로젝트 열기: paulbartrum/jurassic 1 사용 예제들

공개 메소드들

메소드 설명
PropertyNameAndValue ( object key, FunctionInstance getter, FunctionInstance setter, PropertyAttributes attributes )

Initializes a getter/setter property.

PropertyNameAndValue ( object key, PropertyDescriptor descriptor )

Initializes a property with any descriptor.

PropertyNameAndValue ( object key, object value, PropertyAttributes attributes )

Initializes a simple property.

메소드 상세

PropertyNameAndValue() 공개 메소드

Initializes a getter/setter property.
public PropertyNameAndValue ( object key, FunctionInstance getter, FunctionInstance setter, PropertyAttributes attributes )
key object The property key (either a string or a Symbol).
getter FunctionInstance The function to call to retrieve the property value.
setter FunctionInstance The function to call to set the property value.
attributes PropertyAttributes Indicates whether the property is readable, writable and/or enumerable.

PropertyNameAndValue() 공개 메소드

Initializes a property with any descriptor.
public PropertyNameAndValue ( object key, PropertyDescriptor descriptor )
key object The property key (either a string or a Symbol).
descriptor PropertyDescriptor A descriptor describing the property.

PropertyNameAndValue() 공개 메소드

Initializes a simple property.
public PropertyNameAndValue ( object key, object value, PropertyAttributes attributes )
key object The property key (either a string or a Symbol).
value object The property value.
attributes PropertyAttributes Indicates whether the property is readable, writable and/or enumerable.