public static std_pair <TKey, TValue>[] get_allocator(std_map <TKey, TValue> _this) { KeyValuePair <TKey, TValue>[] array = new KeyValuePair <TKey, TValue> [_this.Count]; _this.CopyTo(array, 0); std_pair <TKey, TValue>[] sps = new std_pair <TKey, TValue> [_this.Count]; for (int i = 0; i < _this.Count; i++) { sps[i] = new std_pair <TKey, TValue>(array[i]); } return(sps); }