Click or drag to resize

LoggingHelperSafeAddT1, T2 Method

Wrap the specified action in try/catch clause with logging.

Namespace:  StockSharp.Logging
Assembly:  StockSharp.Logging (in StockSharp.Logging.dll) Version: 4.4.17.0 (4.4.17)
Syntax
C#
public static T2[] SafeAdd<T1, T2>(
	this IEnumerable from,
	Func<T1, T2> func
)

Parameters

from
Type: System.CollectionsIEnumerable
Source values
func
Type: SystemFuncT1, T2
Converter.

Type Parameters

T1
The type of source values.
T2
The type of returned result.

Return Value

Type: T2
Result.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable. 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