Data_dzien.Equals C# (CSharp) Method

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
    public override bool Equals(object obj)
    {
        if (obj == null || (this.GetType() != obj.GetType()))
            return false;
        else
        {
            if (this.rok == ((Data_dzien)obj).rok && this.miesiac == ((Data_dzien)obj).miesiac && this.dzien == ((Data_dzien)obj).dzien)
            {
                return true;
            }
            else
                return false;
        }
    }