C# - How to create a named tuple or list of named tuples
There are two reasons you are on this page: 1) you forgot the syntax for named tuples 2) You have just learned about named tuples and »
There are two reasons you are on this page: 1) you forgot the syntax for named tuples 2) You have just learned about named tuples and »
You can use the SqlConnection class to connect to a MSSQL server. If we have a database called MyDb with a simple table called MyEntities: CREATE »
I recently got the following error when trying to build a solution after installing a nuget package: > Warning CS8032 An instance of analyzer ProxyInterfaceSourceGenerator.ProxyInterfaceCodeGenerator cannot »
Sometimes you come across a class that you need to stub or mock but it does not have an interface. The easiest way is of course »
This is an area of C# where there is a big "gotcha". Using the new keyword or using the virtual + override keywords behave very differently, we »
If you would rather work with relative URLs than absolute URLs you can use the BaseAddress [https://docs.microsoft.com/en-us/dotnet/api/system.net.http. »
This might seem trivial, but since I got the question the other day I might as well make a post about it. Using the HttpClient [https: »
I got the following errors today while working on a new project: > Error CS0579 Duplicate 'System.Reflection.AssemblyVersionAttribute' attribute MyAzureFunction C:\Repos\Test\MyAzureFunction\obj\Debug\ »
I am not sure that the correct term is "static" data - it seems to be known as seeding, which is the term I will use. »
Today I was trying to make an initial migration using Entity framework. I encountered an error when calling dotnet ef migrations add InitialCreate: C:\Users\peter\ »