fCraft.PlayerEnumerable.NotFromIP C# (CSharp) Method

NotFromIP() private method

private NotFromIP ( [ source, [ ip ) : IEnumerable
source [
ip [
return IEnumerable
        public static IEnumerable<Player> NotFromIP( [NotNull] this IEnumerable<Player> source, [NotNull] IPAddress ip ) {
            if( source == null ) throw new ArgumentNullException( "source" );
            if( ip == null ) throw new ArgumentNullException( "ip" );
            foreach( Player player in source ) {
                if( !ip.Equals( player.IP ) ) {
                    yield return player;
                }
            }
        }