// todo. this creates a race between cloning and modifying threads // think carefully and do something about that protected AbstractConfig(AbstractConfig proto) { if (proto != null) { (proto.GetType() == this.GetType()).AssertTrue(); var props = this.GetType().GetProperties(BF.AllInstance); props.ForEach(p => p.SetValue(this, p.GetValue(proto, null), null)); } }
protected BaseConfig(AbstractConfig proto) : base(proto) { }