Category: C#
C# Compiler Error – CS1023 embedded statement cannot be a declarati
In this blog post, you’ll learn more about the C# Compiler Error – CS1023 and the related message description C# Compiler Error Code CS1023 C# Compiler Description for the Code :CS1023 Embedded statement cannot be a declaration or labeled statement
C# Compiler Error – CS1672 invalid option ‘{0}’ for /platform; must
In this blog post, you’ll learn more about the C# Compiler Error – CS1672 and the related message description C# Compiler Error Code CS1672 C# Compiler Description for the Code :CS1672 Invalid option ‘{0}’ for /platform; must be anycpu, x86, Itanium, arm, arm64 or x64
C# Compiler Error – CS0053 inconsistent accessibility: property typ
In this blog post, you’ll learn more about the C# Compiler Error – CS0053 and the related message description C# Compiler Error Code CS0053 C# Compiler Description for the Code :CS0053 Inconsistent accessibility: property type ‘{1}’ is less accessible than property ‘{0}’
How to convert string to Boolean using System.Convert in C#?
Below is a sample code snippet demonstrating How to convert string to Boolean using System.Convert function in C#
How to Update Map in Windows Phone 8 Programatically using C#?
The Windows Phone 8 SDK provides the MapUpdaterTask which lets the users to update the region map downloaded earlier which can be used for offline usage. This will launch the Map Settings App which lets the users about the updates to the map (if available). How to Update Map in Windows Phone 8 Programatically using C#? Below is a sample code snippet demonstrating how the…
C# Compiler Warning – CS1690 accessing a member on ‘{0}’ may cause a
In this blog post, you’ll learn more about the C# Compiler Warning – CS1690 and the related message description C# Compiler Warning Code CS1690 C# Compiler Description for the Code :CS1690 Accessing a member on ‘{0}’ may cause a runtime exception because it is a field of a marshal-by-reference class
C# Compiler Error – CS0238 ‘{0}’ cannot be sealed because it is not
In this blog post, you’ll learn more about the C# Compiler Error – CS0238 and the related message description C# Compiler Error Code CS0238 C# Compiler Description for the Code :CS0238 ‘{0}’ cannot be sealed because it is not an override
C# Compiler Warning – CS4025 the callerfilepathattribute applied to p
In this blog post, you’ll learn more about the C# Compiler Warning – CS4025 and the related message description C# Compiler Warning Code CS4025 C# Compiler Description for the Code :CS4025 The CallerFilePathAttribute applied to parameter ‘{0}’ will have no effect because it applies to a member that is used in contexts that do not allow optional arguments
C# Compiler Error – CS8338 the first parameter of the ‘in’ extensio
In this blog post, you’ll learn more about the C# Compiler Error – CS8338 and the related message description C# Compiler Error Code CS8338 C# Compiler Description for the Code :CS8338 The first parameter of the ‘in’ extension method ‘{0}’ must be a concrete (non-generic) value type.
IsolatedStorage File or Windows Storage APIs – Which one to Use for WP8 App?
The Windows Phone 8 SDK includes the Windows Storage API which can be used in the Windows Phone 8 app to store and retrieve data from the Storage. The Windows Phone 7 SDK already provided the IsolatedStorage APIs. Which one to use? IsolatedStorage File or Windows Storage API. The answer is simple. If you are targeting the Windows Phone 8 mainly, then the better option…
C# Compiler Warning – CS1590 invalid xml include element — {0}
In this blog post, you’ll learn more about the C# Compiler Warning – CS1590 and the related message description C# Compiler Warning Code CS1590 C# Compiler Description for the Code :CS1590 Invalid XML include element — {0}
How to Resize an Bitmap Image in C# ?
Below is a sample code snippet that demonstrates how to resize an Bitmap Image in C#. How to Resize an Bitmap Image in C# ?
C# Compiler Error – CS1010 newline in constant
In this blog post, you’ll learn more about the C# Compiler Error – CS1010 and the related message description C# Compiler Error Code CS1010 C# Compiler Description for the Code :CS1010 Newline in constant
C# Compiler Error – CS1525 invalid expression term ‘{0}’
In this blog post, you’ll learn more about the C# Compiler Error – CS1525 and the related message description C# Compiler Error Code CS1525 C# Compiler Description for the Code :CS1525 Invalid expression term ‘{0}’
C# Compiler Error – CS1926 error opening win32 manifest file {0} —
In this blog post, you’ll learn more about the C# Compiler Error – CS1926 and the related message description C# Compiler Error Code CS1926 C# Compiler Description for the Code :CS1926 Error opening Win32 manifest file {0} — {1}
C# Compiler Warning – CS7023 the second operand of an ‘is’ or ‘as’ op
In this blog post, you’ll learn more about the C# Compiler Warning – CS7023 and the related message description C# Compiler Warning Code CS7023 C# Compiler Description for the Code :CS7023 The second operand of an ‘is’ or ‘as’ operator may not be static type ‘{0}’
C# Compiler Error – CS1545 property, indexer, or event ‘{0}’ is not
In this blog post, you’ll learn more about the C# Compiler Error – CS1545 and the related message description C# Compiler Error Code CS1545 C# Compiler Description for the Code :CS1545 Property, indexer, or event ‘{0}’ is not supported by the language; try directly calling accessor methods ‘{1}’ or ‘{2}’
How to Get the Battery Level from a Windows Phone 8 device using C#?
The Windows Phone 8 SDK provides the Windows.Phone.Devices.Power.Battery class which can be used to retrieve the battery information of the windows phone. Use the Windows.Phone.Devices.Power.Battery.GetDefault ().RemainingChargePercent property to retrieve the Battery Level from a Windows Phone 8 device programatically using C#. How to Get the Battery Level from a Windows Phone 8 device using C#? Below is a sample code snippet demonstrating the steps used…
C# Compiler Error – CS1740 named argument ‘{0}’ cannot be specified
In this blog post, you’ll learn more about the C# Compiler Error – CS1740 and the related message description C# Compiler Error Code CS1740 C# Compiler Description for the Code :CS1740 Named argument ‘{0}’ cannot be specified multiple times
C# Compiler Error – CS1900 warning level must be zero or greater
In this blog post, you’ll learn more about the C# Compiler Error – CS1900 and the related message description C# Compiler Error Code CS1900 C# Compiler Description for the Code :CS1900 Warning level must be zero or greater