/// <summary>
 /// Determines if two itemTypes are equals
 /// </summary>
 /// <param name="itemType">An itemType.</param>
 /// <param name="otherItemType">Other itemType for comparation</param>
 /// <returns>
 /// 	<c>true</c> if the specified item type is equals; otherwise, <c>false</c>.
 /// </returns>
 public bool IsEquals(ItemType itemType, ItemType otherItemType)
 {
     try
     {
         ItemTypeComparator itemTypeComparator = new ItemTypeComparator(itemType, otherItemType);
         return itemTypeComparator.IsEquals();
     }
     catch(Exception)
     {
         return false;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Determines if two itemTypes are equals
 /// </summary>
 /// <param name="itemType">An itemType.</param>
 /// <param name="otherItemType">Other itemType for comparation</param>
 /// <returns>
 ///     <c>true</c> if the specified item type is equals; otherwise, <c>false</c>.
 /// </returns>
 public bool IsEquals(ItemType itemType, ItemType otherItemType)
 {
     try
     {
         ItemTypeComparator itemTypeComparator = new ItemTypeComparator(itemType, otherItemType);
         return(itemTypeComparator.IsEquals());
     }
     catch (Exception)
     {
         return(false);
     }
 }