Do NOT use for questions about .NET Core - use [.net-core] instead.
MyClass[] array; List<MyClass> list; What are the scenarios when one is preferable over the other? And why?
.net arrays listUsing WinForms; Is there a better way to find the checked RadioButton for a group? It seems to me that …
c# .net winforms radio-buttonI would like to run an external command line program from my Mono/.NET app. For example, I would like …
c# .net mono process.startIs there a way to compare two DateTime variables in Linq2Sql but to disregard the Time part. The app …
c# .net database entity-framework linq-to-sqlI have a string say "Hello! world!" I want to do a trim or a remove to take out the ! …
c# .netI'm trying to insert some data in my database using Entity Framework model, but for some unknown reasons to me, …
c# .net entity-frameworkWhat is the purpose of the Using block in C#? How is it different from a local variable?
c# .net syntax using using-statementMy code so far StreamReader reading = File.OpenText("test.txt"); string str; while ((str = reading.ReadLine())!=null) { if (str.Contains("…
c# .net io streamreader file-handlingConsider the IEnumerable extension methods SingleOrDefault() and FirstOrDefault() MSDN documents that SingleOrDefault: Returns the only element of a sequence, or …
.net linq linq-to-sqlI am trying to get the HTTP status code number from the HttpWebResponse object returned from a HttpWebRequest. I was …
c# .net http httpwebrequest