Multiple “order by”-statements in LINQ
To use multiple order by statements in your LINQ query you can use the OrderBy Method combined with multiple ThenBy Method’s. Example so let’s create a sample class and fill…
How to write a case-sensitive MS-SQL query
When using a case-insensitive Server Collation your sql queries are case-insensitive by default. To write a case-sensitive MS-SQL query, you need to add the keyword. In this sample we used…
Adding a Manifest Application File to your Visual Studio Project
Right click on your project in the Visual Studio Solution Explorer. Select “Add New Item” from the context menu. 3. Choose “Application Manifest File” from the list of options in…
How to force a .NET Application to run as administrator
If you need to force a .NET Application to run with Administrative Privileges, you simply need to modify the Application Manifest File of your Project. If you need Help Adding…
How to calculate a person’s age using C# and VB.NET
This code snippet can help you to calculate a Person’s age using C# and VB.NET. C# Snippet #region using System; #endregion namespace de.Fesslersoft.CalculateAge { internal class Program { public static…