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);