Category: C#

C# Compiler Warning – CS0626 method, operator, or accessor ‘{0}’ is m

In this blog post, you’ll learn more about the C# Compiler Warning – CS0626 and the related message description C# Compiler Warning Code CS0626 C# Compiler Description for the Code :CS0626 Method, operator, or accessor ‘{0}’ is marked external and has no attributes on it. Consider adding a DllImport attribute to specify the external implementation.

How to Get the Current Location in Windows Phone 8?

The Windows Phone 8 SDK provides the Geolocator class which can be used to monitor and get the current location from Windows Phone 8. The Geolocator API is part of the WinPRT API and contains the necessary events for detecting the changes in the Geographic position of the Windows Phone. Below is a sample soucrecode demonstrating how to get the Current Location in Windows Phone…

C# and LINQ – Filter elements from object collection using where clause

Here’s a sample code snippet demonstrating how to filter elements from a list of objects using the where clause using LINQ in C#. This sample gets all the employees who salary is greater than 20000 GBP. How to Filter Employees List whose salary is greater than 20000 GBP using LINQ in C# ? Output Employees whose salary is greater than 20000 pounds Michael John

C# Compiler Error – CS0218 in order for ‘{0}’ to be applicable as a

In this blog post, you’ll learn more about the C# Compiler Error – CS0218 and the related message description C# Compiler Error Code CS0218 C# Compiler Description for the Code :CS0218 In order for ‘{0}’ to be applicable as a short circuit operator, its declaring type ‘{1}’ must define operator true and operator false

How to Create a Unique temporary file in C# ?

There are times when you want to create an unique temporary file in C# to deal with the storage of the data. In this case , you can use the Guid Name to get the unique name. How to Create a Unique temporary file in C# ?