예제 #1
0
        public NewTSpace.TypeRepTemplate upgrade(OldTSpace.TypeRepTemplate inTemplate)
        {
            inProgress = inTemplate;

            OldTSpace.StructRepTemplate strukt = inTemplate as OldTSpace.StructRepTemplate;
            if (strukt != null)
            {
                NewTSpace.StructRepTemplate res = new NewTSpace.StructRepTemplate();
                upgrade(strukt, res);
                return(res);
            }
            OldTSpace.ClassRepTemplate klass = inTemplate as OldTSpace.ClassRepTemplate;
            if (klass != null)
            {
                NewTSpace.ClassRepTemplate res = new NewTSpace.ClassRepTemplate();
                upgrade(klass, res);
                return(res);
            }
            OldTSpace.InterfaceRepTemplate iface = inTemplate as OldTSpace.InterfaceRepTemplate;
            if (iface != null)
            {
                NewTSpace.InterfaceRepTemplate res = new NewTSpace.InterfaceRepTemplate();
                upgrade(iface, res);
                return(res);
            }

            throw new System.NotImplementedException(inTemplate.GetType().ToString());
        }
예제 #2
0
 public void upgrade(OldTSpace.StructRepTemplate inV, NewTSpace.StructRepTemplate outV)
 {
     upgrade(inV, outV);
 }