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

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddProperties ( IEnumerable properties ) : HiddenClassSchema

Adds multiple properties to the schema.

AddProperty ( object key, PropertyAttributes attributes = PropertyAttributes.FullAccess ) : HiddenClassSchema

Adds a property to the schema.

CreateEmptySchema ( ) : HiddenClassSchema

Creates a hidden class schema with no properties.

DeleteProperty ( object key ) : HiddenClassSchema

Deletes a property from the schema.

EnumeratePropertyNamesAndValues ( object values ) : IEnumerable

Enumerates the property names and values for this schema.

GetPropertyIndex ( object key ) : int

Gets the zero-based index of the property with the given name.

GetPropertyIndexAndAttributes ( object key ) : SchemaProperty

Gets the zero-based index of the property with the given name and the attributes associated with the property.

SetPropertyAttributes ( object key, PropertyAttributes attributes ) : HiddenClassSchema

Modifies the attributes for a property in the schema.

Приватные методы

Метод Описание
CreatePropertiesDictionary ( ) : SchemaProperty>.Dictionary

Creates the properties dictionary.

HiddenClassSchema ( SchemaProperty>.Dictionary properties, int nextValueIndex ) : System

Creates a new HiddenClassSchema instance from a modify or delete operation.

HiddenClassSchema ( SchemaProperty>.Dictionary properties, int nextValueIndex, HiddenClassSchema parent, TransitionInfo addPropertyTransitionInfo ) : System

Creates a new HiddenClassSchema instance from an add operation.

Описание методов

AddProperties() публичный Метод

Adds multiple properties to the schema.
public AddProperties ( IEnumerable properties ) : HiddenClassSchema
properties IEnumerable The properties to add.
Результат HiddenClassSchema

AddProperty() публичный Метод

Adds a property to the schema.
public AddProperty ( object key, PropertyAttributes attributes = PropertyAttributes.FullAccess ) : HiddenClassSchema
key object The property key of the property to add.
attributes PropertyAttributes The property attributes.
Результат HiddenClassSchema

CreateEmptySchema() публичный статический Метод

Creates a hidden class schema with no properties.
public static CreateEmptySchema ( ) : HiddenClassSchema
Результат HiddenClassSchema

DeleteProperty() публичный Метод

Deletes a property from the schema.
public DeleteProperty ( object key ) : HiddenClassSchema
key object The property key of the property to delete.
Результат HiddenClassSchema

EnumeratePropertyNamesAndValues() публичный Метод

Enumerates the property names and values for this schema.
public EnumeratePropertyNamesAndValues ( object values ) : IEnumerable
values object The array containing the property values.
Результат IEnumerable

GetPropertyIndex() публичный Метод

Gets the zero-based index of the property with the given name.
public GetPropertyIndex ( object key ) : int
key object The property key (either a string or a Symbol).
Результат int

GetPropertyIndexAndAttributes() публичный Метод

Gets the zero-based index of the property with the given name and the attributes associated with the property.
public GetPropertyIndexAndAttributes ( object key ) : SchemaProperty
key object The property key (either a string or a Symbol).
Результат SchemaProperty

SetPropertyAttributes() публичный Метод

Modifies the attributes for a property in the schema.
public SetPropertyAttributes ( object key, PropertyAttributes attributes ) : HiddenClassSchema
key object The property key of the property to modify.
attributes PropertyAttributes The new attributes.
Результат HiddenClassSchema