System.Collections.SortedList.SetByIndex C# (CSharp) Method

SetByIndex() public method

public SetByIndex ( int index, Object value ) : void
index int
value Object
return void
        public virtual void SetByIndex(int index, Object value)
        {
            if (index < 0 || index >= Count) throw new ArgumentOutOfRangeException(nameof(index), SR.ArgumentOutOfRange_Index);
            Contract.EndContractBlock();
            _values[index] = value;
            _version++;
        }

Same methods

SortedList::SetByIndex ( int index, object value ) : void

Usage Example

 public override void SetByIndex(int index, object value)
 {
     lock (host.SyncRoot)
     {
         host.SetByIndex(index, value);
     }
 }
All Usage Examples Of System.Collections.SortedList::SetByIndex