Top ".net" questions

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

Editing dictionary values in a foreach loop

I am trying to build a pie chart from a dictionary. Before I display the pie chart, I want to …

c# .net .net-2.0
String format currency

I have this line @String.Format("{0:C}", @price) in my razor view. I want it to display a dollar sign …

c# .net globalization
What does 'useLegacyV2RuntimeActivationPolicy' do in the .NET 4 config?

While converting a project that used SlimDX, and therefore has unmanaged code, to .NET 4.0 I ran into the following error: …

.net .net-4.0 app-config mixed-mode
Properties order in Margin

If I have such string in XAML: Storyboard.TargetProperty="Margin" From="1,2,3,4" To="0,0,0,0" What is Top Bottom Right and Left? 1- …

.net wpf xaml
Bypass invalid SSL certificate errors when calling web services in .Net

We are setting up a new SharePoint for which we don't have a valid SSL certificate yet. I would like …

.net web-services sharepoint
Why do we need boxing and unboxing in C#?

Why do we need boxing and unboxing in C#? I know what boxing and unboxing is, but I can't comprehend …

c# .net boxing
How to know the size of the string in bytes?

I'm wondering if I can know how long in bytes for a string in C#, anyone know?

c# .net string size byte
Casting interfaces for deserialization in JSON.NET

I am trying to set up a reader that will take in JSON objects from various websites (think information scraping) …

c# .net json json.net
Error CS1705: "which has a higher version than referenced assembly"

I've been looking into this for a bit now and haven't gotten it resolved. I get the following error message: …

.net web-deployment
How can I discover the "path" of an embedded resource?

I am storing a PNG as an embedded resource in an assembly. From within the same assembly I have some …

c# .net resources