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