Category: C#
C# Compiler Error – CS0121 the call is ambiguous between the follow
In this blog post, you’ll learn more about the C# Compiler Error – CS0121 and the related message description C# Compiler Error Code CS0121 C# Compiler Description for the Code :CS0121 The call is ambiguous between the following methods or properties: ‘{0}’ and ‘{1}’
C# Compiler Error – CS0719 ‘{0}’: array elements cannot be of stati
In this blog post, you’ll learn more about the C# Compiler Error – CS0719 and the related message description C# Compiler Error Code CS0719 C# Compiler Description for the Code :CS0719 ‘{0}’: array elements cannot be of static type
C# Compiler Error – CS7048 first argument to a security attribute m
In this blog post, you’ll learn more about the C# Compiler Error – CS7048 and the related message description C# Compiler Error Code CS7048 C# Compiler Description for the Code :CS7048 First argument to a security attribute must be a valid SecurityAction
Using Null Coalescing Operator in C#
Sometimes , you may want to simply the Null checks in your .NET Program without much usage of the if statements . The Null Coalescing Operator can be used in this scenario. Using Null Coalescing Operator in C#
C# Compiler Error – CS1959 ‘{0}’ is of type ‘{1}’. the type specifi
In this blog post, you’ll learn more about the C# Compiler Error – CS1959 and the related message description C# Compiler Error Code CS1959 C# Compiler Description for the Code :CS1959 ‘{0}’ is of type ‘{1}’. The type specified in a constant declaration must be sbyte, byte, short, ushort, int, uint, long, ulong, char, float, double, decimal, bool, string, an enum-type, or a reference-type.
C# Compiler Error – CS0017 program has more than one entry point de
In this blog post, you’ll learn more about the C# Compiler Error – CS0017 and the related message description C# Compiler Error Code CS0017 C# Compiler Description for the Code :CS0017 Program has more than one entry point defined. Compile with /main to specify the type that contains the entry point.
C# Compiler Error – CS0176 member ‘{0}’ cannot be accessed with an
In this blog post, you’ll learn more about the C# Compiler Error – CS0176 and the related message description C# Compiler Error Code CS0176 C# Compiler Description for the Code :CS0176 Member ‘{0}’ cannot be accessed with an instance reference; qualify it with a type name instead
C# Compiler Warning – CS8034 unable to load analyzer assembly {0} : {
In this blog post, you’ll learn more about the C# Compiler Warning – CS8034 and the related message description C# Compiler Warning Code CS8034 C# Compiler Description for the Code :CS8034 Unable to load Analyzer assembly {0} : {1}
C# Compiler Error – CS8805 program using top-level statements must
In this blog post, you’ll learn more about the C# Compiler Error – CS8805 and the related message description C# Compiler Error Code CS8805 C# Compiler Description for the Code :CS8805 Program using top-level statements must be an executable.
C# Compiler Error – CS0505 ‘{0}’: cannot override because ‘{1}’ is
In this blog post, you’ll learn more about the C# Compiler Error – CS0505 and the related message description C# Compiler Error Code CS0505 C# Compiler Description for the Code :CS0505 ‘{0}’: cannot override because ‘{1}’ is not a function
Implicit Type Inference in C#
There are times when you want to declare a variable and assign a value to it even without having to figure out what the data type of the variable is . In C# , the var keyword provides the type inference feature where the compiler decides what type the local variable is . Below is a sample code snippet demonstrating the Implicit Type Inference in…
C# Compiler Error – CS0283 the type ‘{0}’ cannot be declared const
In this blog post, you’ll learn more about the C# Compiler Error – CS0283 and the related message description C# Compiler Error Code CS0283 C# Compiler Description for the Code :CS0283 The type ‘{0}’ cannot be declared const
C# Compiler Error – CS0136 a local or parameter named ‘{0}’ cannot
In this blog post, you’ll learn more about the C# Compiler Error – CS0136 and the related message description C# Compiler Error Code CS0136 C# Compiler Description for the Code :CS0136 A local or parameter named ‘{0}’ cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter
How to Get a developer license to develop Windows Phone store app ?
When you installed the Windows Phone 8.1 SDK and try to create and run the first Windows Phone application . You will be prompted to get a free developer license which is necessary to develop and test the windows phone store app on the Windows 8.1 PC before publishing and getting it certified in the store . How to Get a developer license to develop…
C# Compiler Error – CS0432 alias ‘{0}’ not found
In this blog post, you’ll learn more about the C# Compiler Error – CS0432 and the related message description C# Compiler Error Code CS0432 C# Compiler Description for the Code :CS0432 Alias ‘{0}’ not found
C# Compiler Error – CS8798 partial method ‘{0}’ must have accessibi
In this blog post, you’ll learn more about the C# Compiler Error – CS8798 and the related message description C# Compiler Error Code CS8798 C# Compiler Description for the Code :CS8798 Partial method ‘{0}’ must have accessibility modifiers because it has a ‘virtual’, ‘override’, ‘sealed’, ‘new’, or ‘extern’ modifier.
C# Compiler Error – CS0758 both partial method declarations must us
In this blog post, you’ll learn more about the C# Compiler Error – CS0758 and the related message description C# Compiler Error Code CS0758 C# Compiler Description for the Code :CS0758 Both partial method declarations must use a params parameter or neither may use a params parameter
C# Compiler Warning – CS3021 ‘{0}’ does not need a clscompliant attri
In this blog post, you’ll learn more about the C# Compiler Warning – CS3021 and the related message description C# Compiler Warning Code CS3021 C# Compiler Description for the Code :CS3021 ‘{0}’ does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute
C# Compiler Error – CS7099 metadata references are not supported.
In this blog post, you’ll learn more about the C# Compiler Error – CS7099 and the related message description C# Compiler Error Code CS7099 C# Compiler Description for the Code :CS7099 Metadata references are not supported.
How to decode a base64 string in C#?
Here’s a sample code snippet demonstrating how you can easily decode a base64 encoded string in C#. How to decode a base64 string in C#?