fCraft.PlayerEnumerable.FromIP C# (CSharp) Method

FromIP() private method

private FromIP ( [ source, [ ip ) : IEnumerable
source [
ip [
return IEnumerable
        public static IEnumerable<Player> FromIP( [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;
                }
            }
        }