Click or drag to resize

JCOBridgeExtensionsWithThreadTEnumerable Method

Enable or disable use of a Thread on enumerable, default is to use ThreadPool

Namespace: MASES.JCOBridge.C2JBridge
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.5.17.240622-f0da58d62b7e98f73f32432917df8eb1a5f062a3
Syntax
public static TEnumerable WithThread<TEnumerable>(
	this TEnumerable enumerable,
	bool useThread = true,
	ThreadPriority threadPriority = ThreadPriority.AboveNormal
)
where TEnumerable : IEnumerableExtension

Parameters

enumerable  TEnumerable
The TEnumerable implementing IEnumerableExtension
useThread  Boolean  (Optional)
Set to to allocate a Thread, to use ThreadPool
threadPriority  ThreadPriority  (Optional)
The ThreadPriority to use, default is AboveNormal to give more priority to prefetch operation based on thread

Type Parameters

TEnumerable
A type implementing IEnumerableExtension

Return Value

TEnumerable
The enumerable with Thread enabled

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type TEnumerable. 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).
Remarks
This option is take into account only if prefetch is enabled
See Also