C# Class Jurassic.Library.PropertyNameAndValue

Represents a property name and value.
Afficher le fichier Open project: paulbartrum/jurassic Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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 méthode

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 méthode

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.