Category: C#
C# Compiler Error – CS0030 cannot convert type ‘{0}’ to ‘{1}’
In this blog post, you’ll learn more about the C# Compiler Error – CS0030 and the related message description C# Compiler Error Code CS0030 C# Compiler Description for the Code :CS0030 Cannot convert type ‘{0}’ to ‘{1}’
Launching the Location Settings App using URI Scheme in Windows Phone 8
Below is a sample code snippet demonstrating on how to launch the Location Settings App via the URI Scheme and LaunchUriAsync method in Windows Phone using C#. Launching the Location Settings App using URI Scheme in Windows Phone 8
C# Compiler Error – CS0678 ‘{0}’: a field cannot be both volatile a
In this blog post, you’ll learn more about the C# Compiler Error – CS0678 and the related message description C# Compiler Error Code CS0678 C# Compiler Description for the Code :CS0678 ‘{0}’: a field cannot be both volatile and readonly
C# Compiler Error – CS1640 foreach statement cannot operate on vari
In this blog post, you’ll learn more about the C# Compiler Error – CS1640 and the related message description C# Compiler Error Code CS1640 C# Compiler Description for the Code :CS1640 foreach statement cannot operate on variables of type ‘{0}’ because it implements multiple instantiations of ‘{1}’; try casting to a specific interface instantiation
C# Compiler Error – CS7045 parameter not valid for the specified un
In this blog post, you’ll learn more about the C# Compiler Error – CS7045 and the related message description C# Compiler Error Code CS7045 C# Compiler Description for the Code :CS7045 Parameter not valid for the specified unmanaged type.
Using or Operator in the Where Clause of LINQ in C#
Below is a sample code snippet demonstrating on how to use “Or” Operator in the Where Clause of Linq in C#? Using or Operator in the Where Clause of LINQ in C#
Initialize int array in C# ?
Here’s a code snippet demonstrating how to initialize int arrays in C# and display the contents of it using the for loop. How to Initialize int array in C# ?
C# Compiler Warning – CS8032 an instance of analyzer {0} cannot be cr
In this blog post, you’ll learn more about the C# Compiler Warning – CS8032 and the related message description C# Compiler Warning Code CS8032 C# Compiler Description for the Code :CS8032 An instance of analyzer {0} cannot be created from {1} : {2}.
C# Compiler Warning – CS1064 the best overloaded add method ‘{0}’ for
In this blog post, you’ll learn more about the C# Compiler Warning – CS1064 and the related message description C# Compiler Warning Code CS1064 C# Compiler Description for the Code :CS1064 The best overloaded Add method ‘{0}’ for the collection initializer element is obsolete.
XAP File in Windows Phone
XAP is the file which is used to deploy the app to the unlocked windows phone 8 device or submit the app for windows phone store. In simple terms, XAP is the output of the Windows Phone 8 project in Visual Studio and is a compressed files which contains assemblies, images, configuration files etc. The XAP file also contains 2 more important application manifest file…
C# Compiler Error – CS8346 conversion of a stackalloc expression of
In this blog post, you’ll learn more about the C# Compiler Error – CS8346 and the related message description C# Compiler Error Code CS8346 C# Compiler Description for the Code :CS8346 Conversion of a stackalloc expression of type ‘{0}’ to type ‘{1}’ is not possible.
C# Compiler Error – CS8934 cannot convert {0} to type ‘{1}’ because
In this blog post, you’ll learn more about the C# Compiler Error – CS8934 and the related message description C# Compiler Error Code CS8934 C# Compiler Description for the Code :CS8934 Cannot convert {0} to type ‘{1}’ because the return type does not match the delegate return type
C# Compiler Error – CS0134 ‘{0}’ is of type ‘{1}’. a const field of
In this blog post, you’ll learn more about the C# Compiler Error – CS0134 and the related message description C# Compiler Error Code CS0134 C# Compiler Description for the Code :CS0134 ‘{0}’ is of type ‘{1}’. A const field of a reference type other than string can only be initialized with null.
C# Compiler Error – CS8889 the target runtime doesn’t support exten
In this blog post, you’ll learn more about the C# Compiler Error – CS8889 and the related message description C# Compiler Error Code CS8889 C# Compiler Description for the Code :CS8889 The target runtime doesn’t support extensible or runtime-environment default calling conventions.
C# Compiler Error – CS8707 target runtime doesn’t support ‘protecte
In this blog post, you’ll learn more about the C# Compiler Error – CS8707 and the related message description C# Compiler Error Code CS8707 C# Compiler Description for the Code :CS8707 Target runtime doesn’t support ‘protected’, ‘protected internal’, or ‘private protected’ accessibility for a member of an interface.
C# Compiler Error – CS0132 ‘{0}’: a static constructor must be para
In this blog post, you’ll learn more about the C# Compiler Error – CS0132 and the related message description C# Compiler Error Code CS0132 C# Compiler Description for the Code :CS0132 ‘{0}’: a static constructor must be parameterless
C# Compiler Error – CS1992 the ‘await’ operator can only be used wh
In this blog post, you’ll learn more about the C# Compiler Error – CS1992 and the related message description C# Compiler Error Code CS1992 C# Compiler Description for the Code :CS1992 The ‘await’ operator can only be used when contained within a method or lambda expression marked with the ‘async’ modifier
Lock keyword in C#
Want to get the mutual exclusion lock for a given object or a block of statement? If yes, you can use the lock keyword in C# which marks the start of the critical section. The lock keyword may be useful especially when you are using threading in your application. It ensures that only one thread can enter and use the critical section. If another thread…
How to use Named Parameters in C# ?
Named Parameters is one of the cool features in C# 4.0 that lets you to call the methods with the parameters with their names . How to use Named Parameters in C# ? Below is a sample code snippet demonstrating the usage of the Named Parameters in C#.
C# Compiler Error – CS8502 matching the tuple type ‘{0}’ requires ‘
In this blog post, you’ll learn more about the C# Compiler Error – CS8502 and the related message description C# Compiler Error Code CS8502 C# Compiler Description for the Code :CS8502 Matching the tuple type ‘{0}’ requires ‘{1}’ subpatterns, but ‘{2}’ subpatterns are present.