Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem accessing base class method #116

Closed
karsten001 opened this issue Oct 24, 2014 · 0 comments
Closed

problem accessing base class method #116

karsten001 opened this issue Oct 24, 2014 · 0 comments

Comments

@karsten001
Copy link

Hi,

I have following code in c#

public class master
{
    public static string read()
    {
        return "test";
    }
}


public class testClass : master 
{
    public String strData;
    public int intData;
    public static string read2()
    {
        return "test";
    }
}

and I have following code in lua:

luanet.load_assembly 'Prototype.Test'
a = luanet.import_type 'Prototype.Test.testClass'

Following lua line is working:
return a.read2()

This one is not:
return a.read()
I get the error: unknown member name read
Do I have to call the static method read() in another way?

Regards

Karsten

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant