What's new in C# 12: overview
pvs-studio.com
What's new in C# 12: overview
1–10 of 100 posts
Re: What's new in C# 12: overview
#2I think with target typed new and this new collection syntax I probably won't use var anymore.
Re: What's new in C# 12: overview
#3Is there more information available about this? Would be great to achieve this natively without requiring Fody and friends.
Re: What's new in C# 12: overview
#4That line and character worries me
But since this is generated then maybe it is fine?
Re: What's new in C# 12: overview
#5>finally, we can stop creating an interface for every class just to mock it in tests Is there more information available about this? Would be great to achieve this natively without requiring Fody and friends.
Re: What's new in C# 12: overview
#6>finally, we can stop creating an interface for every class just to mock it in tests Is there more information available about this? Would be great to achieve this natively without requiring Fody and friends.
Some would argue that creating interface for every class and using too much mocks than actually needed is baad.
Swapping out interfaces to code-gened interceptors and keeping everything else the same, doesn't look like it would improve this underlying issue at all.
Re: What's new in C# 12: overview
#7Primary Constructors and Collection Syntax seem good. I think with target typed new and this new collection syntax I probably won't use var anymore.
Re: What's new in C# 12: overview
#8>finally, we can stop creating an interface for every class just to mock it in tests Is there more information available about this? Would be great to achieve this natively without requiring Fody and friends.
And Unit tests make especially little sense in the specific service I’ve been talking about because all the logic is in the Stored Procs it calls. The service itself simply forwards that data.
Re: What's new in C# 12: overview
#9>InterceptsLocation("Program.cs", line: 3, character: 7)] That line and character worries me But since this is generated then maybe it is fine?