Show / Hide Table of Contents

Class DynValueMemberDescriptor

Class providing a simple descriptor for constant DynValues in userdata

Inheritance
System.Object
DynValueMemberDescriptor
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class DynValueMemberDescriptor : IMemberDescriptor, IWireableDescriptor

Constructors

DynValueMemberDescriptor(String)

Initializes a new instance of the DynValueMemberDescriptor class.

Declaration
protected DynValueMemberDescriptor(string name)
Parameters
System.String name

The name.

DynValueMemberDescriptor(String, DynValue)

Initializes a new instance of the DynValueMemberDescriptor class.

Declaration
public DynValueMemberDescriptor(string name, DynValue value)
Parameters
System.String name

The name.

DynValue value

The value.

DynValueMemberDescriptor(String, String)

Initializes a new instance of the DynValueMemberDescriptor class.

Declaration
protected DynValueMemberDescriptor(string name, string serializedTableValue)
Parameters
System.String name

The name.

System.String serializedTableValue

A string containing a table whose first member is the dynvalue to be deserialized (convoluted...).

Properties

IsStatic

Gets a value indicating whether the described member is static.

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

MemberAccess

Gets the types of access supported by this member

Declaration
public MemberDescriptorAccess MemberAccess { get; }
Property Value
MemberDescriptorAccess

Name

Gets the name of the member

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

Value

Gets the value wrapped by this descriptor

Declaration
public virtual DynValue Value { get; }
Property Value
DynValue

Methods

GetValue(Script, Object)

Gets the value of this member as a DynValue to be exposed to scripts.

Declaration
public 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.

PrepareForWiring(Table)

Prepares the descriptor for hard-wiring. The descriptor fills the passed table with all the needed data for hardwire generators to generate the appropriate code.

Declaration
public void PrepareForWiring(Table t)
Parameters
Table t

The table to be filled

SetValue(Script, Object, DynValue)

Sets the value of this member from a DynValue.

Declaration
public 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.

Exceptions
ScriptRuntimeException

userdata '{0}' cannot be written to.

Back to top Built by Itinero, MIT licensed.