开发者

Analyse/reflect jars in C#

开发者 https://www.devze.com 2023-02-11 05:44 出处:网络
I found this question .jar to .cs class/file transform technique or utility? which also would solve my problem.

I found this question .jar to .cs class/file transform technique or utility? which also would solve my problem.

But since I should provide a tool which not only generates the C#-Code but also compiles it to one dll, and this would be easiear to do only in C#, is there any开发者_C百科 .net library with which I can reflect Classes and Interfaces which are stored in a jar file? I just need the signatures for the Methods, not to invoke it.

thx


You can use javap command line utility to print the methods signature. Use any way you familiar with to extract classes from jar: it is just a zip file. So you can either use C# API or command line utility (for example jar vfx myjar.jar

0

精彩评论

暂无评论...
验证码 换一张
取 消