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

ToKeyValuePairsArray() private method

private ToKeyValuePairsArray ( ) : System.Collections.KeyValuePairs[]
return System.Collections.KeyValuePairs[]
        internal virtual KeyValuePairs[] ToKeyValuePairsArray()
        {
            KeyValuePairs[] array = new KeyValuePairs[Count];
            for (int i = 0; i < Count; i++)
            {
                array[i] = new KeyValuePairs(_keys[i], _values[i]);
            }
            return array;
        }

Usage Example

Example #1
0
 internal override KeyValuePairs[] ToKeyValuePairsArray()
 {
     return(_list.ToKeyValuePairsArray());
 }