MessageTypeInfo

StockSharp.Messages

Extended info for MessageTypes.

Inherits: Equatable<MessageTypeInfo>

Constructors

MessageTypeInfo
public MessageTypeInfo(MessageTypes type, bool? isMarketData)
messageTypeInfo = MessageTypeInfo(type, isMarketData)

Initializes a new instance of the MessageTypeInfo.

type
Message type.
isMarketData
Type is market-data type.
MessageTypeInfo
public MessageTypeInfo(MessageTypes type, bool? isMarketData, string displayName, string description)
messageTypeInfo = MessageTypeInfo(type, isMarketData, displayName, description)

Initializes a new instance of the MessageTypeInfo.

type
Message type.
isMarketData
Type is market-data type.
displayName
Display name.
description
Description.

Properties

Description
public string Description { get; }
value = messageTypeInfo.Description

Description.

DisplayName
public string DisplayName { get; }
value = messageTypeInfo.DisplayName

Display name.

IsMarketData
public bool? IsMarketData { get; }
value = messageTypeInfo.IsMarketData

Type is market-data type.

Type
public MessageTypes Type { get; }
value = messageTypeInfo.Type

Message type.

Methods

Clone
public override MessageTypeInfo Clone()
result = messageTypeInfo.Clone()

Create a copy of MessageTypeInfo.

Returns: Copy.

GetHashCode
public override int GetHashCode()
result = messageTypeInfo.GetHashCode()

Serves as a hash function for a particular type.

Returns: A hash code for the current Object.

OnEquals
protected override bool OnEquals(MessageTypeInfo other)
result = messageTypeInfo.OnEquals(other)

Compare MessageTypeInfo on the equivalence.

other
Another value with which to compare.

Returns: , if the specified object is equal to the current object, otherwise, .

ToString
public override string ToString()
result = messageTypeInfo.ToString()

Преобразовать к строковому представлению.

Returns: Строковое представление.