How to replace a line break in C# and VB.NET
Replacing a line break is a simple challenge. In .NET there are plenty of ways to do that. You can for example use String.Replace or Regex.Replace. My prefered method is…
All the Code Snippets and Samples you need
Replacing a line break is a simple challenge. In .NET there are plenty of ways to do that. You can for example use String.Replace or Regex.Replace. My prefered method is…
To generate random numbers in csharp or vb.net you simply need to use the Random class which is located in the namespace System. c# example vb.net example remember that the…
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…
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…