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 to Check if a file exists in Windows Storage in UWP ?
Do you want to know if a file exists in the Windows Storage from your Universal Windows Platform (UWP) app ?. Below is a sample code snippet demonstrating how to do it. How to Check if a file exists in Windows Storage in UWP ?
C# Compiler Error – CS8515 parentheses are required around the swit
In this blog post, you’ll learn more about the C# Compiler Error – CS8515 and the related message description C# Compiler Error Code CS8515 C# Compiler Description for the Code :CS8515 Parentheses are required around the switch governing expression.
C# Compiler Warning – CS3016 arrays as attribute arguments is not cls
In this blog post, you’ll learn more about the C# Compiler Warning – CS3016 and the related message description C# Compiler Warning Code CS3016 C# Compiler Description for the Code :CS3016 Arrays as attribute arguments is not CLS-compliant
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.
C# Compiler Error – CS0631 ref and out are not valid in this contex
In this blog post, you’ll learn more about the C# Compiler Error – CS0631 and the related message description C# Compiler Error Code CS0631 C# Compiler Description for the Code :CS0631 ref and out are not valid in this context
C# Compiler Error – CS7018 expected a script (.csx file) but none s
In this blog post, you’ll learn more about the C# Compiler Error – CS7018 and the related message description C# Compiler Error Code CS7018 C# Compiler Description for the Code :CS7018 Expected a script (.csx file) but none specified
C# Compiler Warning – CS3006 overloaded method ‘{0}’ differing only i
In this blog post, you’ll learn more about the C# Compiler Warning – CS3006 and the related message description C# Compiler Warning Code CS3006 C# Compiler Description for the Code :CS3006 Overloaded method ‘{0}’ differing only in ref or out, or in array rank, is not CLS-compliant
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
C# Compiler Error – CS8760 ‘{0}’: extern event cannot have initiali
In this blog post, you’ll learn more about the C# Compiler Error – CS8760 and the related message description C# Compiler Error Code CS8760 C# Compiler Description for the Code :CS8760 ‘{0}’: extern event cannot have initializer
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# ?