Show / Hide Table of Contents

Interface IMemberDescriptor

Base interface to describe access to members of a given type. While it's not infrastructural to implement custom type descriptors, it's needed for classes extending DispatchingUserDataDescriptor.

Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public interface IMemberDescriptor

Properties

IsStatic

Gets a value indicating whether the described member is static.

Declaration
bool IsStatic { get; }
Property Value
System.Boolean

MemberAccess

Gets the types of access supported by this member

Declaration
MemberDescriptorAccess MemberAccess { get; }
Property Value
MemberDescriptorAccess

Name

Gets the name of the member

Declaration
string Name { get; }
Property Value
System.String

Methods

GetValue(Script, Object)

Gets the value of this member as a DynValue to be exposed to scripts. Implementors should raise exceptions if the value cannot be read or if access to an instance member through a static userdata is attempted.

Declaration
DynValue GetValue(Script script, object obj)
Parameters
Script script

The script.

System.Object obj

The object owning this member, or null if static.

Returns
DynValue

The value of this member as a DynValue.

SetValue(Script, Object, DynValue)

Sets the value of this member from a DynValue. Implementors should raise exceptions if the value cannot be read or if access to an instance member through a static userdata is attempted.

Declaration
void SetValue(Script script, object obj, DynValue value)
Parameters
Script script

The script.

System.Object obj

The object owning this member, or null if static.

DynValue value

The value to be set.

Back to top Built by Itinero, MIT licensed.