Represents a data member in a StructType.
More...
Represents a data member in a StructType.
◆ StructMember()
| Rti.Types.Dynamic.StructMember.StructMember |
( |
string |
name, |
|
|
DynamicType |
type, |
|
|
int |
id = InvalidMemberId, |
|
|
bool |
isExternal = false, |
|
|
bool |
isKey = false, |
|
|
bool |
isOptional = false, |
|
|
bool |
isMustUnderstand = false, |
|
|
Annotations |
annotations = null |
|
) |
| |
|
inline |
Creates a new StructMember.
- Parameters
-
| name | The name (required) |
| type | The type (required) |
| id | An explicit member ID (optional, automatically assigned by default) |
| isExternal | Whether to set @external (optional, false by default) |
| isKey | Whether to set @key (optional, false by default) |
| isOptional | Whether to set @optional (optional, false by default) |
| isMustUnderstand | Whether to set @must_understand (optional, false by default) |
| annotations | Member annotations (optional, none by default) |
◆ Equals() [1/2]
| override bool Rti.Types.Dynamic.StructMember.Equals |
( |
object |
other | ) |
|
◆ GetHashCode()
| override int Rti.Types.Dynamic.StructMember.GetHashCode |
( |
| ) |
|
|
inline |
◆ Equals() [2/2]
| bool Rti.Types.Dynamic.StructMember.Equals |
( |
StructMember |
other | ) |
|
|
inline |
◆ ToString()
| override string Rti.Types.Dynamic.StructMember.ToString |
( |
| ) |
|
Returns the member type and name
◆ InvalidMemberId
| const int Rti.Types.Dynamic.StructMember.InvalidMemberId = 0x7FFFFFFF |
|
static |
The default value for a member id.
◆ Name
| string Rti.Types.Dynamic.StructMember.Name |
|
get |
◆ Type
◆ IsExternal
| bool Rti.Types.Dynamic.StructMember.IsExternal |
|
get |
◆ Id
| int Rti.Types.Dynamic.StructMember.Id |
|
get |
◆ IsKey
| bool Rti.Types.Dynamic.StructMember.IsKey |
|
get |
◆ IsOptional
| bool Rti.Types.Dynamic.StructMember.IsOptional |
|
get |
◆ IsMustUnderstand
| bool Rti.Types.Dynamic.StructMember.IsMustUnderstand |
|
get |
Whether this member is annotated as @must_understand.
Note that members that are annotated as @key are always considered @must_understand, even if not explicitly annotated as such.
◆ Annotations
Optional values for the annotated properties of this member.