C# Class Jurassic.Library.HiddenClassSchema

ファイルを表示 Open project: paulbartrum/jurassic Class Usage Examples

Public Methods

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

Private Methods

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

Method Details

AddProperties() public method

Adds multiple properties to the schema.
public AddProperties ( IEnumerable properties ) : HiddenClassSchema
properties IEnumerable The properties to add.
return HiddenClassSchema

AddProperty() public method

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.
return HiddenClassSchema

CreateEmptySchema() public static method

Creates a hidden class schema with no properties.
public static CreateEmptySchema ( ) : HiddenClassSchema
return HiddenClassSchema

DeleteProperty() public method

Deletes a property from the schema.
public DeleteProperty ( object key ) : HiddenClassSchema
key object The property key of the property to delete.
return HiddenClassSchema

EnumeratePropertyNamesAndValues() public method

Enumerates the property names and values for this schema.
public EnumeratePropertyNamesAndValues ( object values ) : IEnumerable
values object The array containing the property values.
return IEnumerable

GetPropertyIndex() public method

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).
return int

GetPropertyIndexAndAttributes() public method

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).
return SchemaProperty

SetPropertyAttributes() public method

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.
return HiddenClassSchema