<PackageReference Include="SSH.NET" Version="2025.0.0" />

IOrderedDictionary<TKey, TValue>

public interface IOrderedDictionary<TKey, TValue> : IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable, IReadOnlyDictionary<TKey, TValue>, IReadOnlyCollection<KeyValuePair<TKey, TValue>>
Represents a collection of key/value pairs that are accessible by the key or index.
using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; namespace Renci.SshNet { public interface IOrderedDictionary<[System.Runtime.CompilerServices.Nullable(1)] TKey, TValue> : IDictionary<TKey, TValue>, ICollection<KeyValuePair<TKey, TValue>>, IEnumerable<KeyValuePair<TKey, TValue>>, IEnumerable, IReadOnlyDictionary<TKey, TValue>, IReadOnlyCollection<KeyValuePair<TKey, TValue>> { new TValue this[TKey key] { get; set; } new ICollection<TKey> Keys { get; } new ICollection<TValue> Values { get; } new int Count { get; } new bool ContainsKey(TKey key); bool ContainsValue(TValue value); KeyValuePair<TKey, TValue> GetAt(int index); int IndexOf(TKey key); void Insert(int index, TKey key, TValue value); bool Remove(TKey key, [MaybeNullWhen(false)] out TValue value); void RemoveAt(int index); void SetAt(int index, TKey key, TValue value); void SetAt(int index, TValue value); void SetPosition(int index, int newIndex); void SetPosition(TKey key, int newIndex); bool TryAdd(TKey key, TValue value); bool TryAdd(TKey key, TValue value, out int index); new bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value); bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value, out int index); } }