wtq40cy3n
wtq40cy3n
CC#
Created by wtq40cy3n on 4/12/2024 in #help
How to understand pining static field, const and instance field
10 replies
CC#
Created by wtq40cy3n on 4/12/2024 in #help
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
CC#
Created by wtq40cy3n on 4/12/2024 in #help
How to understand pining static field, const and instance field
I found a description from documentation
10 replies
CC#
Created by Maxen on 1/21/2024 in #help
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
CC#
Created by Maxen on 1/21/2024 in #help
How to convert an int array to a string or at least be able to write it all out through a WriteLine
why not ask gpt first, it's can be solved quickly
13 replies
CC#
Created by wtq40cy3n on 1/5/2024 in #help
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