简体   繁体   English

试图在 NLua 中覆盖 .NET function 会返回错误“Foo”不是 .net 字段或属性

[英]attempting to ovveride a .NET function in NLua returns the error '“Foo” is not a .net field or property'

attempting to override a .NET function returns the error '"Foo" is not a .net field or property'试图覆盖 .NET function 返回错误“Foo”不是 .net 字段或属性

C# Code: C# 代码:

public class A
{
    public virtual void Foo(){}
}

Lua: Lua:

a = A()
function a:Foo()
    print("test")
end
 

attempting to override a .NET function returns the error '"Foo" is not a .net field or property'试图覆盖 .NET function 返回错误“Foo”不是 .net 字段或属性

C# Code: C# 代码:

public class A
{
    public virtual void Foo(){}
}

Lua: Lua:

a = A()
function a:Foo()
    print("test")
end
 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在运行NLua的脚本中对.NET枚举执行按位OR? - How do I perform a bitwise OR on .NET enums in script running with NLua? .NET IConfiguration为属性返回null - .NET IConfiguration returns null for a property ASP .NET嵌套数据网格-在选定的数据源错误上找不到字段或属性 - ASP .NET Nested Datagrid - Field or Property was not found on selected datasource error .NET 函数中的线程永远不会返回 - Thread in .NET Function never returns 尝试上传到FTP:System.Net.WebException:系统错误 - Attempting to upload to FTP: System.Net.WebException: System error .net API 尝试接受带有大文件的 model 时出错 - .net API error when attempting to accept model with large file 尝试使用 .NET EF 进行迁移时,值不能是 null 错误 - Value cannot be null error when attempting migration w/ .NET EF 在VB.NET中使用Dim foo As Foo有什么问题吗? - Are there issues using Dim foo As Foo in VB.NET? .Net smtp SendMailAsync function 返回 IsCanceled - .Net smtp SendMailAsync function returns IsCanceled 错误:在所选数据源(asp.net c#,sql)上找不到名称为“ ProductID”的字段或属性 - Error: A field or property with the name 'ProductID' was not found on the selected data source (asp.net c#, sql)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM