RTI Connext C# API  6.1.1
TypeConsistencyEnforcement Class Reference

Defines the rules that determine whether the type used to publish a given Topics.Topic<T> is consistent with that used to subscribe to it. More...

Inherits IEquatable< TypeConsistencyEnforcement >.

Public Member Functions

TypeConsistencyEnforcement With (Action< TypeConsistencyEnforcementBuilder > build)
 Creates a new TypeConsistencyEnforcement with a set of changes specified in an Action More...
 
override int GetHashCode ()
 Gets the hash code More...
 
override bool Equals (object other)
 Compares for equality More...
 
bool Equals (TypeConsistencyEnforcement other)
 Compares for equality More...
 

Properties

TypeConsistencyKind Kind [get]
 Type consistency kind. More...
 
bool IgnoreSequenceBounds [get]
 Controls whether sequence bounds are taken into consideration for type assignability. More...
 
bool IgnoreStringBounds [get]
 Controls whether string bounds are taken into consideration for type assignability. More...
 
bool IgnoreMemberNames [get]
 Controls whether member names are taken into consideration for type assignability. More...
 
bool PreventTypeWidening [get]
 Controls whether type widening is allowed. More...
 
bool ForceTypeValidation [get]
 Controls whether type information must be available in order to complete matching between a Publication.DataWriter<T> and a Subscription.DataReader<T>. More...
 
bool IgnoreEnumLiteralNames [get]
 Controls whether enumeration constant names are taken into consideration for type assignability. More...
 
static TypeConsistencyEnforcement Default [get]
 Singleton containing the default value of a TypeConsistencyEnforcement More...
 

Detailed Description

Defines the rules that determine whether the type used to publish a given Topics.Topic<T> is consistent with that used to subscribe to it.

The full documentation is available in the C API: DDS_TypeConsistencyEnforcementQosPolicy

Member Function Documentation

◆ Equals() [1/2]

override bool Equals ( object  other)

Compares for equality

◆ Equals() [2/2]

bool Equals ( TypeConsistencyEnforcement  other)

Compares for equality

◆ GetHashCode()

override int GetHashCode ( )

Gets the hash code

◆ With()

Creates a new TypeConsistencyEnforcement with a set of changes specified in an Action

Parameters
buildAn Action (typically a lambda function) that receives a modifiable object with the current values of this TypeConsistencyEnforcement.
Returns
A new TypeConsistencyEnforcement with the changes applied by the Action

Property Documentation

◆ Default

TypeConsistencyEnforcement Default
staticget

Singleton containing the default value of a TypeConsistencyEnforcement

◆ ForceTypeValidation

bool ForceTypeValidation
get

Controls whether type information must be available in order to complete matching between a Publication.DataWriter<T> and a Subscription.DataReader<T>.

The full documentation is available in the C API: DDS_TypeConsistencyEnforcementQosPolicy::force_type_validation

◆ IgnoreEnumLiteralNames

bool IgnoreEnumLiteralNames
get

Controls whether enumeration constant names are taken into consideration for type assignability.

The full documentation is available in the C API: DDS_TypeConsistencyEnforcementQosPolicy::ignore_enum_literal_names

◆ IgnoreMemberNames

bool IgnoreMemberNames
get

Controls whether member names are taken into consideration for type assignability.

The full documentation is available in the C API: DDS_TypeConsistencyEnforcementQosPolicy::ignore_member_names

◆ IgnoreSequenceBounds

bool IgnoreSequenceBounds
get

Controls whether sequence bounds are taken into consideration for type assignability.

The full documentation is available in the C API: DDS_TypeConsistencyEnforcementQosPolicy::ignore_sequence_bounds

◆ IgnoreStringBounds

bool IgnoreStringBounds
get

Controls whether string bounds are taken into consideration for type assignability.

The full documentation is available in the C API: DDS_TypeConsistencyEnforcementQosPolicy::ignore_string_bounds

◆ Kind

Type consistency kind.

The full documentation is available in the C API: DDS_TypeConsistencyEnforcementQosPolicy::kind

◆ PreventTypeWidening

bool PreventTypeWidening
get

Controls whether type widening is allowed.

The full documentation is available in the C API: DDS_TypeConsistencyEnforcementQosPolicy::prevent_type_widening