public bool RegisterByType <T, TParam1, TParam2>( TParam1 param1, TParam2 param2) where T : IState <string, IGameSectorLayerService> => SetService.Set((T)Activator.CreateInstance( typeof(T), param1, param2), typeof(T).Name);
public bool RegisterByType <T>() where T : IState <string, IGameSectorLayerService> => SetService.Set(Activator.CreateInstance <T>(), typeof(T).Name);