Click or drag to resize

JCOBridgeExtensionsWithConvertTClass, TJava, TNet Method

Creates a new instance of enumerable, adding the converter in the execution chain

Namespace: MASES.JCOBridge.C2JBridge
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.5.21.241219-a6a144ea07c497c3a9a1be842408e852afb458be
Syntax
public static JVMBridgeBaseEnumerable<TClass, TNet> WithConvert<TClass, TJava, TNet>(
	this JVMBridgeBaseEnumerable<TClass, TJava> enumerable,
	Func<TJava, TNet> converter
)
where TClass : new(), JVMBridgeBase, IEnumerableExtension

Parameters

enumerable  JVMBridgeBaseEnumerableTClass, TJava
The class inherited from JVMBridgeBaseEnumerableTClass, TObject implementing IEnumerableExtension
converter  FuncTJava, TNet
Set the FuncT, TResult used to convert from TJava to TNet while ieration is done

Type Parameters

TClass
The class implementing IJVMBridgeBase
TJava
The type of objects to enumerate in Java space
TNet
The new converted object after enumeration reported from Current

Return Value

JVMBridgeBaseEnumerableTClass, TNet
The enumerable with converter added in the execution chain

Usage Note

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