Ejemplo n.º 1
0
        override public void CopyFrom(ICopyableAttribute other)
        {
            this.BatchUpdate(() =>
            {
                List <T> list = new List <T>();
                foreach (var it in (other as ListAttribute <T>).Value)
                {
                    list.Add(it == null ? null : (T)it.Clone());
                }

                this.Value = list.ToArray();
            });
        }
Ejemplo n.º 2
0
 virtual public void CopyFrom(ICopyableAttribute other)
 {
     this.Value = (other as Attribute <T>).Value;
 }