Category: C#

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…

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…

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 – 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

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

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…