wtq40cy3n
How to understand pining static field, const and instance field
Note: As stated in §12.8.7, outside an instance constructor or static constructor for a struct or class that defines a readonly field, that field is considered a value, not a variable. As such, its address cannot be taken. Similarly, the address of a constant cannot be taken.
10 replies
How to convert an int array to a string or at least be able to write it all out through a WriteLine
What I meant is AI helps reorganizing your question especially when you don't know how to well express it. That's something search engine can't do. It can be useful to learn about language features and BCL. Not suitable for beginners if they only focus on solution
13 replies
What's the proper way to build source generator?
I simply followed the introduction from dotnet channel on youtube, I can't find documentation of
IIncrementalGenerator
with unit testing, they're almost all about ISourceGenerator
. Currently I don't really understand what incrementality
is, is a there any recommended doc or video to follow?5 replies