C# Class Jurassic.Library.HiddenClassSchema

Afficher le fichier Open project: paulbartrum/jurassic Class Usage Examples

Méthodes publiques

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

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

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

AddProperty() public méthode

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.
Résultat HiddenClassSchema

CreateEmptySchema() public static méthode

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

DeleteProperty() public méthode

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

EnumeratePropertyNamesAndValues() public méthode

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

GetPropertyIndex() public méthode

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).
Résultat int

GetPropertyIndexAndAttributes() public méthode

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).
Résultat SchemaProperty

SetPropertyAttributes() public méthode

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.
Résultat HiddenClassSchema