.Net

Question about ValueTask / ValueTask<T>

Recently read articles about it: https://devblogs.microsoft.com/dotnet/understanding-the-whys-whats-and-whens-of-valuetask/ https://blog.marcgravell.com/2019/08/prefer-valuetask-to-task-always-and.html Both of the articles says that Do not await ValueTask multiple times. Do not await ValueTask concurrently. Let’s say I have a Web API that has a singleton Read more…

By , ago
.Net

I don’t understand why it won’t let me do this if statement. It’s meant to be a function so the user can choose a what their practice is then the function will make sure the correct variables are used but I don’t know why this if statement isn’t working.

== double-equals to test equality. Thank you for saving me from my own stupidity Also, a note for the future, pay more attention to error messages. The ones you see imply a conversion error, and Read more…

By , ago