ForgeDocs
Documentation for the forge framework
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
Forge.Utilities.GeneralStreamingContext Class Reference

Object that implements the streaming context that all converters which expect a streaming context expect the streaming context to be a type of. More...

Public Member Functions

 GeneralStreamingContext (params IContextObject[] initialObjects)
 Creates a new GeneralStreamingContext with the given initial objects. More...
 
Get< T > ()
 Returns the context object associated with the type T. More...
 
void Create< T > ()
 Sets the context object of type T to an instance of new T(). More...
 
void Set< T > (T instance)
 Sets the context object of type T with the given value. More...
 
void Remove< T > ()
 Removes the context object associated with type T. More...
 

Detailed Description

Object that implements the streaming context that all converters which expect a streaming context expect the streaming context to be a type of.

Constructor & Destructor Documentation

Forge.Utilities.GeneralStreamingContext.GeneralStreamingContext ( params IContextObject[]  initialObjects)

Creates a new GeneralStreamingContext with the given initial objects.

Member Function Documentation

void Forge.Utilities.GeneralStreamingContext.Create< T > ( )

Sets the context object of type T to an instance of new T().

Type Constraints
T :IContextObject 
T :new() 
T Forge.Utilities.GeneralStreamingContext.Get< T > ( )

Returns the context object associated with the type T.

Type Constraints
T :IContextObject 
void Forge.Utilities.GeneralStreamingContext.Remove< T > ( )

Removes the context object associated with type T.

Type Constraints
T :IContextObject 
void Forge.Utilities.GeneralStreamingContext.Set< T > ( instance)

Sets the context object of type T with the given value.

Type Constraints
T :IContextObject 

The documentation for this class was generated from the following file: