Category: C#
C# Compiler Fatal – CS2033 cannot create short filename ‘{0}’ when
In this blog post, you’ll learn more about the C# Compiler Fatal – CS2033 and the related message description C# Compiler Fatal Code CS2033 C# Compiler Description for the Code :CS2033 Cannot create short filename ‘{0}’ when a long filename with the same short filename already exists
C# Compiler Error – CS0281 friend access was granted by ‘{0}’, but
In this blog post, you’ll learn more about the C# Compiler Error – CS0281 and the related message description C# Compiler Error Code CS0281 C# Compiler Description for the Code :CS0281 Friend access was granted by ‘{0}’, but the public key of the output assembly (‘{1}’) does not match that specified by the InternalsVisibleTo attribute in the granting assembly.
Auto-Property Initializers for Read-Only Properties in C# 6.0
In the earlier version of C# , if you want a read-only property , you would end up having a backing field which is initialized in the constructor. In C# 6.0 , the auto-implemented properties can be used to implement read-only property using the auto-property initializer as shown below. Auto-Property Initializers for Read-Only Properties in C# 6.0
C# Compiler Error – CS0757 a partial method may not have multiple i
In this blog post, you’ll learn more about the C# Compiler Error – CS0757 and the related message description C# Compiler Error Code CS0757 C# Compiler Description for the Code :CS0757 A partial method may not have multiple implementing declarations
C# Compiler Error – CS1597 semicolon after method or accessor block
In this blog post, you’ll learn more about the C# Compiler Error – CS1597 and the related message description C# Compiler Error Code CS1597 C# Compiler Description for the Code :CS1597 Semicolon after method or accessor block is not valid
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.