Esempio n. 1
0
        override public IConstruct DeepCopy()
        {
            AM <T> other = ShallowCopy();

            other.Set((T)Copy(_content));
            return(other);
        }
Esempio n. 2
0
        IConstruct DeepCopy(T t)
        {
            AM <T> other = ShallowCopy();

            other.DeepCopy();
            other.Set((T)Copy(_content));
            return(other);
        }
Esempio n. 3
0
        public void Set(T value, bool notify)
        {
            AM <T> oldContent = new AM <T>();

            oldContent.Set(_content);
            _content = value;

            //    Debug(_content);
            if (notify == true)
            {
                Raise(this, oldContent);
            }
        }
Esempio n. 4
0
 IConstruct Copy(T t)
 {
     if (t is ValueType)
     {
         T s = default(T);
         s = t;
         AM <T> amt = new AM <T>();
         amt.Set(s);
         return(amt);
     }
     else
     {
         return((t as  IConstruct).DeepCopy());
     }
 }