RTI Connext C# API
6.1.0
|
Represents a union member in a UnionType. More...
Public Member Functions | |
UnionMember (string name, DynamicType type, IEnumerable< int > labels, int id=InvalidMemberId, bool isExternal=false) | |
Creates a new UnionMember. More... | |
override bool | Equals (object other) |
Compares for equality More... | |
override int | GetHashCode () |
Calculates a hash code More... | |
bool | Equals (UnionMember other) |
Compares for equality More... | |
override string | ToString () |
Returns the member type and name More... | |
Static Public Attributes | |
const int | InvalidMemberId |
The default value for a member id. More... | |
const int | DefaultLabel |
A special integer used by Labels to indicate that a union member is selected by the default: label. More... | |
Properties | |
string | Name [get] |
The member name. More... | |
DynamicType | Type [get] |
The member type. More... | |
bool | IsExternal [get] |
Whether this member is annotated as @external . More... | |
int | Id [get] |
The member IDL (value of the @id annotation). More... | |
IEnumerable< int > | Labels [get] |
The labels that select this union member. More... | |
![]() | |
IEnumerable< int > | Labels [get] |
The labels that select this IUnionMember. More... | |
![]() | |
IDynamicType | Type [get] |
The IDynamicType of the IAggregationMember. More... | |
int | Id [get] |
The id of the IAggregationMember. More... | |
bool | IsExternal [get] |
Indicates whether or not the IAggregationMember is annotated as external. More... | |
![]() | |
string | Name [get] |
The name of the member. More... | |
Represents a union member in a UnionType.
UnionMember | ( | string | name, |
DynamicType | type, | ||
IEnumerable< int > | labels, | ||
int | id = InvalidMemberId , |
||
bool | isExternal = false |
||
) |
Creates a new UnionMember.
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) |
override bool Equals | ( | object | other | ) |
Compares for equality
bool Equals | ( | UnionMember | other | ) |
Compares for equality
override int GetHashCode | ( | ) |
Calculates a hash code
override string ToString | ( | ) |
Returns the member type and name
|
static |
A special integer used by Labels to indicate that a union member is selected by the default:
label.
|
static |
The default value for a member id.
|
get |
The member IDL (value of the @id
annotation).
|
get |
Whether this member is annotated as @external
.
|
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
|
get |
The member name.
|
get |
The member type.