Top ".net" questions

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

Sort a list alphabetically

I have the following class: class Detail { public Detail() { _details = new List<string>(); } public IList<string> …

c# .net linq sorting
How do I do logging in C# without using 3rd party libraries?

I would like to implement logging in my application, but would rather not use any outside frameworks like log4net. …

c# .net winforms performance logging
Convert Pixels to Points

I have a need to convert Pixels to Points in C#. I've seen some complicated explanations about the topic, but …

c# .net pixel point
read string from .resx file in C#

How to read the string from .resx file in c#? please send me guidelines . step by step

c# .net string .net-4.0
Prompt Dialog in Windows Forms

I am using System.Windows.Forms but strangely enough don't have the ability to create them. How can I get …

c# .net winforms dialog prompt
How can I format DateTime to web UTC format?

I have a DateTime which I want to format to "2009-09-01T00:00:00.000Z", but the following code gives me "2009…

c# .net datetime utc
Why is JsonRequestBehavior needed?

Why is Json Request Behavior needed? If I want to restrict the HttpGet requests to my action I can decorate …

c# .net asp.net-mvc asp.net-mvc-3 security
How can I make a ComboBox non-editable in .NET?

I want to have a "select-only" ComboBox that provides a list of items for the user to select from. Typing …

c# .net winforms combobox
Get output parameter value in ADO.NET

My stored procedure has an output parameter: @ID INT OUT How can I retrieve this using ado.net? using (SqlConnection …

c# .net ado.net
How can I sort generic list DESC and ASC?

How can I sort generic list DESC and ASC? With LINQ and without LINQ? I'm using VS2008. class Program { static …

c# .net linq