Category: C#
C# Compiler Error – CS0503 the abstract {0} ‘{1}’ cannot be marked
In this blog post, you’ll learn more about the C# Compiler Error – CS0503 and the related message description C# Compiler Error Code CS0503 C# Compiler Description for the Code :CS0503 The abstract {0} ‘{1}’ cannot be marked virtual
How to convert string to Int32 using System.Convert in C#?
Below is a sample code snippet demonstrating How to convert string to ToInt32 using System.Convert in C#
C# Compiler Warning – CS0109 the member ‘{0}’ does not hide an access
In this blog post, you’ll learn more about the C# Compiler Warning – CS0109 and the related message description C# Compiler Warning Code CS0109 C# Compiler Description for the Code :CS0109 The member ‘{0}’ does not hide an accessible member. The new keyword is not required.
C# Compiler Warning – CS3007 overloaded method ‘{0}’ differing only b
In this blog post, you’ll learn more about the C# Compiler Warning – CS3007 and the related message description C# Compiler Warning Code CS3007 C# Compiler Description for the Code :CS3007 Overloaded method ‘{0}’ differing only by unnamed array types is not CLS-compliant
C# Compiler Error – CS4031 async methods are not allowed in an inte
In this blog post, you’ll learn more about the C# Compiler Error – CS4031 and the related message description C# Compiler Error Code CS4031 C# Compiler Description for the Code :CS4031 Async methods are not allowed in an Interface, Class, or Structure which has the ‘SecurityCritical’ or ‘SecuritySafeCritical’ attribute.
C# Compiler Error – CS8815 module initializer method ‘{0}’ must be
In this blog post, you’ll learn more about the C# Compiler Error – CS8815 and the related message description C# Compiler Error Code CS8815 C# Compiler Description for the Code :CS8815 Module initializer method ‘{0}’ must be static, must have no parameters, and must return ‘void’
C# Compiler Warning – CS0067 the event ‘{0}’ is never used
In this blog post, you’ll learn more about the C# Compiler Warning – CS0067 and the related message description C# Compiler Warning Code CS0067 C# Compiler Description for the Code :CS0067 The event ‘{0}’ is never used
C# Compiler Warning – CS1616 option ‘{0}’ overrides attribute ‘{1}’ g
In this blog post, you’ll learn more about the C# Compiler Warning – CS1616 and the related message description C# Compiler Warning Code CS1616 C# Compiler Description for the Code :CS1616 Option ‘{0}’ overrides attribute ‘{1}’ given in a source file or added module
Character Escape Sequences in C#
Below are some list of the Character Escape Sequences available in C# \\ – Backslash \’ – Single quote \” – Double quote \b – Backspace \n – New line \r – Carriage return \t – Horizontal tab \f – Form feed \a – Alert \v – Vertical tab \0 – Null
C# Compiler Error – CS1917 members of readonly field ‘{0}’ of type
In this blog post, you’ll learn more about the C# Compiler Error – CS1917 and the related message description C# Compiler Error Code CS1917 C# Compiler Description for the Code :CS1917 Members of readonly field ‘{0}’ of type ‘{1}’ cannot be assigned with an object initializer because it is of a value type
C# Compiler Error – CS0706 invalid constraint type. a type used as
In this blog post, you’ll learn more about the C# Compiler Error – CS0706 and the related message description C# Compiler Error Code CS0706 C# Compiler Description for the Code :CS0706 Invalid constraint type. A type used as a constraint must be an interface, a non-sealed class or a type parameter.
C# Compiler Warning – CS8884 use of possibly unassigned field ‘{0}’
In this blog post, you’ll learn more about the C# Compiler Warning – CS8884 and the related message description C# Compiler Warning Code CS8884 C# Compiler Description for the Code :CS8884 Use of possibly unassigned field ‘{0}’
How to check if the Character is a Letter in c# using Char.IsLetter ?
The Char.IsLetter function can be used to find if the character is a Letter (Unicode) . If the specified character is a Letter , then the function Char.IsLetter returns true else returns false. How to check if the Character is a Letter in c# using Char.IsLetter ? Below is a sample sourcecode demonstrated on how to use Char.IsLetter .
How to mark a class as Obsolete or Deprecated in C# ?
Sometimes , you may want to mark a class or method as deprecated so that the you dont want to use the class any more and also want to let know , other developers that the class is obsolete . You can do that by using the Obsolete attribute as shown below . The Obsolete attribute also includes 2nd parameter (boolean) . When this valus…
C# Compiler Error – CS2043 ‘id#’ syntax is no longer supported. use
In this blog post, you’ll learn more about the C# Compiler Error – CS2043 and the related message description C# Compiler Error Code CS2043 C# Compiler Description for the Code :CS2043 ‘id#’ syntax is no longer supported. Use ‘$id’ instead.
C# Compiler Error – CS1977 cannot use a lambda expression as an arg
In this blog post, you’ll learn more about the C# Compiler Error – CS1977 and the related message description C# Compiler Error Code CS1977 C# Compiler Description for the Code :CS1977 Cannot use a lambda expression as an argument to a dynamically dispatched operation without first casting it to a delegate or expression tree type.
C# Compiler Error – CS1110 cannot define a new extension method bec
In this blog post, you’ll learn more about the C# Compiler Error – CS1110 and the related message description C# Compiler Error Code CS1110 C# Compiler Description for the Code :CS1110 Cannot define a new extension method because the compiler required type ‘{0}’ cannot be found. Are you missing a reference to System.Core.dll?
C# Compiler Error – CS1921 the best overloaded method match for ‘{0
In this blog post, you’ll learn more about the C# Compiler Error – CS1921 and the related message description C# Compiler Error Code CS1921 C# Compiler Description for the Code :CS1921 The best overloaded method match for ‘{0}’ has wrong signature for the initializer element. The initializable Add must be an accessible instance method.
C# Compiler Error – CS1029 #error: ‘{0}’
In this blog post, you’ll learn more about the C# Compiler Error – CS1029 and the related message description C# Compiler Error Code CS1029 C# Compiler Description for the Code :CS1029 #error: ‘{0}’
How to Get Auto Incrementing Version Number in Visual Studio 2013 ?
If you are a user looking for a simple trick to auto incrementing version number in Visual Studio 2013 , here we go. How to Get Auto Incrementing Version Number in Visual Studio 2013 ? The AssemblyInfo class does the trick for you . Just include the asterik (*) to the end of the AssemblyVersion attribute in the AssemblyInfo class and you are done ….