Exemplo n.º 1
0
 public virtual object CopyTo(FoundationItem retval, object targetContext)
 {
     retval.m_Key     = this.m_Key;
     retval._hash     = this._hash;
     retval.m_Context = targetContext;
     retval.Tag       = this.Tag;
     retval.Modified  = this.Modified;
     return(retval);
 }
Exemplo n.º 2
0
        // *** Clone ***

        public override object CopyTo(FoundationItem retval, object targetContext)
        {
            base.CopyTo(retval, targetContext);

            ((FoundationItemText)retval).m_Text        = this.m_Text;
            ((FoundationItemText)retval).m_Description = this.m_Description;

            return(retval);
        }
        // *** Clone ***

        public override object CopyTo(FoundationItem retval, object targetContext)
        {
            base.CopyTo(retval, targetContext);

            FoundationItemTextProperties item = retval as FoundationItemTextProperties;

            item.m_Properties = null;
            if (this.m_Properties != null)
            {
                item.m_Properties = new SerializableDictionary <string, object>();
                foreach (string key in this.m_Properties.Keys)
                {
                    item.m_Properties.Add(key, this.m_Properties[key]);
                }
            }

            return(item);
        }
Exemplo n.º 4
0
 public static bool IsValidModelObject <TModel>(this FoundationItem item, object context)
 {
     return(item != null && !item.IsDisposed && item.Context == context);
 }
Exemplo n.º 5
0
        // *** Clone ***

        public object CopyTo(FoundationItem retval)
        {
            return(this.CopyTo(retval, this.m_Context));
        }
Exemplo n.º 6
0
 public int GetHashCode(FoundationItem item)
 {
     return(item.GetHashCode());
 }