RTI Connext C# API  6.1.2
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 [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

◆ Equals() [1/3]

override bool Equals ( object  obj)

Compares for equality

◆ Equals() [2/3]

bool Equals ( string  other)

Compares for equality

◆ Equals() [3/3]

bool Equals ( StringTopicType  other)

Compares for equality

◆ GetHashCode()

override int GetHashCode ( )

Returns Value.GetHashCode()

◆ operator string()

static implicit operator string ( StringTopicType  sample)
static

Implicit conversion from StringTopicType to string.

◆ operator StringTopicType()

static implicit operator StringTopicType ( string  value)
static

Implicit conversion from string to StringTopicType

◆ ToString()

override string ToString ( )

Returns Value.

Property Documentation

◆ Value

string Value
getset

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