Skip to content

problem accessing base class method #116

@karsten001

Description

@karsten001

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions