C# Класс Jurassic.Library.PropertyNameAndValue

Represents a property name and value.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.