//-------------------------------------------------------------------------------------------------------------------------------- static T ToExternalKey(int key) { return(BitConvert.IntToEnum32 <T>(key)); }
//-------------------------------------------------------------------------------------------------------------------------------- static KeyValuePair <TKey, TValue> ToExternalPair(KeyValuePair <int, TValue> pair) { return(new KeyValuePair <TKey, TValue>(BitConvert.IntToEnum32 <TKey>(pair.Key), pair.Value)); }