C# 클래스 Jurassic.Library.HiddenClassSchema

파일 보기 프로젝트 열기: paulbartrum/jurassic 1 사용 예제들

공개 메소드들

메소드 설명
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