Top ".net" questions

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

How to convert SecureString to System.String?

All reservations about unsecuring your SecureString by creating a System.String out of it aside, how can it be done? …

c# .net security encryption
Programmatically get the version number of a DLL

Is it possible to get the version number programmatically from any .NET DLL? If yes, how?

c# .net
Convert object of any type to JObject with Json.NET

I often need to extend my Domain model with additional info before returning it to the client with WebAPI. To …

c# .net json.net
How can a windows service programmatically restart itself?

I need to write robust code in .NET to enable a windows service (server 2003) to restart itself. What is the …

.net windows windows-services windows-server-2003
How to create a .NET DateTime from ISO 8601 format

I've found how to turn a DateTime into an ISO 8601 format, but nothing on how to do the reverse in …

c# .net datetime iso8601 datetime-parsing
How to submit http form using C#

I have a simple html file such as <form action="http://www.someurl.com/page.php" method="POST"> &…

c# .net html forms http-post
Is there a .NET/C# wrapper for SQLite?

I'd sort of like to use SQLite from within C#.Net, but I can't seem to find an appropriate library. …

c# .net database sqlite
Looping through rows in a DataView

The DataView object doesn't have a Rows property like DataTable. How do I loop through the rows of a DataView?

.net loops dataview
What and When to use Tuple?

May someone please explain what a Tuple is and how to use it in a Real World Scenario. I would …

c# .net c#-4.0 .net-4.0 tuples
Console app arguments, how arguments are passed to Main method

This would be question from c# beginner. When I create console application I get Main method with parameter args as …

c# .net command-line-arguments