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