Passing reference-type arguments
You are browsing legacy Javonet 1.5 (Java<>.NET bridge for Windows) documentation. Use the left side menu or click here to switch to latest Javonet 2.0 documentation. Javonet 2.0 allows you to use any module from
JVM, CLR, Netcore, Python, Ruby, Perl, NodeJS on Windows, Linux and MacOs
from any application created in Java, Clojure, Groovy, Kotlin, C#, F#, J#, VB.NET, Python, Perl, Ruby, JavaScript, TypeScript, C++ and GoLang
With Javonet, you can very easily pass any object from .NET Framework DLL as argument to any method from .NET Framework DLL, or substitute a field or property from .NET Framework DLL. Instances of objects from .NET Framework DLL can be stored in your any language application using the special NObject\JObject type variable. When passing the NObject\JObject object to the called method, Javonet just pass it as a reference.
Example:
Was this article helpful?