OpenTAP 9.24
API Reference
Properties | List of all members
OpenTap.EmbedPropertiesAttribute Class Reference

This attribute is used to dynamically embed the properties of an object into another object. More...

Inherits Attribute.

Properties

bool PrefixPropertyName = true [getset]
 When true, property name of the owning property is used as prefix for embedded properties. E.g., the name will be 'EmbeddedProperty.X'. A prefix can help prevent name-clashing issues if multiple properties gets the same name.
 
string Prefix = null [getset]
 Custom prefix for embedded properties. This will overwrite PrefixPropertyName. A prefix can help prevent name-clashing issues if multiple properties gets the same name.
 

Detailed Description

This attribute is used to dynamically embed the properties of an object into another object.

A property of type PT declared on a type DT decorated with this attribute will not be visible in reflection information (ITypeData) for DT. Instead all properties declared on PT will be visible on DT as though they had been declared there.

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