From 0bf8cc9aed0cbbb3bff983ae6a44473375b8552d Mon Sep 17 00:00:00 2001 From: Kevin Glynn Date: Fri, 15 Oct 2010 14:31:10 +0200 Subject: [PATCH] just grab params once and update directly --- CSharpTranslator/antlr3/cs2jTest/TranslationTemplate.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CSharpTranslator/antlr3/cs2jTest/TranslationTemplate.cs b/CSharpTranslator/antlr3/cs2jTest/TranslationTemplate.cs index cf7d494..4b8b3a0 100644 --- a/CSharpTranslator/antlr3/cs2jTest/TranslationTemplate.cs +++ b/CSharpTranslator/antlr3/cs2jTest/TranslationTemplate.cs @@ -62,9 +62,10 @@ namespace RusticiSoftware.Translator.CLR DelegateRepTemplate to = new DelegateRepTemplate(); to.Return = "System.String"; - to.Params.Add(new ParamRepTemplate("System.Int32", "count")); - to.Params.Add(new ParamRepTemplate("System.Object", "fill")); - to.Params.Add(new ParamRepTemplate("System.Boolean", "verbose")); + List parms = to.Params; + parms.Add(new ParamRepTemplate("System.Int32", "count")); + parms.Add(new ParamRepTemplate("System.Object", "fill")); + parms.Add(new ParamRepTemplate("System.Boolean", "verbose")); to.Java = "fred"; DelegateRepTemplate back = (DelegateRepTemplate)ToStreamAndBack(to);