예제 #1
0
        protected static IScriptStructure CreateBase(ScriptStructure copy)
        {
            if (copy.Base == null)
            {
                return(null);
            }

            return(copy.Base.CreateCopy());
        }
예제 #2
0
        protected static IEnumerable <IScriptField> CreateFields(ScriptStructure copy)
        {
            List <IScriptField> fields = new List <IScriptField>();

            foreach (ScriptField cfield in copy.Fields)
            {
                IScriptField field = cfield.CreateCopy();
                fields.Add(field);
            }
            return(fields);
        }
예제 #3
0
 protected ScriptStructure(ScriptStructure copy) :
     this(copy.Namespace, copy.Name, CreateBase(copy), CreateFields(copy))
 {
 }