Top ".net" questions

Do NOT use for questions about .NET Core - use [.net-core] instead.

How to find path of active app.config file?

I'm trying to finish this exception handler: if (ConfigurationManager.ConnectionStrings["ConnectionString"]==null) { string pathOfActiveConfigFile = ...? throw new ConfigurationErrorsException( "You either forgot …

c# .net nunit app-config configurationmanager
What does <T> denote in C#

I'm new to C# and directly diving into modifying some code for a project I received. However, I keep seeing …

c# .net generics
Difference between InvariantCulture and Ordinal string comparison

When comparing two strings in c# for equality, what is the difference between InvariantCulture and Ordinal comparison?

c# .net string-comparison ordinal
Using MySQL with Entity Framework

Can't find anything relevant about Entity Framework/MySQL on Google so I'm hoping someone knows about it.

mysql .net entity-framework ado.net
Plain Old CLR Object vs Data Transfer Object

POCO = Plain Old CLR (or better: Class) Object DTO = Data Transfer Object In this post there is a difference, but …

c# .net poco dto
Download image from the site in .NET/C#

I am trying to download images from the site. The code which I am using is working fine while the …

c# .net image streaming
What is The difference between ListBox and ListView

What is the difference between WPF's ListBox and ListView? I can not find any significant difference in their properties. Is …

.net wpf wpf-controls
Difference between Math.Floor() and Math.Truncate()

What is the difference between Math.Floor() and Math.Truncate() in .NET?

.net math
When and where to use GetType() or typeof()?

Why this works if (mycontrol.GetType() == typeof(TextBox)) {} and this do not? Type tp = typeof(mycontrol); But this works Type …

c# .net types typeof gettype
Session state can only be used when enableSessionState is set to true either in a configuration

I am working on Asp.net MVC 2 app with c# by using vs 2010.I am having below mentioned error when …

.net visual-studio-2010 session asp.net-mvc-2