What character escape sequences are available in C# or VB.NET?
The following character escape sequences are avaiable in c# \’ single quote, needed for character literals \” double quote, needed for string literals \\ backslash \0…
How to rename a file in c# or vb.net
To rename a file in c# or vb.net you need to Move it, there is no inbuild function that would just rename a file without moving. The Move function can…
How to replace multiple spaces with a single space in c# or vb.net
To replace multiple spaces with a single space in c# or vb.net you can use a Regular Expression Sample c# Sample VB.NET there are more ways to do that, but…
How to mark classes, methods and properties as Obsolete / Deprecated in c# or vb.net
How can a class marked as Deprecated/Obsolete in c# or vb.NET? You can mark a class, method or property by adding the Obsolete Attribute above the declaration. Sample C#…
How to convert int to hex and hex to int in C# or VB.NET
How to convert int to hex and hex to int in C# or VB.NET? Example C# Example VB.NET see also Standard Numeric Format Strings in the MSDN.
How to populate a XDocument from a String
How to populate a XDocument from a String? Example C# Example VB.NET see the msdn for more informations XDocument.Parse Method
How to convert a char array to string
How to convert a char array to string in c# or vb.net? Sample C# Sample VB.NET For more informations take a look at the String Class Constructor’s in the msdn.
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…
generate random numbers in csharp or vb.net
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…
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…