Browse Source

Convert the GetFunctionOverloads return to a list to use IndexOf.

pull/1/head
triton 12 years ago
parent
commit
0f223f2852
  1. 2
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

2
src/Generator/Generators/CSharp/CSharpTextTemplate.cs

@ -1420,7 +1420,7 @@ namespace CppSharp.Generators.CSharp @@ -1420,7 +1420,7 @@ namespace CppSharp.Generators.CSharp
identifier = GetOperatorIdentifier(method.OperatorKind);
}
var overloads = AST.Utils.GetFunctionOverloads(function, @class);
var overloads = AST.Utils.GetFunctionOverloads(function, @class).ToList();
var index = overloads.IndexOf(function);
if (isNativeContext && index >= 0)

Loading…
Cancel
Save