fCraft.PlayerEnumerable.InWorld C# (CSharp) Method

InWorld() private method

private InWorld ( [ source, [ world ) : IEnumerable
source [
world [
return IEnumerable
        public static IEnumerable<Player> InWorld( [NotNull] this IEnumerable<Player> source, [NotNull] World world ) {
            if( source == null ) throw new ArgumentNullException( "source" );
            if( world == null ) throw new ArgumentNullException( "world" );
            foreach( Player player in source ) {
                if( player.World == world ) {
                    yield return player;
                }
            }
        }