Click or drag to resize
GameModeServiceContainerAddServiceTServiceType Method (TServiceType)
Adds the service of the specified TServiceType.

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

Parameters

service
Type: TServiceType
The service.

Type Parameters

TServiceType
Type of the service.
Exceptions
ExceptionCondition
ArgumentNullException serviceType or service
ArgumentExceptionserviceType must be of type IService
See Also