mikehend / luainterface

Automatically exported from code.google.com/p/luainterface
0 stars 0 forks source link

Can't call a static mehod in user define class. #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We define a public static method in user class.
public class UserClass{
   public static void StaticMethod(){}
}
then call it in lua:
    luanet.load_assembly "**.dll"
    UserClass=luanet.import_type("***")
    UserClass.StaticMethod()
throw a "unknow member "StaticMehtod"" Exception.

i try to call "MessageBox.Show" method in System.Windows.Forms.MessageBox.
it works.

Original issue reported on code.google.com by isSin...@gmail.com on 22 Dec 2009 at 5:04

GoogleCodeExporter commented 9 years ago
Hi isSingle,

I just did some testing to ensure this functionality works and it appears to 
work in both the current trunk version (revision 15) as well as the 2.0.3 
release build.  I am attaching a zip file with the solution I used to test it.

I am going to close this for now as a fixed issue under the assumption that you 
were using a previous version.  If you can still reproduce the issue, or if you 
have trouble with the sample I'm providing, please don't hesitate to reopen the 
issue with more details.

Thanks a lot!

Original comment by eonstorm@gmail.com on 2 Jul 2010 at 6:02

Attachments: