// ************************************************************************
        // Public Methods
        // ************************************************************************
        #region Public Methods

        /// <summary>
        /// Constructor with an optional IComparer<TKey> parameter.
        /// </summary>
        /// <param name="comparer">Comparer used to sort the keys.</param>
        public ObservableSortedDictionary(IComparer <TKey> comparer = null)
        {
            _sorter = new BinarySorter <TKey>(comparer);
        }
 public ConcurrentObservableSortedDictionary(bool isMultithreaded, IComparer <TKey> comparer) : base(isMultithreaded)
 {
     _sorter = new BinarySorter <TKey>(comparer);
 }
 /// <summary>
 /// Constructor. Lets you pass in the underlying list...which needs to be used with care
 /// </summary>
 /// <param name="comparer"></param>
 /// <param name="baseList"></param>
 public SortedListWithDuplicates(IComparer <T> comparer = null, IList <T> baseList = null)
 {
     _sorter = new BinarySorter <T>(comparer);
     _list   = baseList ?? new List <T>();
 }
Esempio n. 4
0
 public ConcurrentObservableSortedCollection(bool isMultithreaded, IComparer <T> comparer) : base(isMultithreaded)
 {
     _sorter = new BinarySorter <T>(comparer);
 }