From e8f219c81c9aaceb44fe76a4a018b9a832818654 Mon Sep 17 00:00:00 2001 From: triton Date: Wed, 21 Aug 2013 18:34:50 +0100 Subject: [PATCH] Use foreach instead of explicit for. --- src/Generator/Generators/CSharp/CSharpTextTemplate.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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;