Top ".net" questions

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

SQLite equivalent to ISNULL(), NVL(), IFNULL() or COALESCE()

I'd like to avoid having many checks like the following in my code: myObj.someStringField = rdr.IsDBNull(someOrdinal) ? string.Empty : …

.net sqlite dbnull
How to get IntPtr from byte[] in C#

I want to pass a byte[] to a method takes a IntPtr Parameter in C#, is that possible and how?

c# .net
Best way to remove duplicate entries from a data table

What is the best way to remove duplicate entries from a Data Table?

c# .net datatable duplicate-data
Select folder dialog WPF

I develop a WPF4 application and in my app I need to let the user select a folder where the …

c# .net wpf folderbrowserdialog
How to select an item in a ListView programmatically?

I'm trying to select the first item in a ListView programmatically, but it doesn't appear to have been selected. I …

c# .net winforms listview selection
WPF User Control Parent

I have a user control that I load into a MainWindow at runtime. I cannot get a handle on the …

c# .net wpf
How to inject Javascript in WebBrowser control?

I've tried this: string newScript = textBox1.Text; HtmlElement head = browserCtrl.Document.GetElementsByTagName("head")[0]; HtmlElement scriptEl = browserCtrl.Document.CreateElement("script"); lblStatus.…

c# javascript .net winforms webbrowser-control
SFTP Libraries for .NET

Can anyone recommend a good SFTP library to use? Right now I'm looking at products such as SecureBlackbox, IPWorks SSH, …

c# .net sftp
How to specify a min but no max decimal using the range data annotation attribute?

I would like to specify that a decimal field for a price must be >= 0 but I don't really want …

c# .net asp.net-mvc data-annotations
Could not load file or assembly '***.dll' or one of its dependencies

I have this dll that I created a long time ago and use to connect to the db of a …

.net dll reference dependencies managed-c++