Top ".net" questions

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

How do I implement IEnumerable<T>

I know how to implement the non generic IEnumerable, like this: using System; using System.Collections; namespace ConsoleApplication33 { class Program { …

c# .net generics
How to set column header text for specific column in Datagridview C#

How to set column header text for specific column in Datagridview C#

c# .net winforms datagridview
Convert string to Color in C#

I am encountering a problem which is how do I convert input strings like "RED" to the actual Color type …

c# .net xna
Could you explain STA and MTA?

Can you explain STA and MTA in your own words? Also, what are apartment threads and do they pertain only …

.net multithreading com apartments
c# - approach for saving user settings in a WPF application?

What approach do you recommend for persisting user settings in a WPF windows (desktop) application? Note that the idea is …

c# .net wpf settings
best way to create object

This seems to be very stupid and rudimentary question, but i tried to google it, but couldn't a find a …

c# .net oop constructor instance
How to change resolution (DPI) of an image?

I have a JPEG picture with a DPI of 72. I want to change 72 dpi to 300 dpi. How could I change …

c# .net image dpi
.NET obfuscation tools/strategy

My product has several components: ASP.NET, Windows Forms App and Windows Service. 95% or so of the code is written …

.net security obfuscation
ResourceDictionary in a separate assembly

I have resource dictionary files (MenuTemplate.xaml, ButtonTemplate.xaml, etc) that I want to use in multiple separate applications. I …

.net wpf xaml controltemplate resourcedictionary
Delete files older than 3 months old in a directory using .NET

I would like to know (using C#) how I can delete files in a certain directory older than 3 months, but …

c# .net file directory