"vscode:/vscode.git/clone" did not exist on "e72b6eff0884673997d0ca6385169bbd9b31936d"
Commit 8bb11599 authored by Acai's avatar Acai
Browse files

Update Metatables.cs

RegisterOperatorsFunctions support base class
parent c2da3e6d
...@@ -1167,7 +1167,7 @@ namespace NLua ...@@ -1167,7 +1167,7 @@ namespace NLua
} }
Type type = target.GetType (); Type type = target.GetType ();
var operators = type.GetMethods (operation, BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static); var operators = type.GetMethods (operation, BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.FlattenHierarchy);
foreach (var op in operators) { foreach (var op in operators) {
bool isOk = translator.MatchParameters (luaState, op, ref validOperator); bool isOk = translator.MatchParameters (luaState, op, ref validOperator);
...@@ -1393,4 +1393,4 @@ namespace NLua ...@@ -1393,4 +1393,4 @@ namespace NLua
return isParamArray; return isParamArray;
} }
} }
} }
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment