Esempio n. 1
0
 //--------------------------------------------------------------------------------------------------------------------------------
 static T ToExternalKey(int key)
 {
     return(BitConvert.IntToEnum32 <T>(key));
 }
Esempio n. 2
0
 //--------------------------------------------------------------------------------------------------------------------------------
 static KeyValuePair <TKey, TValue> ToExternalPair(KeyValuePair <int, TValue> pair)
 {
     return(new KeyValuePair <TKey, TValue>(BitConvert.IntToEnum32 <TKey>(pair.Key), pair.Value));
 }
Esempio n. 3
0
 //================================================================================================================================
 // 전용
 //================================================================================================================================
 static int ToInternalKey(T key)
 {
     return(BitConvert.Enum32ToInt(key));
 }
Esempio n. 4
0
 //================================================================================================================================
 // 전용
 //================================================================================================================================
 static KeyValuePair <int, TValue> ToInternalPair(KeyValuePair <TKey, TValue> pair)
 {
     return(new KeyValuePair <int, TValue>(BitConvert.Enum32ToInt(pair.Key), pair.Value));
 }