Category: C#
What is the Use of Capabilities in Windows Phone Application Manifest File ?
When working with the Windows Phone 8 development , you would have noticed the Windows Phone Application manifest file which includes an tab called “Capabilities” . What is the Use of Capabilities in Windows Phone Application Manifest File ? The Windows Phone Application Manifest File contains the metadata for your app. The capabilities in WP8 provides the users with information about the app and which…
C# Compiler Error – CS8783 local function ‘{0}’ must be ‘static’ in
In this blog post, you’ll learn more about the C# Compiler Error – CS8783 and the related message description C# Compiler Error Code CS8783 C# Compiler Description for the Code :CS8783 Local function ‘{0}’ must be ‘static’ in order to use the Conditional attribute
C# Compiler Error – CS8816 module initializer method ‘{0}’ must not
In this blog post, you’ll learn more about the C# Compiler Error – CS8816 and the related message description C# Compiler Error Code CS8816 C# Compiler Description for the Code :CS8816 Module initializer method ‘{0}’ must not be generic and must not be contained in a generic type
How to compare only Date without Time in DateTime datatype in C#?
There are times when you might want to compare only the date parts of two DateTime variable in C#. How to compare only Date without Time in DateTime datatype in C#? You can easily compare using the Date property from the DateTime object.
C# Compiler Error – CS8115 a throw expression is not allowed in thi
In this blog post, you’ll learn more about the C# Compiler Error – CS8115 and the related message description C# Compiler Error Code CS8115 C# Compiler Description for the Code :CS8115 A throw expression is not allowed in this context.
C# Compiler Error – CS0516 constructor ‘{0}’ cannot call itself
In this blog post, you’ll learn more about the C# Compiler Error – CS0516 and the related message description C# Compiler Error Code CS0516 C# Compiler Description for the Code :CS0516 Constructor ‘{0}’ cannot call itself
C# Compiler Error – CS0031 constant value ‘{0}’ cannot be converted
In this blog post, you’ll learn more about the C# Compiler Error – CS0031 and the related message description C# Compiler Error Code CS0031 C# Compiler Description for the Code :CS0031 Constant value ‘{0}’ cannot be converted to a ‘{1}’
C# Compiler Error – CS0180 ‘{0}’ cannot be both extern and abstract
In this blog post, you’ll learn more about the C# Compiler Error – CS0180 and the related message description C# Compiler Error Code CS0180 C# Compiler Description for the Code :CS0180 ‘{0}’ cannot be both extern and abstract
C# Compiler Warning – CS3005 identifier ‘{0}’ differing only in case
In this blog post, you’ll learn more about the C# Compiler Warning – CS3005 and the related message description C# Compiler Warning Code CS3005 C# Compiler Description for the Code :CS3005 Identifier ‘{0}’ differing only in case is not CLS-compliant
C# Compiler Error – CS8646 ‘{0}’ is explicitly implemented more tha
In this blog post, you’ll learn more about the C# Compiler Error – CS8646 and the related message description C# Compiler Error Code CS8646 C# Compiler Description for the Code :CS8646 ‘{0}’ is explicitly implemented more than once.
C# Compiler Error – CS0145 a const field requires a value to be pro
In this blog post, you’ll learn more about the C# Compiler Error – CS0145 and the related message description C# Compiler Error Code CS0145 C# Compiler Description for the Code :CS0145 A const field requires a value to be provided
How to embed quotes inside string in C# ?
If you want to embed quotes within a string in C# , you can use the escape sequence \ followed by the double quotes. How to embed quotes inside string in C# ? Below is a sample sourcecode demonstrating How to embed quotes inside string in C# .
C# Compiler Warning – CS3009 ‘{0}’: base type ‘{1}’ is not cls-compli
In this blog post, you’ll learn more about the C# Compiler Warning – CS3009 and the related message description C# Compiler Warning Code CS3009 C# Compiler Description for the Code :CS3009 ‘{0}’: base type ‘{1}’ is not CLS-compliant
Application Deployment Tool in Windows Phone 8 SDK
The Application Deployment tool is a tool that gets installed when installing the Windows Phone 8 SDK on the Windows 8 PC. What is the use of Application Deployment Tool? If you want to deploy the Windows Phone App (XAP) file to your Windows Phone 8 developer unlocked device, you need the “Application Deployment tool”. The Application Deployment tool allows the developers to select the…
C# Compiler Error – CS1509 the referenced file ‘{0}’ is not an asse
In this blog post, you’ll learn more about the C# Compiler Error – CS1509 and the related message description C# Compiler Error Code CS1509 C# Compiler Description for the Code :CS1509 The referenced file ‘{0}’ is not an assembly
How to Create ApplicationBar in Windows Phone using XAML ?
In one of the previous articles , we discussed how to create ApplicationBar programmatically during runtime using C# . This article will demonstrate how to create ApplicationBar using XAML. How to Create ApplicationBar in Windows Phone using XAML ? Below is a sample XAML code snippet which creates an ApplicationBar with one Menu Item and two ApplicationBarIconButton <phone:PhoneApplicationPage.ApplicationBar> <shell:ApplicationBar> <shell:ApplicationBar.MenuItems> <shell:ApplicationBarMenuItem IsEnabled=”True” Text=”ABundantCode”/> </shell:ApplicationBar.MenuItems> <shell:ApplicationBarIconButton…
C# Compiler Error – CS1615 argument {0} may not be passed with the
In this blog post, you’ll learn more about the C# Compiler Error – CS1615 and the related message description C# Compiler Error Code CS1615 C# Compiler Description for the Code :CS1615 Argument {0} may not be passed with the ‘{1}’ keyword
C# Compiler Error – CS8017 the parameter has multiple distinct defa
In this blog post, you’ll learn more about the C# Compiler Error – CS8017 and the related message description C# Compiler Error Code CS8017 C# Compiler Description for the Code :CS8017 The parameter has multiple distinct default values.
How to Get the Dictionary Key by value in C# ?
If you want to get the Key of a dictionary based on the value in C# , you can use the LINQ’s where clause o FirstOrDefault method. How to Get the Dictionary Key by value in C# ?