diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index 74b97cf9..78e927fd 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -2001,10 +2001,8 @@ namespace CppSharp.Generators.CSharp retType = "global::System.IntPtr"; } - for (var i = 0; i < function.Parameters.Count; ++i) + foreach (var param in function.Parameters) { - var param = function.Parameters[i]; - if (param.Kind == ParameterKind.OperatorParameter) continue;