Beispiel #1
0
 /// <summary>
 /// Sorts the collection by the specified <see cref="Rift.Data.ShopItem"/> field.
 /// </summary>
 /// <param name="field">A <see cref="Rift.Data.ShopItem"/> field to sort.</param>
 public void Sort(ShopItemField field)
 {
     items.Sort(new ShopItemComparer(field));
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new instance of the <see cref="Rift.Data.ShopItemComparer"/> class
 /// from the specified <see cref="Rift.Data.ShopItem"/> object field.
 /// </summary>
 /// <param name="field">
 /// A <see cref="Rift.Data.ShopItem"/> object field that will be used
 /// in the comparsion.
 /// </param>
 public ShopItemComparer(ShopItemField field)
 {
     this.field = field;
 }