SteamKit2.SteamID.Equals C# (CSharp) 메소드

Equals() 공개 메소드

Determines whether the specified SteamID is equal to this instance.
public Equals ( SteamID sid ) : bool
sid SteamID The to compare with this instance.
리턴 bool
        public bool Equals( SteamID sid )
        {
            if ( ( object )sid == null )
                return false;

            return steamid.Data == sid.steamid.Data;
        }

Same methods

SteamID::Equals ( System obj ) : bool

Usage Example

예제 #1
0
파일: Lobby.cs 프로젝트: zhanggvi/SteamKit
                /// <summary>
                /// Checks to see if this lobby member is equal to another. Only the SteamID of the lobby member is taken into account.
                /// </summary>
                /// <param name="obj"></param>
                /// <returns>true, if obj is <see cref="Member"/> with a matching SteamID. Otherwise, false.</returns>
                public override bool Equals(object obj)
                {
                    if (obj is Member member)
                    {
                        return(SteamID.Equals(member.SteamID));
                    }

                    return(false);
                }
All Usage Examples Of SteamKit2.SteamID::Equals