Exemple #1
0
 public void MergeFrom(Message other)
 {
     if (other == null)
     {
         return;
     }
     if (other.enviadoPor_ != null)
     {
         if (enviadoPor_ == null)
         {
             EnviadoPor = new global::Contact();
         }
         EnviadoPor.MergeFrom(other.EnviadoPor);
     }
     if (other.enviadoPara_ != null)
     {
         if (enviadoPara_ == null)
         {
             EnviadoPara = new global::Contact();
         }
         EnviadoPara.MergeFrom(other.EnviadoPara);
     }
     if (other.Texto.Length != 0)
     {
         Texto = other.Texto;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemple #2
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (enviadoPor_ != null)
        {
            hash ^= EnviadoPor.GetHashCode();
        }
        if (enviadoPara_ != null)
        {
            hash ^= EnviadoPara.GetHashCode();
        }
        if (Texto.Length != 0)
        {
            hash ^= Texto.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }