Category: C#
Is it possible to develop and test Windows Phone 8 Apps with WP7 device ?
If you are developing a Windows Phone 8 App targeting specially the Windows Phone 8 and its features , you will be able to test it on the Windows Phone 8 Emulators . Is it possible to develop and test Windows Phone 8 Apps with WP7 device ? If you already have the Windows Phone 7.5 or Windows Phone 7.8 , you won’t be able…
C# Compiler Error – CS1719 error opening win32 resource file ‘{0}’
In this blog post, you’ll learn more about the C# Compiler Error – CS1719 and the related message description C# Compiler Error Code CS1719 C# Compiler Description for the Code :CS1719 Error opening Win32 resource file ‘{0}’ — ‘{1}’
C# Compiler Error – CS8004 type ‘{0}’ exported from module ‘{1}’ co
In this blog post, you’ll learn more about the C# Compiler Error – CS8004 and the related message description C# Compiler Error Code CS8004 C# Compiler Description for the Code :CS8004 Type ‘{0}’ exported from module ‘{1}’ conflicts with type declared in primary module of this assembly.
C# Compiler Warning – CS8012 referenced assembly ‘{0}’ targets a diff
In this blog post, you’ll learn more about the C# Compiler Warning – CS8012 and the related message description C# Compiler Warning Code CS8012 C# Compiler Description for the Code :CS8012 Referenced assembly ‘{0}’ targets a different processor.
How to Check for Column Name in SqlDataReader object in C# ?
Do you want to check if a column exists in a SqlDataReader instance in C# ?. One of the simplest solution is to navigate to all the fields within the data reader and check the name of the field using the GetName method as shown below. How to Check for Column Name in SqlDataReader object in C# ?
C# Compiler Error – CS0050 inconsistent accessibility: return type
In this blog post, you’ll learn more about the C# Compiler Error – CS0050 and the related message description C# Compiler Error Code CS0050 C# Compiler Description for the Code :CS0050 Inconsistent accessibility: return type ‘{1}’ is less accessible than method ‘{0}’
C# Compiler Error – CS0555 user-defined operator cannot convert a t
In this blog post, you’ll learn more about the C# Compiler Error – CS0555 and the related message description C# Compiler Error Code CS0555 C# Compiler Description for the Code :CS0555 User-defined operator cannot convert a type to itself
C# Compiler Error – CS8145 auto-implemented properties cannot retur
In this blog post, you’ll learn more about the C# Compiler Error – CS8145 and the related message description C# Compiler Error Code CS8145 C# Compiler Description for the Code :CS8145 Auto-implemented properties cannot return by reference
How to Find if the User has tapped on the Screen in Windows Phone 8 App ?
There are times when you want to find out if the user has tapped on the screen to perform some action . For example , you are developing a game and want the user to tap anywhere on the screen to proceed . In these scenario , one can use the Touch.FrameReported event which lets you capture the position on the screen where the user…
C# Compiler Error – CS0196 a pointer must be indexed by only one va
In this blog post, you’ll learn more about the C# Compiler Error – CS0196 and the related message description C# Compiler Error Code CS0196 C# Compiler Description for the Code :CS0196 A pointer must be indexed by only one value
C# Compiler Error – CS8753 use of new() is not valid in this contex
In this blog post, you’ll learn more about the C# Compiler Error – CS8753 and the related message description C# Compiler Error Code CS8753 C# Compiler Description for the Code :CS8753 Use of new() is not valid in this context
C# Compiler Warning – CS1062 the best overloaded add method ‘{0}’ for
In this blog post, you’ll learn more about the C# Compiler Warning – CS1062 and the related message description C# Compiler Warning Code CS1062 C# Compiler Description for the Code :CS1062 The best overloaded Add method ‘{0}’ for the collection initializer element is obsolete. {1}
C# Compiler Error – CS1503 argument {0}: cannot convert from ‘{1}’
In this blog post, you’ll learn more about the C# Compiler Error – CS1503 and the related message description C# Compiler Error Code CS1503 C# Compiler Description for the Code :CS1503 Argument {0}: cannot convert from ‘{1}’ to ‘{2}’
How to check if List is Empty using LINQ in C#?
Below is a sample source code demonstrating the usage Any () and Count () to check if the list is empty in LINQ. How to check if List is Empty using LINQ in C#?
C# Compiler Error – CS8199 the syntax ‘var (…)’ as an lvalue is res
In this blog post, you’ll learn more about the C# Compiler Error – CS8199 and the related message description C# Compiler Error Code CS8199 C# Compiler Description for the Code :CS8199 The syntax ‘var (…)’ as an lvalue is reserved.
C# Compiler Error – CS8888 ‘managed’ calling convention cannot be c
In this blog post, you’ll learn more about the C# Compiler Error – CS8888 and the related message description C# Compiler Error Code CS8888 C# Compiler Description for the Code :CS8888 ‘managed’ calling convention cannot be combined with unmanaged calling convention specifiers.
C# Compiler Error – CS1578 quoted file name, single-line comment or
In this blog post, you’ll learn more about the C# Compiler Error – CS1578 and the related message description C# Compiler Error Code CS1578 C# Compiler Description for the Code :CS1578 Quoted file name, single-line comment or end-of-line expected
C# Compiler Error – CS8077 a single-line comment may not be used in
In this blog post, you’ll learn more about the C# Compiler Error – CS8077 and the related message description C# Compiler Error Code CS8077 C# Compiler Description for the Code :CS8077 A single-line comment may not be used in an interpolated string.
How to Send e-mail via SMTP using C# ?
Here’s a sample code to send email via SMTP using C#. How to Send e-mail via SMTP using C# ?
How to get the Windows Phone 8 device resolution?
In Windows Phone 8, the developers can utilize the App.Current.Host.Content.ScaleFactor to get the Windows Phone 8 device resolution. How to get the Windows Phone 8 device resolution? Below is a sample code snippet demonstrating how to retrieve the Windows Phone 8 device resolution. The returning value of the ScaleFactor function is 100, 150, and 160 which refers to the resolutions WVGA, 720P, WXGA respectively.