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

            return(copy.Base.CreateCopy());
        }
Beispiel #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);
        }
Beispiel #3
0
 protected ScriptStructure(ScriptStructure copy) :
     this(copy.Namespace, copy.Name, CreateBase(copy), CreateFields(copy))
 {
 }