Category: C#

How to Convert a Number to Bytes Array in C# ?

To Convert a number to a byte array , the developers can use the BitConverter.GetBytes method which returns array of bytes. How to Convert a Number to Bytes Array in C# ? Below is a sample code snippet demonstrating how to convert a Number to Byte Array in C# .

C# Compiler Warning – CS0657 ‘{0}’ is not a valid attribute location

In this blog post, you’ll learn more about the C# Compiler Warning – CS0657 and the related message description C# Compiler Warning Code CS0657 C# Compiler Description for the Code :CS0657 ‘{0}’ is not a valid attribute location for this declaration. Valid attribute locations for this declaration are ‘{1}’. All attributes in this block will be ignored.

How to Copy a Song to Windows Phone Music Hub/Library using C#?

Below is a sample code snippet that demonstrates how to copy a song (audio) to the Windows Phone hub/library Programatically using C#. How to Copy a Song to Windows Phone Music Hub/Library using C#? The SaveFileToIsolatedStorage is explained in the How to Save File to Isolated Storage in Windows Phone 8? Article

C# Compiler Error – CS1934 could not find an implementation of the

In this blog post, you’ll learn more about the C# Compiler Error – CS1934 and the related message description C# Compiler Error Code CS1934 C# Compiler Description for the Code :CS1934 Could not find an implementation of the query pattern for source type ‘{0}’. ‘{1}’ not found. Consider explicitly specifying the type of the range variable ‘{2}’.

Creating a Simple XAML for Windows Phone 8 App

In this article, let’s have a look at how to create our first Windows Phone 8 App using the XAML for Windows Phone App template in Visual Studio 2012. Creating a Simple XAML for Windows Phone 8 App To create a XAML for Windows Phone App, follow the below step by step instructions. 1. Launch Visual Studio 2012. 2. Click File -> New -> Project….