fCraft.PlayerEnumerable.IgnoredBy C# (CSharp) Method

IgnoredBy() private method

private IgnoredBy ( [ source, [ ignorer ) : IEnumerable
source [
ignorer [
return IEnumerable
        public static IEnumerable<Player> IgnoredBy( [NotNull] this IEnumerable<Player> source, [NotNull] Player ignorer ) {
            if( source == null ) throw new ArgumentNullException( "source" );
            if( ignorer == null ) throw new ArgumentNullException( "ignorer" );
            foreach( Player otherPlayer in source ) {
                if( ignorer.IsIgnoring( otherPlayer.Info ) ) {
                    yield return otherPlayer;
                }
            }
        }