Public Member Functions | |
| abstract bool | IsCollection (Type collectionType) |
| Checks to see if the collection type is handled by this handler. | |
| abstract ICollectionBuilder | ConstructBuilder (Type collectionType, int itemCount) |
| Constructs a collection builder for the given collection type. The type must be supported by this handler. | |
| abstract ICollectionBuilder | ConstructBuilder (object collection) |
| Constructs a collection builder to update an existing collection. The type must be supported by this handler. | |
| virtual Type | GetItemType (Type CollectionType) |
| Gets the type of items that this collection type holds. The default is System.Object. | |
| virtual IEnumerable | GetEnumerable (object collection) |
| Gets the enumerable property of the collection. This is normally just the collection itself, but can be implemented to provide a custom enumerable. | |
| abstract bool JsonExSerializer.Collections.CollectionHandler.IsCollection | ( | Type | collectionType | ) | [pure virtual] |
Checks to see if the collection type is handled by this handler.
| collectionType | the type to check |
Implemented in JsonExSerializer.Collections.ArrayHandler, JsonExSerializer.Collections.CollectionConstructorHandler, JsonExSerializer.Collections.GenericCollectionHandler, JsonExSerializer.Collections.GenericStackHandler, JsonExSerializer.Collections.ListHandler, and JsonExSerializer.Collections.StackHandler.
| abstract ICollectionBuilder JsonExSerializer.Collections.CollectionHandler.ConstructBuilder | ( | Type | collectionType, | |
| int | itemCount | |||
| ) | [pure virtual] |
Constructs a collection builder for the given collection type. The type must be supported by this handler.
| collectionType | the type to construct a builder for |
Implemented in JsonExSerializer.Collections.ArrayHandler, JsonExSerializer.Collections.CollectionConstructorHandler, JsonExSerializer.Collections.GenericCollectionHandler, JsonExSerializer.Collections.GenericStackHandler, JsonExSerializer.Collections.ListHandler, and JsonExSerializer.Collections.StackHandler.
| abstract ICollectionBuilder JsonExSerializer.Collections.CollectionHandler.ConstructBuilder | ( | object | collection | ) | [pure virtual] |
Constructs a collection builder to update an existing collection. The type must be supported by this handler.
| collection | an existing istance of the collection class to be populated | |
| collectionType | the type to construct a builder for |
Implemented in JsonExSerializer.Collections.ArrayHandler, JsonExSerializer.Collections.CollectionConstructorHandler, JsonExSerializer.Collections.GenericCollectionHandler, JsonExSerializer.Collections.GenericStackHandler, JsonExSerializer.Collections.ListHandler, and JsonExSerializer.Collections.StackHandler.
| virtual Type JsonExSerializer.Collections.CollectionHandler.GetItemType | ( | Type | CollectionType | ) | [virtual] |
Gets the type of items that this collection type holds. The default is System.Object.
| CollectionType | the type of the collection |
Reimplemented in JsonExSerializer.Collections.ArrayHandler, JsonExSerializer.Collections.CollectionConstructorHandler, JsonExSerializer.Collections.GenericCollectionHandler, and JsonExSerializer.Collections.GenericStackHandler.
| virtual IEnumerable JsonExSerializer.Collections.CollectionHandler.GetEnumerable | ( | object | collection | ) | [virtual] |
Gets the enumerable property of the collection. This is normally just the collection itself, but can be implemented to provide a custom enumerable.
| collection | the collection |
Reimplemented in JsonExSerializer.Collections.GenericStackHandler, and JsonExSerializer.Collections.StackHandler.
1.5.2