Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Err != 0)
            {
                hash ^= Err.GetHashCode();
            }
            if (IsSuccess != false)
            {
                hash ^= IsSuccess.GetHashCode();
            }
            if (GateServerIp.Length != 0)
            {
                hash ^= GateServerIp.GetHashCode();
            }
            if (GateServerPort != 0)
            {
                hash ^= GateServerPort.GetHashCode();
            }
            if (UserId.Length != 0)
            {
                hash ^= UserId.GetHashCode();
            }
            if (UserAccount.Length != 0)
            {
                hash ^= UserAccount.GetHashCode();
            }
            if (Token.Length != 0)
            {
                hash ^= Token.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Err != 0)
            {
                hash ^= Err.GetHashCode();
            }
            if (IsSuccess != false)
            {
                hash ^= IsSuccess.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 3
0
 public static RetornoTrataImagem EliminaArquivo(string[] lstArquivo)
 {
     try
     {
         foreach (string strArquivo in lstArquivo)
         {
             File.Delete(@strArquivo);
         }
         return(RetornoTrataImagem.Rok);
     }
     catch (Exception Err)
     {
         ManipulaErro.MostraErro("EliminaArquivo():", Err.GetHashCode(), Err.Message, false);
         ManipulaErro.GravaEventLog("EliminaArquivo" + Err.Message, Err.GetHashCode());
         return(RetornoTrataImagem.RArquivoNaoApagado);
     }
 }
Exemplo n.º 4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Err != 0)
            {
                hash ^= Err.GetHashCode();
            }
            if (Message.Length != 0)
            {
                hash ^= Message.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Code != 0)
            {
                hash ^= Code.GetHashCode();
            }
            if (err_ != null)
            {
                hash ^= Err.GetHashCode();
            }
            hash ^= skills_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 6
0
 public static bool CriaPath(string strPath)
 {
     try
     {
         if (Directory.Exists(strPath))
         {
             return(true);
         }
         else
         {
             Directory.CreateDirectory(strPath);
             return(true);
         }
     }
     catch (Exception Err)
     {
         ManipulaErro.MostraErro("EliminaArquivo():", Err.GetHashCode(), Err.Message, false);
         ManipulaErro.GravaEventLog("EliminaArquivo" + Err.Message, Err.GetHashCode());
         return(false);
     }
 }