Commit 3618add1 authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

Fixed Flags typo.

parent 29ebdf90
...@@ -101,9 +101,9 @@ namespace NLua.Method ...@@ -101,9 +101,9 @@ namespace NLua.Method
MethodInfo [] GetMethodsRecursively (Type type, string methodName, BindingFlags bindingType) MethodInfo [] GetMethodsRecursively (Type type, string methodName, BindingFlags bindingType)
{ {
if (type == typeof(object)) if (type == typeof(object))
return type.GetMethods (methodName, bindingType | BindingFlags.Public); return type.GetMethods (methodName, bindingType);
var methods = type.GetMethods (methodName, bindingType | BindingFlags.Public); var methods = type.GetMethods (methodName, bindingType);
var baseMethods = GetMethodsRecursively (type.BaseType, methodName, bindingType); var baseMethods = GetMethodsRecursively (type.BaseType, methodName, bindingType);
return methods.Concat (baseMethods).ToArray (); return methods.Concat (baseMethods).ToArray ();
......
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