protected override IRecord <int> ParseRecord(string recordEntry, int appVersion, IRecord <int> .TryConvertOldRecord converter)
 {
     return(new IntRecord(recordEntry, appVersion, converter));
 }
 public SortedIntRecords(int maxCapacity, IComparer <IRecord <int> > comparer, IRecord <int> .TryConvertOldRecord converter = null) : base(maxCapacity, comparer, converter)
 {
 }
 public override int AddRecord(int record, string name, out IRecord <int> newRecord)
 {
     newRecord = new IntRecord(record, name);
     return(AddRecord(newRecord));
 }
 public SortedIntRecords(int maxCapacity, bool isSortedInDescendingOrder = true, IRecord <int> .TryConvertOldRecord converter = null) : base(maxCapacity, null, converter)
 {
 }
Пример #5
0
 public override int Compare(IRecord <T> left, IRecord <T> right)
 {
     return(right.Record.CompareTo(left.Record));
 }
Пример #6
0
 protected abstract IRecord <T> ParseRecord(string recordEntry, int appVersion, IRecord <T> .TryConvertOldRecord converter);
Пример #7
0
 public abstract int AddRecord(T record, string name, out IRecord <T> newRecord);
 public override int AddRecord(float record, string name, out IRecord <float> newRecord)
 {
     newRecord = new FloatRecord(record, name);
     return(AddRecord(newRecord));
 }