Indiefreaks.Xna.Sessions.IdentifiedPlayer.Equals C# (CSharp) Method

Equals() public method

Determines whether the specified T:Indiefreaks.Xna.Sessions.IdentifiedPlayer is equal to the current T:System.Object.
public Equals ( object obj ) : bool
obj object The to compare with the current .
return bool
        public override bool Equals(object obj)
        {
            if (obj != null && obj is IdentifiedPlayer)
                return UniqueId.Equals(((IdentifiedPlayer)obj).UniqueId);
            else
                return false;
        }