Top ".net" questions

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

Download files from SFTP with SSH.NET library

string host = @"ftphost"; string username = "user"; string password = "********"; string localFileName = System.IO.Path.GetFileName(@"localfilename"); string remoteDirectory = "/export/"; using (var …

c# .net ssh sftp
What is ".NET Core"?

Recently in an official .NET Framework Blog it was announced that .NET Core is going open source. Ironically, the author …

.net .net-core
Only Add Unique Item To List

I'm adding remote devices to a list as they announce themselves across the network. I only want to add the …

c# .net c#-4.0
How to read a PEM RSA private key from .NET

I've got an RSA private key in PEM format, is there a straight forward way to read that from .NET …

c# .net cryptography rsa
What are your favorite extension methods for C#? (codeplex.com/extensionoverflow)

Let's make a list of answers where you post your excellent and favorite extension methods. The requirement is that the …

c# .net open-source extension-methods
Predicate Delegates in C#

Can you explain to me: What is a Predicate Delegate? Where should we use predicates? Any best practices when using …

c# .net predicate
Getting Date or Time only from a DateTime Object

I have a DateTime instance that has a Date and a Time. How do I extract only the date or …

c# .net datetime
What .NET collection provides the fastest search

I have 60k items that need to be checked against a 20k lookup list. Is there a collection object (like …

c# .net search collections
Checking if an object is a number in C#

I'd like to check if an object is a number so that .ToString() would result in a string containing digits …

c# .net serialization xml-serialization
How do I get the title of the current active window using c#?

I'd like to know how to grab the Window title of the current active window (i.e. the one that …

c# .net windows winforms