예제 #1
0
        public MetaScript Copy()
        {
            MetaScript copy = new MetaScript();

            this.CopyTo(copy);
            return(copy);
        }
예제 #2
0
 public void CopyTo(MetaScript script)
 {
     foreach (PropertyInfo property in typeof(MetaScript).GetProperties())
     {
         if (property.IsList())
         {
             continue;
         }
         if (!property.CanWrite)
         {
             continue;
         }
         property.SetValue(script, property.GetValue(this));
     }
 }