Exemple #1
0
 public ItemTag(ItemTag itemTag)
 {
     Copy(itemTag);
 }
Exemple #2
0
 public ItemTag(ItemTag itemTag)
 {
     Copy(itemTag);
 }
Exemple #3
0
        public void Copy(ItemTag obj)
        {
            if (obj == null)
                return;

            // copy all of the properties
            foreach (PropertyInfo pi in this.GetType().GetProperties())
            {
                var val = pi.GetValue(obj, null);
                pi.SetValue(this, val, null);
            }
        }