Represents a union member in a UnionType.
More...
Represents a union member in a UnionType.
◆ UnionMember()
Rti.Types.Dynamic.UnionMember.UnionMember |
( |
string |
name, |
|
|
DynamicType |
type, |
|
|
IEnumerable< int > |
labels, |
|
|
int |
id = InvalidMemberId , |
|
|
bool |
isExternal = false |
|
) |
| |
|
inline |
Creates a new UnionMember.
- Parameters
-
name | The name (required) |
type | The type (required) |
labels | The labels that select this member (required) |
id | An explicit member ID (optional, automatically assigned by default) |
isExternal | Whether to set @external (optional, false by default) |
◆ Equals() [1/2]
override bool Rti.Types.Dynamic.UnionMember.Equals |
( |
object |
other | ) |
|
◆ GetHashCode()
override int Rti.Types.Dynamic.UnionMember.GetHashCode |
( |
| ) |
|
|
inline |
◆ Equals() [2/2]
bool Rti.Types.Dynamic.UnionMember.Equals |
( |
UnionMember |
other | ) |
|
|
inline |
◆ ToString()
override string Rti.Types.Dynamic.UnionMember.ToString |
( |
| ) |
|
Returns the member type and name
◆ InvalidMemberId
const int Rti.Types.Dynamic.UnionMember.InvalidMemberId = 0x7FFFFFFF |
|
static |
The default value for a member id.
◆ DefaultLabel
const int Rti.Types.Dynamic.UnionMember.DefaultLabel = 0x40000001 |
|
static |
A special integer used by Labels to indicate that a union member is selected by the default:
label.
◆ Name
string Rti.Types.Dynamic.UnionMember.Name |
|
get |
◆ Type
◆ IsExternal
bool Rti.Types.Dynamic.UnionMember.IsExternal |
|
get |
◆ Id
int Rti.Types.Dynamic.UnionMember.Id |
|
get |
◆ Labels
IEnumerable<int> Rti.Types.Dynamic.UnionMember.Labels |
|
get |
The labels that select this union member.
When the union's discriminator is not of type int
, the elements in this collection are cast to int
.
The special value DefaultLabel refers to the default:
label.
The full documentation is available in the C API: DDS_UnionMember_labels
Implements Omg.Types.Dynamic.IUnionMember.