Category: C#
C# Compiler Error – CS0433 the type ‘{1}’ exists in both ‘{0}’ and
In this blog post, you’ll learn more about the C# Compiler Error – CS0433 and the related message description C# Compiler Error Code CS0433 C# Compiler Description for the Code :CS0433 The type ‘{1}’ exists in both ‘{0}’ and ‘{2}’
How to Specify the Number of Decimal Places for a Double value in C# ?
Below is a sample code snippet that demonstrates how the developers can specify the number of decimal places for a number declared as double in C#. How to Specify the Number of Decimal Places for a Double value in C# ?
C# Compiler Error – CS8205 attributes are not allowed on local func
In this blog post, you’ll learn more about the C# Compiler Error – CS8205 and the related message description C# Compiler Error Code CS8205 C# Compiler Description for the Code :CS8205 Attributes are not allowed on local function parameters or type parameters
C# Compiler Error – CS8628 cannot use a nullable reference type in
In this blog post, you’ll learn more about the C# Compiler Error – CS8628 and the related message description C# Compiler Error Code CS8628 C# Compiler Description for the Code :CS8628 Cannot use a nullable reference type in object creation.
Launch the Bluetooth Settings App using URI Scheme in Windows Phone 8
Below is a sample code snippet demonstrating how launch the Bluetooth Settings app via the URI Scheme and LaunchUriAsync method in Windows Phone using C#. Launch the Bluetooth Settings App using URI Scheme in Windows Phone 8
C# Compiler Error – CS0423 since ‘{1}’ has the comimport attribute,
In this blog post, you’ll learn more about the C# Compiler Error – CS0423 and the related message description C# Compiler Error Code CS0423 C# Compiler Description for the Code :CS0423 Since ‘{1}’ has the ComImport attribute, ‘{0}’ must be extern or abstract
C# Compiler Error – CS0314 the type ‘{3}’ cannot be used as type pa
In this blog post, you’ll learn more about the C# Compiler Error – CS0314 and the related message description C# Compiler Error Code CS0314 C# Compiler Description for the Code :CS0314 The type ‘{3}’ cannot be used as type parameter ‘{2}’ in the generic type or method ‘{0}’. There is no boxing conversion or type parameter conversion from ‘{3}’ to ‘{1}’.
C# Compiler Error – CS8704 ‘{0}’ does not implement interface membe
In this blog post, you’ll learn more about the C# Compiler Error – CS8704 and the related message description C# Compiler Error Code CS8704 C# Compiler Description for the Code :CS8704 ‘{0}’ does not implement interface member ‘{1}’. ‘{2}’ cannot implicitly implement a non-public member in C# {3}. Please use language version ‘{4}’ or greater.
C# Compiler Error – CS8352 cannot use local ‘{0}’ in this context b
In this blog post, you’ll learn more about the C# Compiler Error – CS8352 and the related message description C# Compiler Error Code CS8352 C# Compiler Description for the Code :CS8352 Cannot use local ‘{0}’ in this context because it may expose referenced variables outside of their declaration scope
C# Compiler Warning – CS8600 converting null literal or possible null
In this blog post, you’ll learn more about the C# Compiler Warning – CS8600 and the related message description C# Compiler Warning Code CS8600 C# Compiler Description for the Code :CS8600 Converting null literal or possible null value to non-nullable type.
How to List out only Even Numbers from a List of Integers using Lambda Expression in C#?
Below is sample code snippet that demonstrates how to list out only even numbers from a list of integers using Lambda Expression in C#. How to List out only Even Numbers from a List of Integers using Lambda Expression in C#?
Rules for using Anonymous Types in C#
The anonymous types (var) in C# is an interesting feature that the C# developers could use within their .NET application . When using the anonymous type , there are certain criteria or rules that needs to be followed . Rules for using Anonymous Types in C# Below are some of the rules that the developers should be following when using the anonymous type. 1. NULL…