ScoreObjectMethodsGetScoreT(ListIScoreObject, String) Method
Retrieves a ScoreObject of a specific type from a array of IScoreObjects.
Namespace: Alteruna.MultiplayerAssembly: Alteruna (in Alteruna.dll) Version: 2.0.2+dcdb8fba58ad1eb99205b1dc6265fd5b3b7cf8ec
public static ScoreObject<T> GetScore<T>(
this List<IScoreObject> scoreList,
string key
)
where T : struct, new(), IConvertible
- scoreList ListIScoreObject
- The array of IScoreObjects to search through.
- key String
- The key of the ScoreObject to find.
- T
- The type of the ScoreObject to retrieve.
ScoreObjectTA ScoreObject of the specified type.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).