Adf.Business.ValueObject.PhoneNumber.Equals C# (CSharp) 메소드

Equals() 공개 메소드

Checks whether this instance is equal to the supplied object.
public Equals ( object obj ) : bool
obj object The object to compare against.
리턴 bool
        public override bool Equals(object obj)
        {
            // Make sure the cast that follows won't fail
            if (obj == null || obj.GetType() != GetType())
                return false;

            return (this == (PhoneNumber) obj);
        }