Class ValueTypeDefaultCtorMemberDescriptor
Member descriptor for the default constructor of value types.
Inheritance
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class ValueTypeDefaultCtorMemberDescriptor : IOverloadableMemberDescriptor, IWireableDescriptor
Constructors
ValueTypeDefaultCtorMemberDescriptor(Type)
Initializes a new instance of the MethodMemberDescriptor class representing the default empty ctor for a value type.
Declaration
public ValueTypeDefaultCtorMemberDescriptor(Type valueType)
Parameters
|
Type
valueType
Type of the value. |
Exceptions
|
System.ArgumentException
valueType is not a value type |
Properties
ExtensionMethodType
Gets the type which this extension method extends, null if this is not an extension method.
Declaration
public Type ExtensionMethodType { get; }
Property Value
|
Type
|
IsStatic
Gets a value indicating whether the described method 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 described method
Declaration
public string Name { get; }
Property Value
|
System.String
|
Parameters
Gets the type of the arguments of the underlying CLR function
Declaration
public ParameterDescriptor[] Parameters { get; }
Property Value
|
ParameterDescriptor[]
|
SortDiscriminant
Gets a sort discriminant to give consistent overload resolution matching in case of perfectly equal scores
Declaration
public string SortDiscriminant { get; }
Property Value
|
System.String
|
ValueTypeDefaultCtor
This property is equal to the value type to be constructed.
Declaration
public Type ValueTypeDefaultCtor { get; }
Property Value
|
Type
|
VarArgsArrayType
Gets a value indicating the type of the ParamArray parameter of a var-args function. If the function is not var-args, null is returned.
Declaration
public Type VarArgsArrayType { get; }
Property Value
|
Type
|
VarArgsElementType
Gets a value indicating the type of the elements of the ParamArray parameter of a var-args function. If the function is not var-args, null is returned.
Declaration
public Type VarArgsElementType { get; }
Property Value
|
Type
|
Methods
Execute(Script, Object, ScriptExecutionContext, CallbackArguments)
Invokes the member from script. Implementors should raise exceptions if the value cannot be executed or if access to an instance member through a static userdata is attempted.
Declaration
public DynValue Execute(Script script, object obj, ScriptExecutionContext context, CallbackArguments args)
Parameters
|
Script
script
The script. |
|
System.Object
obj
The object. |
|
ScriptExecutionContext
context
The context. |
|
CallbackArguments
args
The arguments. |
Returns
|
DynValue
|
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
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. Implementors should raise exceptions if the value cannot be read or if access to an instance member through a static userdata is attempted.
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. |