Skip to content

Commit d786dea

Browse files
danespinosaDaniel Espinosa
and
Daniel Espinosa
authored
fixed stringly instead of strongly typo (#42403)
Co-authored-by: Daniel Espinosa <[email protected]>
1 parent 2ee642b commit d786dea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/csharp/roslyn-sdk/source-generators-overview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ With a Source Generator, the controller discovery phase of startup could instead
4949

5050
Source Generators can improve performance in ways that aren't limited to reflection at run time to discover types as well. Some scenarios involve calling the MSBuild C# task (called CSC) multiple times so they can inspect data from a compilation. As you might imagine, calling the compiler more than once affects the total time it takes to build your app. We're investigating how Source Generators can be used to obviate the need for juggling MSBuild tasks like this, since Source generators don't just offer some performance benefits, but also allows tools to operate at the right level of abstraction.
5151

52-
Another capability Source Generators can offer is obviating the use of some "stringly typed" APIs, such as how ASP.NET Core routing between controllers and razor pages work. With a Source Generator, routing can be strongly typed with the necessary strings being generated as a compile-time detail. This would reduce the number of times a mistyped string literal leads to a request not hitting the correct controller.
52+
Another capability Source Generators can offer is obviating the use of some "strongly typed" APIs, such as how ASP.NET Core routing between controllers and razor pages work. With a Source Generator, routing can be strongly typed with the necessary strings being generated as a compile-time detail. This would reduce the number of times a mistyped string literal leads to a request not hitting the correct controller.
5353

5454
## Get started with source generators
5555

0 commit comments

Comments
 (0)