Top ".net" questions

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

What's the difference between .NET Core, .NET Framework, and Xamarin?

Microsoft now has .NET Core, .NET Framework and Xamarin (Mono) in its family. It seems to be a lot of …

.net xamarin .net-core
Apply function to all elements of collection through LINQ

I have recently started off with LINQ and its amazing. I was wondering if LINQ would allow me to apply …

c# .net linq
Difference between RegisterStartupScript and RegisterClientScriptBlock?

Is the only difference between the RegisterStartupScript and the RegisterClientScriptBlock is that RegisterStartupScript puts the javascript before the closing </…

c# javascript asp.net .net
What 'additional configuration' is necessary to reference a .NET 2.0 mixed mode assembly in a .NET 4.0 project?

I have a project in which I'd like to use some of the .NET 4.0 features but a core requirement is …

c# .net sqlite .net-4.0 system.data.sqlite
Clear image on picturebox

How can I clear draw image on picturebox? The following doesn't help me: pictbox.Image = null; pictbox.Invalidate(); Please help. …

c# .net winforms picturebox
Bring a window to the front in WPF

How can I bring my WPF application to the front of the desktop? So far I've tried: SwitchToThisWindow(new WindowInteropHelper(…

c# .net wpf winapi pinvoke
How to add parameters into a WebRequest?

I need to call a method from a webservice, so I've written this code: private string urlPath = "http://xxx.xxx.…

c# .net web-services httpwebrequest
How to serialize/deserialize to `Dictionary<int, string>` from custom XML not using XElement?

Having empty Dictionary<int, string> how to fill it with keys and values from XML like <items&…

c# .net xml mono
How to find foreign key dependencies in SQL Server?

How can I find all of the foreign key dependencies on a particular column? What are the different alternatives (graphically …

.net sql-server foreign-keys
What's the difference between StaticResource and DynamicResource in WPF?

When using resources such as brushes, templates and styles in WPF, they can be specified either as StaticResources <Rectangle …

.net wpf xaml resources