OpenTAP 9.24
API Reference
Public Member Functions | Static Public Member Functions | Public Attributes | Properties | List of all members
OpenTap.MemberData Class Reference

Represents the members of C#/dotnet types. More...

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

Public Member Functions

object GetValue (object owner)
 Gets the value of this member. More...
 
void SetValue (object owner, object value)
 Sets the value of this member on an object. More...
 
override string ToString ()
 Gets a string representation of this CSharpType.
 
override bool Equals (object obj)
 Equality for MemberData. Returns true if the other object is a MemberData and refers to same member object.
 
override int GetHashCode ()
 GetHash for MemberData.
 

Static Public Member Functions

static MemberData Create (MemberInfo info)
 Creates a new MemberData for a member of a C#/dotnet type. More...
 

Public Attributes

readonly MemberInfo Member
 The System.Reflection.MemberInfo this represents.
 

Properties

IEnumerable< object > Attributes [get]
 The attributes of this member.
 
string Name [get]
 The name of this member.
 
ITypeData DeclaringType [get]
 The declaring type of this member.
 
bool Writable [get]
 Gets if the member is writable.
 
bool?? Readable [get]
 Gets if the member is readable.
 
ITypeData TypeDescriptor [get]
 The type descriptor for the object that this member can hold.
 
- 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

Represents the members of C#/dotnet types.

Member Function Documentation

◆ Create()

static MemberData OpenTap.MemberData.Create ( MemberInfo  info)
inlinestatic

Creates a new MemberData for a member of a C#/dotnet type.

Parameters
info
Returns

◆ GetValue()

object OpenTap.MemberData.GetValue ( object  owner)
inline

Gets the value of this member.

Parameters
owner
Returns

Implements OpenTap.IMemberData.

◆ SetValue()

void OpenTap.MemberData.SetValue ( object  owner,
object  value 
)
inline

Sets the value of this member on an object.

Parameters
owner
value

Implements OpenTap.IMemberData.

OpenTAP 9.24 API built Tue Apr 30 2024 13:44:42