public MetaScript Copy() { MetaScript copy = new MetaScript(); this.CopyTo(copy); return(copy); }
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)); } }