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

Extensions for parameter operations. More...

Static Public Member Functions

static ParameterMemberData Parameterize (this IMemberData member, object target, object source, string name)
 Parameterizes a member from one object unto another. If the name matches an existing parameter, the member will be added to that. More...
 
static void Unparameterize (this IMemberData parameterizedMember, ParameterMemberData parameter, object source)
 Removes a parameterization of a member. More...
 
static bool IsParameterized (this IMemberData member, object source)
 Returns true if a member is parameters
 

Detailed Description

Extensions for parameter operations.

Member Function Documentation

◆ Parameterize()

static ParameterMemberData OpenTap.ParameterExtensions.Parameterize ( this IMemberData  member,
object  target,
object  source,
string  name 
)
inlinestatic

Parameterizes a member from one object unto another. If the name matches an existing parameter, the member will be added to that.

Parameters
targetThe object on which to add a new member.
memberThe member to forward.
sourceThe owner of the forwarded member.
nameThe name of the new property. If null, the name of the source member will be used.
Returns
The parameterization of the member..

◆ Unparameterize()

static void OpenTap.ParameterExtensions.Unparameterize ( this IMemberData  parameterizedMember,
ParameterMemberData  parameter,
object  source 
)
inlinestatic

Removes a parameterization of a member.

Parameters
parameterizedMemberThe parameterized member owned by the source.
parameterThe parameter to remove it from.
sourceThe source of the member.

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