Category: C#

C# Compiler Error – CS1688 cannot convert anonymous method block wi

In this blog post, you’ll learn more about the C# Compiler Error – CS1688 and the related message description C# Compiler Error Code CS1688 C# Compiler Description for the Code :CS1688 Cannot convert anonymous method block without a parameter list to delegate type ‘{0}’ because it has one or more out parameters

How to Convert a Stream to Byte Array in C# 4.0 ?

One of the simplest way to convert a stream to byte array in C# 4.0 is to use the MemoryStream and perform the CopyTo operation on the source stream to the Memory Stream. How to Convert a Stream to Byte Array in C# 4.0 ? Below is a sample code snippet on how to convert a stream to byte array in C# 4.0.

How to Get Unique Device ID from Windows Phone 8 Using C#?

Do you want to get the unique device id of the Window phone 8 programatically using C#? , you can do it using the DeviceExtendedProperties defined in the Microsoft.Phone.Info name and use the “DeviceUniqueId” property name to get the device id in byte array and then convert it to base 64 string . How to Get Unique Device ID from Windows Phone Using C#? Below…

C# Compiler Error – CS1579 foreach statement cannot operate on vari

In this blog post, you’ll learn more about the C# Compiler Error – CS1579 and the related message description C# Compiler Error Code CS1579 C# Compiler Description for the Code :CS1579 foreach statement cannot operate on variables of type ‘{0}’ because ‘{0}’ does not contain a public instance or extension definition for ‘{1}’