OpenTAP 9.27
API Reference
Public Member Functions | Static Public Member Functions | Properties | List of all members
OpenTap.DynamicMember Class Reference

Dynamic Member More...

Inheritance diagram for OpenTap.DynamicMember:
OpenTap.IMemberData OpenTap.IReflectionData

Public Member Functions

 DynamicMember ()
 Creates an instance of the dynamic member.
 
 DynamicMember (DynamicMember @base)
 This overload allows two DynamicMembers to share the same Get/Set value backing field. More...
 
virtual void SetValue (object owner, object value)
 Sets the value of the member.
 
virtual object GetValue (object owner)
 Gets the value of the member.
 

Static Public Member Functions

static void AddDynamicMember (object target, IMemberData member)
 Adds a dynamic member to the object.
 
static void RemoveDynamicMember (object target, IMemberData member)
 Removes a dynamic member to the object.
 

Properties

virtual IEnumerable< object > Attributes = Array.Empty<object>() [getset]
 Attributes
 
string Name [getset]
 Name of the member
 
ITypeData DeclaringType [getset]
 Declaring type. This should be the type of the target object.
 
ITypeData TypeDescriptor [getset]
 Describes the value of the member.
 
bool Writable [getset]
 If the member is writable.
 
bool Readable [getset]
 If the member is readable. This should generally be true.
 
object DefaultValue [getset]
 The default value of the member.
 
- Properties inherited from OpenTap.IMemberData
ITypeData DeclaringType [get]
 The type on which this member is declared.
 
ITypeData TypeDescriptor [get]
 The underlying type of this member.
 
bool Writable [get]
 Gets if this member is writable.
 
bool Readable [get]
 Gets if this member is readable.
 
- Properties inherited from OpenTap.IReflectionData
IEnumerable< object > Attributes [get]
 The attributes of it.
 
string Name [get]
 The name of it.
 

Detailed Description

Dynamic Member

Constructor & Destructor Documentation

◆ DynamicMember()

OpenTap.DynamicMember.DynamicMember ( DynamicMember base)
inline

This overload allows two DynamicMembers to share the same Get/Set value backing field.

Parameters
base

OpenTAP 9.27 API built Wed Nov 27 2024 13:14:45