public SortedListDebugView(SortedList sortedList) { if (sortedList == null) { throw new ArgumentNullException(nameof(sortedList)); } Contract.EndContractBlock(); _sortedList = sortedList; }