To replace the first “=>”, move the caret to this location and press <Ctrl+.>, then select “Use block body for methods”. The result will be probably this:
public static IHostBuilder CreateHostBuilder( string[] args )
{
return Host.CreateDefaultBuilder( args )
.ConfigureWebHostDefaults( webBuilder =>
{
webBuilder.UseStartup<Startup>( );
} );
}
To replace the second “=>” too, try something like this:
public static IHostBuilder CreateHostBuilder( string[] args )
{
return Host.CreateDefaultBuilder( args )
.ConfigureWebHostDefaults( delegate( IWebHostBuilder webBuilder)
{
return webBuilder.UseStartup<Startup>( );
} );
}