Category: C#

Arithmetic Operators in C#

The following Arithmetic Operators are supported in C# + (Addition) – (Subtraction) / (Division) * (Multiplication) ++ (Increment) — (Decrement) % (Modulus) Below is a sample code snippet demonstrating the usage of Arithmetic operators in C#

C# Compiler Error – CS8413 asynchronous foreach statement cannot op

In this blog post, you’ll learn more about the C# Compiler Error – CS8413 and the related message description C# Compiler Error Code CS8413 C# Compiler Description for the Code :CS8413 Asynchronous 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 – CS8706 ‘{0}’ cannot implement interface member

In this blog post, you’ll learn more about the C# Compiler Error – CS8706 and the related message description C# Compiler Error Code CS8706 C# Compiler Description for the Code :CS8706 ‘{0}’ cannot implement interface member ‘{1}’ in type ‘{2}’ because feature ‘{3}’ is not available in C# {4}. Please use language version ‘{5}’ or greater.

How to Get the Address based on the Co-Ordinates in Windows Phone 8 ?

Below is a sample code snippet that demonstrates how to get the address of the location based on the co-ordinates in Windows Phone 8. How to Get the Address based on the Co-Ordinates in Windows Phone 8 ? In the below code snippet , the latitude and longitude is fixed . The Google’s API is used to get the location details by passing it to…

C# Compiler Warning – CS8622 nullability of reference types in type o

In this blog post, you’ll learn more about the C# Compiler Warning – CS8622 and the related message description C# Compiler Warning Code CS8622 C# Compiler Description for the Code :CS8622 Nullability of reference types in type of parameter ‘{0}’ of ‘{1}’ doesn’t match the target delegate ‘{2}’ (possibly because of nullability attributes).

C# and Lambda – Finding all the elements of an integer array less than 35

Here’s a sample code snippet demonstrating how to find all the elements of an integer array that is less than 35 using Lambda expression in C#. The Where keyword in C# is used to filter the elements from a collection based on the specified criteria. How to find all the elements of an integer array less than 35 using Lambda expression in C# ? The…