From 0f223f2852ddf021909ebff455378fe926aed189 Mon Sep 17 00:00:00 2001 From: triton Date: Wed, 15 May 2013 15:11:48 +0100 Subject: [PATCH] Convert the GetFunctionOverloads return to a list to use IndexOf. --- src/Generator/Generators/CSharp/CSharpTextTemplate.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index dfa974b9..becad8ca 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -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)