RTI Connext C# API Version 7.3.0
Rti.Types.Builtin.KeyedStringTopicType Class Reference

An keyed topic-type containing two strings: a key and a value. This type can be used to instantiate a Rti.Dds.Topics.Topic<T>. More...

Inherits IEquatable< KeyedStringTopicType >.

Public Member Functions

 KeyedStringTopicType ()
 Creates an instance with two empty strings More...
 
 KeyedStringTopicType (string Key, string Value)
 Creates an instance with the given key and value More...
 
 KeyedStringTopicType (KeyedStringTopicType other)
 Creates an instance with the same strings as another instance More...
 
override int GetHashCode ()
 Gets the hashcode More...
 
bool Equals (KeyedStringTopicType other)
 Compares for equality More...
 
override bool Equals (object obj)
 Compares for equality More...
 
override string ToString ()
 Converts to string More...
 

Properties

string Key = string.Empty [get, set]
 The key (its maximum size is 1024 bytes in UTF-8 format) More...
 
string Value = string.Empty [get, set]
 The value (its maximum size is 1024 bytes in UTF-8 format) More...
 

Detailed Description

An keyed topic-type containing two strings: a key and a value. This type can be used to instantiate a Rti.Dds.Topics.Topic<T>.

This type is equivalent to the following IDL type:

@key string<1024> key;
string<1024> value;
};
KeyedStringTopicType()
Creates an instance with two empty strings
Definition: KeyedStringTopicType.cs:53

Note that the maximum size maximum size of each string is 1024 bytes in UTF-8 format.

Constructor & Destructor Documentation

◆ KeyedStringTopicType() [1/3]

Rti.Types.Builtin.KeyedStringTopicType.KeyedStringTopicType ( )
inline

Creates an instance with two empty strings

◆ KeyedStringTopicType() [2/3]

Rti.Types.Builtin.KeyedStringTopicType.KeyedStringTopicType ( string  Key,
string  Value 
)
inline

Creates an instance with the given key and value

◆ KeyedStringTopicType() [3/3]

Rti.Types.Builtin.KeyedStringTopicType.KeyedStringTopicType ( KeyedStringTopicType  other)
inline

Creates an instance with the same strings as another instance

Member Function Documentation

◆ GetHashCode()

override int Rti.Types.Builtin.KeyedStringTopicType.GetHashCode ( )
inline

Gets the hashcode

◆ Equals() [1/2]

bool Rti.Types.Builtin.KeyedStringTopicType.Equals ( KeyedStringTopicType  other)
inline

Compares for equality

◆ Equals() [2/2]

override bool Rti.Types.Builtin.KeyedStringTopicType.Equals ( object  obj)

Compares for equality

◆ ToString()

override string Rti.Types.Builtin.KeyedStringTopicType.ToString ( )

Converts to string

Property Documentation

◆ Key

string Rti.Types.Builtin.KeyedStringTopicType.Key = string.Empty
getset

The key (its maximum size is 1024 bytes in UTF-8 format)

◆ Value

string Rti.Types.Builtin.KeyedStringTopicType.Value = string.Empty
getset

The value (its maximum size is 1024 bytes in UTF-8 format)