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