Category: C#

C# Compiler Warning – CS0473 explicit interface implementation ‘{0}’

In this blog post, you’ll learn more about the C# Compiler Warning – CS0473 and the related message description C# Compiler Warning Code CS0473 C# Compiler Description for the Code :CS0473 Explicit interface implementation ‘{0}’ matches more than one interface member. Which interface member is actually chosen is implementation-dependent. Consider using a non-explicit implementation instead.

How to Add Border to the Ellipse Control in Windows Phone 8 ?

Looking for an option to add border with a different color to the Ellipse Control in Windows Phone 8 ? Here’s a simple way to do it. How to Add Border to the Ellipse Control in Windows Phone 8 ? Assume that the Ellipse tag in the XAML is as shown below. The Ellipse has the background color “Chocolate”. <Ellipse Height=”52″ Width=”52″ Fill=”Chocolate”/> We can…

How do take Screenshot in Windows Phone 8 device?

The Windows Phone 8 allows the users to take screenshot of the current screen. This was a feature that was included in Windows Phone 8. How do take Screenshot in Windows Phone 8 device? 1. Hold the Power button and the Windows Key simultaneously. 2. This will take a screenshot on the Windows Phone 8 device which will be stored in the Screenshots album.

Defining Simple Anoymous Type in C#

To define an anonymous type in C# , we can use the var keyword . The syntax for defining the anonymous type in C# is as follows var <variableName> = <Non-NULL Value> Eg: var WebsiteName = “Abundantcode.com”; In the MSIL , the above code is similar to

How to Convert a Byte Array to Integer in C# ?

To Convert a Byte array back to the integer , the developers can use the BitConverter.ToInt32 method which accepts byte array as input and returns the number . Below is a sample code snippet that demonstrates how to convert a byte array to integer in C#. How to Convert a Byte Array to Integer in C# ?