Click or drag to resize

TraderHelperTryAddTMessage, TChange Method (TMessage, TChange, NullableSecurityStates)

To add a change to the collection, if value is other than .

Namespace:  StockSharp.Algo
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public static TMessage TryAdd<TMessage, TChange>(
	this TMessage message,
	TChange type,
	Nullable<SecurityStates> value
)
where TMessage : BaseChangeMessage<TChange>

Parameters

message
Type: TMessage
Change message.
type
Type: TChange
Change type.
value
Type: SystemNullableSecurityStates
Change value.

Type Parameters

TMessage
Change message type.
TChange
Change type.

Return Value

Type: TMessage
Change message.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also