ScoreObjectMethodsGetScoreID(ListIScoreObject, String) Method
Retrieves the ID of a ScoreObject identified by a key from an array of IScoreObjects.
Namespace: Alteruna.ScoreboardAssembly: Alteruna.Trinity (in Alteruna.Trinity.dll) Version: 1.3.4
public static int GetScoreID(
this List<IScoreObject> scoreList,
string key
)
- scoreList ListIScoreObject
- The array of IScoreObjects to search through.
- key String
- The key of the ScoreObject to find the ID for.
Int32The ID of the ScoreObject, if found.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).
KeyNotFoundException | Thrown if no score with the given key is found. |