MonoGameUi.Border.Equals C# (CSharp) 메소드

Equals() 공개 메소드

Überprüft, ob die aktuelle Border-Instanz gleich der gegebenen ist.
public Equals ( object obj ) : bool
obj object
리턴 bool
        public override bool Equals(object obj)
        {
            if (!(obj is Border))
                return false;

            Border other = (Border)obj;

            return other.Left == Left &&
                other.Right == Right &&
                other.Top == Top &&
                other.Bottom == Bottom;
        }