private void AddItem(AssetCatalogItem item, string idiom, string role, int width, int height)
 {
     foreach (AssetBrandAssetItem item2 in this.m_Items)
     {
         if (item2.item.name == item.name)
         {
             throw new Exception("An item with given name already exists");
         }
     }
     AssetBrandAssetItem item3 = new AssetBrandAssetItem {
         item = item,
         idiom = idiom,
         role = role,
         width = width,
         height = height
     };
     this.m_Items.Add(item3);
 }
        void AddItem(AssetCatalogItem item, string idiom, string role, int width, int height)
        {
            foreach (var it in m_Items)
            {
                if (it.item.name == item.name)
                {
                    throw new Exception("An item with given name already exists");
                }
            }
            var newItem = new AssetBrandAssetItem();

            newItem.item   = item;
            newItem.idiom  = idiom;
            newItem.role   = role;
            newItem.width  = width;
            newItem.height = height;
            m_Items.Add(newItem);
        }
        private void AddItem(AssetCatalogItem item, string idiom, string role, int width, int height)
        {
            foreach (AssetBrandAssetItem item2 in this.m_Items)
            {
                if (item2.item.name == item.name)
                {
                    throw new Exception("An item with given name already exists");
                }
            }
            AssetBrandAssetItem item3 = new AssetBrandAssetItem {
                item   = item,
                idiom  = idiom,
                role   = role,
                width  = width,
                height = height
            };

            this.m_Items.Add(item3);
        }