Category: C#
C# Compiler Error – CS7094 cannot await in the filter expression of
In this blog post, you’ll learn more about the C# Compiler Error – CS7094 and the related message description C# Compiler Error Code CS7094 C# Compiler Description for the Code :CS7094 Cannot await in the filter expression of a catch clause
C# Compiler Error – CS0313 the type ‘{3}’ cannot be used as type pa
In this blog post, you’ll learn more about the C# Compiler Error – CS0313 and the related message description C# Compiler Error Code CS0313 C# Compiler Description for the Code :CS0313 The type ‘{3}’ cannot be used as type parameter ‘{2}’ in the generic type or method ‘{0}’. The nullable type ‘{3}’ does not satisfy the constraint of ‘{1}’. Nullable types can not satisfy any…
C# Compiler Warning – CS8762 parameter ‘{0}’ must have a non-null val
In this blog post, you’ll learn more about the C# Compiler Warning – CS8762 and the related message description C# Compiler Warning Code CS8762 C# Compiler Description for the Code :CS8762 Parameter ‘{0}’ must have a non-null value when exiting with ‘{1}’.
Different Tabs in the Package Manifest file in Universal App
The package manifest file in the Windows Store App and Windows Phone app (universal app) lets the developers to describe some of the key information about the application like the name , necessary device capabilities that the app can use and the requirements for the device to install the app etc. The name of the file would generally be Package.appxmanifest. Different Tabs in the Package…
C# Compiler Error – CS0538 ‘{0}’ in explicit interface declaration
In this blog post, you’ll learn more about the C# Compiler Error – CS0538 and the related message description C# Compiler Error Code CS0538 C# Compiler Description for the Code :CS0538 ‘{0}’ in explicit interface declaration is not an interface
C# Program – How to Escape Braces ?
This post shows you a quick way on how you can escape braces or curly brackets in C# when using string format.
How to Create a ShellToast(ToastPrompt) in Windows Phone 8 ?
Do you want to create a ShellToast from your Windows Phone 8 app ? . The Coding4fun toolkit provides some additional controls which can be used create a ShellToast in Windows Phone 8 app. How to Create a ShellToast(ToastPrompt) in Windows Phone 8 ? Below is a sample code snippet demonstrating how to achieve it using the ToastPrompt control from Coding4Fun.
C# Compiler Error – CS0022 wrong number of indices inside []; expec
In this blog post, you’ll learn more about the C# Compiler Error – CS0022 and the related message description C# Compiler Error Code CS0022 C# Compiler Description for the Code :CS0022 Wrong number of indices inside []; expected {0}
C# Compiler Warning – CS0665 assignment in conditional expression is
In this blog post, you’ll learn more about the C# Compiler Warning – CS0665 and the related message description C# Compiler Warning Code CS0665 C# Compiler Description for the Code :CS0665 Assignment in conditional expression is always constant; did you mean to use == instead of = ?
C# Compiler Warning – CS7095 filter expression is a constant ‘true’,
In this blog post, you’ll learn more about the C# Compiler Warning – CS7095 and the related message description C# Compiler Warning Code CS7095 C# Compiler Description for the Code :CS7095 Filter expression is a constant ‘true’, consider removing the filter
C# Compiler Error – CS0724 a throw statement with no arguments is n
In this blog post, you’ll learn more about the C# Compiler Error – CS0724 and the related message description C# Compiler Error Code CS0724 C# Compiler Description for the Code :CS0724 A throw statement with no arguments is not allowed in a finally clause that is nested inside the nearest enclosing catch clause
How to find if the value is null for a Nullable Type in c# ?
The Nullable type in C# provides the property HasValue which can be used to find if the value is null . Below is a sample sourecode snippet demonstrating How to find if the value is null for a Nullable Type in c# ? How to find if the value is null for a Nullable Type in c# ?
How to Change the Background Color of the Status Bar or System Tray in Windows Phone 8 ?
Are you looking forward to change the background color of the status bar or system tray in Windows Phone 8 ? Below is a sample code snippet that demonstrates how to do it . How to Change the Background Color of the Status Bar or System Tray in Windows Phone 8 ? In the below code snippet , the background color of the SystemTray is…
C# Compiler Error – CS8341 auto-implemented instance properties in
In this blog post, you’ll learn more about the C# Compiler Error – CS8341 and the related message description C# Compiler Error Code CS8341 C# Compiler Description for the Code :CS8341 Auto-implemented instance properties in readonly structs must be readonly.
C# Compiler Error – CS1026 ) expected
In this blog post, you’ll learn more about the C# Compiler Error – CS1026 and the related message description C# Compiler Error Code CS1026 C# Compiler Description for the Code :CS1026 ) expected
C# Compiler Error – CS0656 missing compiler required member ‘{0}.{1
In this blog post, you’ll learn more about the C# Compiler Error – CS0656 and the related message description C# Compiler Error Code CS0656 C# Compiler Description for the Code :CS0656 Missing compiler required member ‘{0}.{1}’
Json.NET & Oxygene – How to Serialize an Object ?
One of the ways to serialize an object to JSON string in Oxygene # in the Json.NET is using the SerializeObject method defined in the JsonConvert method. The JsonConvert class provides an easy to use wrapper class and method over the JsonSerializer. How to Serialize an Object in Oxygene using Json.NET ? Below is the sample code snippet demonstrating the usage of JsonConvert.SerializeObject method in…
C# Compiler Error – CS1039 unterminated string literal
In this blog post, you’ll learn more about the C# Compiler Error – CS1039 and the related message description C# Compiler Error Code CS1039 C# Compiler Description for the Code :CS1039 Unterminated string literal
How can you strip non-ASCII characters from a string in C# ?
Regular expressions is one of the easiest way to strip non-ascii characters from a string in C#. Here’s how you do it. How can you strip non-ASCII characters from a string in C# ?
C# Compiler Error – CS8142 both partial method declarations, ‘{0}’
In this blog post, you’ll learn more about the C# Compiler Error – CS8142 and the related message description C# Compiler Error Code CS8142 C# Compiler Description for the Code :CS8142 Both partial method declarations, ‘{0}’ and ‘{1}’, must use the same tuple element names.