[This is preliminary documentation and is subject to change.]

Adds players to the given set. If the given sequence of players already contains player, no duplicate is added. Precisely speaking, produces the set union of a given collection of players and a given player.

Namespace: fCraft
Assembly: fCraft (in fCraft.dll) Version: 0.6.3.5 (0.6.3.5)

Syntax

   
 C# 
[NotNullAttribute]
public static IEnumerable<Player> Union(
	this IEnumerable<Player> source,
	Player includedPlayer
)

Parameters

source
IEnumerable<(Of <(<'Player>)>)>
Original set of players. Will not get modified.
includedPlayer
Player
Player to add to the set.

Return Value

A set that contains all players in the input sequence, plus the given player.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<(Of <(<'Player>)>)>. When you use instance method syntax to call this method, omit the first parameter.

See Also