 | 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.9.260611-9a148513a79c26cdd7f1dde468f4f9e06ef3bc7e
Syntaxpublic static JVMBridgeBaseEnumerable<TClass, TNet> WithConvert<TClass, TJava, TNet>(
this JVMBridgeBaseEnumerable<TClass, TJava> enumerable,
Func<TJava, TNet> converter
)
where TClass : class, IJVMBridgeBase
<ExtensionAttribute>
Public Shared Function WithConvert(Of TClass As {Class, IJVMBridgeBase}, 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