Setting a default value for auto implemented properties
normally you can set a default value for your properties by giving the private property a value. but the auto implemented properties which were introduced with C# 3.0 the syntax…
All the Code Snippets and Samples you need
normally you can set a default value for your properties by giving the private property a value. but the auto implemented properties which were introduced with C# 3.0 the syntax…
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…
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…
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…
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…
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…