Foffs
Foffs
CC#
Created by Prof on 5/18/2025 in #help
✅ Async on single-threaded VM, mysterious speedup?
I'm not sure if this will answer your question, but the operative system has something known as thread scheduling. It may pause a certain thread and take over another depending on the load and configuration
103 replies
CC#
Created by Foffs on 5/17/2025 in #help
✅ Does C# have anonymous struct initializers for class fields?
Yes, it will look much nicer with records. Thank you all!
20 replies
CC#
Created by Foffs on 5/17/2025 in #help
✅ Does C# have anonymous struct initializers for class fields?
Thank you both for taking the time to explain it!
20 replies
CC#
Created by Foffs on 5/17/2025 in #help
✅ Does C# have anonymous struct initializers for class fields?
I see
20 replies
CC#
Created by Foffs on 5/17/2025 in #help
✅ Does C# have anonymous struct initializers for class fields?
But it doesn't seem possible
20 replies
CC#
Created by Foffs on 5/17/2025 in #help
✅ Does C# have anonymous struct initializers for class fields?
It's more centered on the structure declaration, so the declaration and initialization both in-line in the field rather having to declare the structure somewhere else and reference it
20 replies
CC#
Created by Foffs on 5/17/2025 in #help
✅ Does C# have anonymous struct initializers for class fields?
I think I will change my struct to have a record modifier to reduce the boilerplate and stick with it. Thank you both!
20 replies
CC#
Created by Foffs on 5/17/2025 in #help
✅ Does C# have anonymous struct initializers for class fields?
I see, that's a shame. The anonymous type field doesn't seem to solve the problem of the amount of boilerplate.
20 replies
CC#
Created by Foffs on 5/17/2025 in #help
✅ Does C# have anonymous struct initializers for class fields?
The record approach could reduce the struct declaration boilerplate but it doesn't solve the problem of code repetition.
20 replies
CC#
Created by Foffs on 5/17/2025 in #help
✅ Does C# have anonymous struct initializers for class fields?
Let me look it up real quick!
20 replies