C# Class Jurassic.Library.PropertyNameAndValue

Represents a property name and value.
Mostra file Open project: paulbartrum/jurassic Class Usage Examples

Public Methods

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

Method Details

PropertyNameAndValue() public method

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() public method

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() public method

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.