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