JsonExSerializer.Collections.StackHandler Class Reference

Collection handler for a non-generic System.Collections.Stack class. More...

Inherits JsonExSerializer.Collections.CollectionHandler.

List of all members.

Public Member Functions

override bool IsCollection (Type collectionType)
 Checks to see if the collection type is handled by this handler.
override ICollectionBuilder ConstructBuilder (Type collectionType, int itemCount)
 Constructs a collection builder for the given collection type. The type must be supported by this handler.
override ICollectionBuilder ConstructBuilder (object collection)
 Constructs a collection builder to update an existing collection. The type must be supported by this handler.
override 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.


Detailed Description

Collection handler for a non-generic System.Collections.Stack class.


Member Function Documentation

override bool JsonExSerializer.Collections.StackHandler.IsCollection ( Type  collectionType  )  [virtual]

Checks to see if the collection type is handled by this handler.

Parameters:
collectionType the type to check
Returns:
true if this handler can process the collection type

Implements JsonExSerializer.Collections.CollectionHandler.

override ICollectionBuilder JsonExSerializer.Collections.StackHandler.ConstructBuilder ( Type  collectionType,
int  itemCount 
) [virtual]

Constructs a collection builder for the given collection type. The type must be supported by this handler.

Parameters:
collectionType the type to construct a builder for
Returns:
a collection builder

Implements JsonExSerializer.Collections.CollectionHandler.

override ICollectionBuilder JsonExSerializer.Collections.StackHandler.ConstructBuilder ( object  collection  )  [virtual]

Constructs a collection builder to update an existing collection. The type must be supported by this handler.

Parameters:
collection an existing istance of the collection class to be populated
collectionType the type to construct a builder for
Returns:
a collection builder

Implements JsonExSerializer.Collections.CollectionHandler.

override IEnumerable JsonExSerializer.Collections.StackHandler.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.

Parameters:
collection the collection
Returns:
an IEnumerable object

Reimplemented from JsonExSerializer.Collections.CollectionHandler.


Generated on Fri Feb 15 23:33:58 2008 for JsonExSerializer by  doxygen 1.5.2