Esempio n. 1
0
        // 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));
            }
        }
Esempio n. 2
0
        // 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));
            }
        }
Esempio n. 3
0
 protected BaseConfig(AbstractConfig proto)
     : base(proto)
 {
 }
Esempio n. 4
0
 protected BaseConfig(AbstractConfig proto)
     : base(proto)
 {
 }