C# Class ExposedObject.Exposed

Exposes hidden (private/protected/internal) members of an or Type through a wrapper.
Inheritance: System.Dynamic.DynamicObject
Mostrar archivo Open project: Cognifide/ExposedObject

Private Properties

Property Type Description
Exposed System
Exposed System

Public Methods

Method Description
From ( Type type ) : dynamic

Creates a new wrapper for accessing hidden static members of a Type.

From ( object subject ) : dynamic

Creates a new wrapper for accessing members of subject.

GetMetaObject ( Expression parameter ) : DynamicMetaObject

Returns the DynamicMetaObject responsible for binding operations performed on this object.

New ( Type type ) : dynamic

Creates a new wrapper for accessing members of a new instance of Type.

Private Methods

Method Description
Exposed ( Type type ) : System

Initializes a new instance of the Exposed class. Creates a new wrapper for accessing hidden static members of a Type.

Exposed ( object subject ) : System

Initializes a new instance of the Exposed class. Creates a new wrapper for accessing members of subject.

Method Details

From() public static method

Creates a new wrapper for accessing hidden static members of a Type.
public static From ( Type type ) : dynamic
type System.Type /// The which will have it's static members exposed. ///
return dynamic

From() public static method

Creates a new wrapper for accessing members of subject.
public static From ( object subject ) : dynamic
subject object /// The object which will have it's members exposed. ///
return dynamic

GetMetaObject() public method

Returns the DynamicMetaObject responsible for binding operations performed on this object.
public GetMetaObject ( Expression parameter ) : DynamicMetaObject
parameter System.Linq.Expressions.Expression /// The expression tree representation of the runtime value. ///
return System.Dynamic.DynamicMetaObject

New() public static method

Creates a new wrapper for accessing members of a new instance of Type.
public static New ( Type type ) : dynamic
type System.Type /// The of which an instance will have it's members exposed. ///
return dynamic