Esempio n. 1
0
        public static List <vItemAttribute> CopyAsNew(this List <vItemAttribute> copy)
        {
            var target = new List <vItemAttribute>();

            if (copy != null)
            {
                for (int i = 0; i < copy.Count; i++)
                {
                    vItemAttribute attribute = new vItemAttribute(copy[i].name, copy[i].value);
                    target.Add(attribute);
                }
            }
            return(target);
        }
Esempio n. 2
0
 public static bool Equals(this vItemAttribute attributeA, vItemAttribute attributeB)
 {
     return(attributeA.name == attributeB.name);
 }