public void upgrade(OldTSpace.ConstructorRepTemplate inV, NewTSpace.ConstructorRepTemplate outV) { upgrade(inV as OldTSpace.TranslationBase, outV as NewTSpace.TranslationBase); outV.Imports = inV.Imports; if (!String.IsNullOrEmpty(inV.Java)) outV.Java = inV.Java; foreach (OldTSpace.ParamRepTemplate inP in inV.Params) { NewTSpace.ParamRepTemplate outP = new NewTSpace.ParamRepTemplate(); upgrade(inP, outP); outV.Params.Add(outP); } }
public void upgrade(OldTSpace.ConstructorRepTemplate inV, NewTSpace.ConstructorRepTemplate outV) { upgrade(inV as OldTSpace.TranslationBase, outV as NewTSpace.TranslationBase); outV.Imports = inV.Imports; if (!String.IsNullOrEmpty(inV.Java)) { outV.Java = inV.Java; } foreach (OldTSpace.ParamRepTemplate inP in inV.Params) { NewTSpace.ParamRepTemplate outP = new NewTSpace.ParamRepTemplate(); upgrade(inP, outP); outV.Params.Add(outP); } }
public void upgrade(OldTSpace.ParamRepTemplate inV, NewTSpace.ParamRepTemplate outV) { outV.Type = inV.Type; outV.Name = inV.Name; }