ScoreObjectMethodsSetScoreT(ListIScoreObject, String, T) Method

Sets the score for the specified key with the given array of values.

Definition

Namespace: Alteruna.Scoreboard
Assembly: Alteruna.Trinity (in Alteruna.Trinity.dll) Version: 1.3.4
C#
public static void SetScore<T>(
	this List<IScoreObject> scoreList,
	string key,
	T[] array
)
where T : struct, new(), IConvertible

Parameters

scoreList  ListIScoreObject
The array of IScoreObjects.
key  String
The key of the score object.
array  T
The array of values to set.

Type Parameters

T
The type of the score to set.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ListIScoreObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also