fCraft.IPBanList.Contains C# (CSharp) Method

Contains() public static method

Checks whether the given address is banned.
public static Contains ( [ address ) : bool
address [ Address to look for.
return bool
        public static bool Contains( [NotNull] IPAddress address )
        {
            if ( address == null )
                throw new ArgumentNullException( "address" );
            lock ( BanListLock ) {
                return Bans.ContainsKey( address.ToString() );
            }
        }