Detailed Description

Nitro Objects are used when the type of something cannot be computed or when prototype is in use. These are essentially flexible objects.

Public Member Functions

 NitroObject (object underObject)
 Creates a new NitroObject. More...
 
 NitroObject (MemberInfo member, object underObject)
 
object GetValue ()
 Gets the value of this object. More...
 
void SetValue (object value)
 Sets the value of this object. More...
 
virtual object Run (params object[] arguments)
 Executes this as a dynamic method with the given arguments. More...
 

Public Attributes

object UnderlayObject
 The underlying object if there is one. More...
 

Properties

object this[string name] [get, set]
 Gets/ sets entities from this object. The heart of the More...
 

Private Attributes

Type ObjectType
 The underlaying object type. More...
 
MemberInfo Member
 E.g. fieldinfo for the underlying object. More...
 
Dictionary< string, NitroObjectPrototypeMap
 The underlying prototype map for this object. More...
 

Constructor & Destructor Documentation

Nitro.NitroObject.NitroObject ( object  underObject)
inline

Creates a new NitroObject.

Parameters
underObjectThe underlying object, if any.
Nitro.NitroObject.NitroObject ( MemberInfo  member,
object  underObject 
)
inline

Member Function Documentation

object Nitro.NitroObject.GetValue ( )
inline

Gets the value of this object.

virtual object Nitro.NitroObject.Run ( params object[]  arguments)
inlinevirtual

Executes this as a dynamic method with the given arguments.

Parameters
argumentsThe arguments to pass to the method.
Returns
The return value of the method, if any.
void Nitro.NitroObject.SetValue ( object  value)
inline

Sets the value of this object.

Member Data Documentation

MemberInfo Nitro.NitroObject.Member
private

E.g. fieldinfo for the underlying object.

Type Nitro.NitroObject.ObjectType
private

The underlaying object type.

Dictionary<string,NitroObject> Nitro.NitroObject.PrototypeMap
private

The underlying prototype map for this object.

object Nitro.NitroObject.UnderlayObject

The underlying object if there is one.

Property Documentation

object Nitro.NitroObject.this[string name]
getset

Gets/ sets entities from this object. The heart of the