Click or drag to resize
GameModeServiceContainerGetServiceTServiceType Method
Gets the service object of the specified type.

Namespace: SampSharp.GameMode
Assembly: SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.7.6221.37952
Syntax
public TServiceType GetService<TServiceType>()
where TServiceType : IService

Type Parameters

TServiceType
The type of service object to get.

Return Value

Type: TServiceType
A service object of type TServiceType.-or- null if there is no service object of type TServiceType
See Also