 | JCOBridgeExtensionsWithConvertTClass, TJava, TNet Method |
Creates a new instance of enumerable, adding the converter in the execution chain
Namespace: MASES.JCOBridge.C2JBridgeAssembly: C2JBridge (in C2JBridge.dll) Version: 2.6.0.250731-5810c7ee42863a60537157d5240a6436d9a79ae3
Syntaxpublic static JVMBridgeBaseEnumerable<TClass, TNet> WithConvert<TClass, TJava, TNet>(
this JVMBridgeBaseEnumerable<TClass, TJava> enumerable,
Func<TJava, TNet> converter
)
where TClass : new(), JVMBridgeBase, IEnumerableExtension
<ExtensionAttribute>
Public Shared Function WithConvert(Of TClass As {New, JVMBridgeBase, IEnumerableExtension}, TJava, TNet) (
enumerable As JVMBridgeBaseEnumerable(Of TClass, TJava),
converter As Func(Of TJava, TNet)
) As JVMBridgeBaseEnumerable(Of TClass, TNet)
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,
TNetThe
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