コード例 #1
0
 /// <summary>
 /// Specify the startup type to be used by the game host.
 /// </summary>
 /// <param name="hostBuilder">The <see cref="IGameHostBuilder"/> to configure.</param>
 /// <typeparam name ="TStartup">The type containing the startup methods for the application.</typeparam>
 /// <returns>The <see cref="IGameHostBuilder"/>.</returns>
 public static IGameHostBuilder UseStartup <TStartup>(this IGameHostBuilder hostBuilder)
     where TStartup : class
 {
     return(hostBuilder.UseStartup(typeof(TStartup)));
 }