GlobalPhone.Territory.Equals C# (CSharp) Méthode

Equals() public méthode

public Equals ( Territory other ) : bool
other Territory
Résultat bool
        public bool Equals(Territory other)
        {
            if (ReferenceEquals(null, other)) return false;
            if (ReferenceEquals(this, other)) return true;
            return Equals(other.Name, Name);
        }

Same methods

Territory::Equals ( object obj ) : bool

Usage Example

Exemple #1
0
 public bool Equals(Number obj)
 {
     if (ReferenceEquals(null, obj))
     {
         return(false);
     }
     return(Territory.Equals(obj.Territory) &&
            NationalString.Equals(obj.NationalString));
 }