Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/HeuristicLab.ExtLibs/HeuristicLab.SimSharp/3.3.1/SimSharp-3.3.1/Collections/ReverseComparer.cs @ 17495

Last change on this file since 17495 was 17487, checked in by abeham, 5 years ago

#3065: update Sim# to 3.3.1

File size: 524 bytes
Line 
1#region License Information
2/*
3 * This file is part of SimSharp which is licensed under the MIT license.
4 * See the LICENSE file in the project root for more information.
5 */
6#endregion
7
8using System;
9using System.Collections.Generic;
10
11namespace SimSharp {
12  public class ReverseComparer<T> : IComparer<T> where T : IComparable {
13    private static readonly IComparer<T> DefaultComparer = Comparer<T>.Default;
14
15    public int Compare(T x, T y) {
16      return DefaultComparer.Compare(y, x);
17    }
18  }
19}
Note: See TracBrowser for help on using the repository browser.