Exemplo n.º 1
0
 static public bool copyBool(ref bool _strData, IDictionary _iDict, string _strKey, bool _bLog = true)
 {
     if (DataCopyUtil.checkContainsValue(_iDict, _strKey, _bLog))
     {
         _strData = (bool)_iDict[_strKey];
         return(true);
     }
     return(false);
 }
Exemplo n.º 2
0
 static public bool copyLongToInt(ref int _lData, IDictionary _iDict, string _strKey, bool _bLog = true)
 {
     if (DataCopyUtil.checkContainsValue(_iDict, _strKey, _bLog))
     {
         _lData = (int)(long)_iDict[_strKey];
         return(true);
     }
     return(false);
 }
Exemplo n.º 3
0
 static public bool copyFloatV(ref float _strData, IDictionary _iDict, string _strKey, bool _bLog = true)
 {
     if (DataCopyUtil.checkContainsValue(_iDict, _strKey, _bLog))
     {
         var temp = _iDict[_strKey];
         _strData = float.Parse(temp.ToString());
         return(true);
     }
     return(false);
 }