Adf.Business.ValueObject.Sofinummer.Equals C# (CSharp) Method

Equals() public method

Checks whether this instance is equal to the supplied object.
public Equals ( object obj ) : bool
obj object The object to compare against.
return 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 == (Sofinummer) obj);
        }