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

An un-keyed topic-type containing a single string. This type can be used to instantiate a Dds.Topics.Topic<T>. More...

Inherits IEquatable< StringTopicType >, and IEquatable< string >.

Public Member Functions

override string ToString ()
 Returns Value. More...
 
override bool Equals (object obj)
 Compares for equality More...
 
bool Equals (StringTopicType other)
 Compares for equality More...
 
bool Equals (string other)
 Compares for equality More...
 
override int GetHashCode ()
 Returns Value.GetHashCode() More...
 

Static Public Member Functions

static implicit operator StringTopicType (string value)
 Implicit conversion from string to StringTopicType More...
 
static implicit operator string (StringTopicType sample)
 Implicit conversion from StringTopicType to string. More...
 

Properties

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

Detailed Description

An un-keyed topic-type containing a single string. This type can be used to instantiate a Dds.Topics.Topic<T>.

This type is equivalent to the following IDL type:

struct StringTopicType {
string<1024> value;
};

Note that the maximum size of the string that can be published with this type is 1024 bytes in UTF-8 format.

It is also possible to use string as the type argument for Topic, with the same effect as StringTopicType.

Member Function Documentation

◆ ToString()

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

Returns Value.

◆ Equals() [1/3]

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

Compares for equality

◆ Equals() [2/3]

bool Rti.Types.Builtin.StringTopicType.Equals ( StringTopicType  other)

Compares for equality

◆ Equals() [3/3]

bool Rti.Types.Builtin.StringTopicType.Equals ( string  other)

Compares for equality

◆ GetHashCode()

override int Rti.Types.Builtin.StringTopicType.GetHashCode ( )

Returns Value.GetHashCode()

◆ operator StringTopicType()

static implicit Rti.Types.Builtin.StringTopicType.operator StringTopicType ( string  value)
static

Implicit conversion from string to StringTopicType

◆ operator string()

static implicit Rti.Types.Builtin.StringTopicType.operator string ( StringTopicType  sample)
static

Implicit conversion from StringTopicType to string.

Property Documentation

◆ Value

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

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