Category: C#
How to run the Universal App outside Visual Studio in Windows 10 ?
The Windows Store App built using the Universal App template in Visual Studio 2013 produces the .exe file which is available in the bin folder but when you double click on this exe folder , you will get an error message stating that “This application can only run in the context of an app container.” How to run the Universal App outside Visual Studio in…
C# Compiler Warning – CS8887 use of unassigned local variable ‘{0}’
In this blog post, you’ll learn more about the C# Compiler Warning – CS8887 and the related message description C# Compiler Warning Code CS8887 C# Compiler Description for the Code :CS8887 Use of unassigned local variable ‘{0}’
C# Compiler Error – CS1107 a parameter can only have one ‘{0}’ modi
In this blog post, you’ll learn more about the C# Compiler Error – CS1107 and the related message description C# Compiler Error Code CS1107 C# Compiler Description for the Code :CS1107 A parameter can only have one ‘{0}’ modifier
C# Compiler Error – CS8627 a nullable type parameter must be known
In this blog post, you’ll learn more about the C# Compiler Error – CS8627 and the related message description C# Compiler Error Code CS8627 C# Compiler Description for the Code :CS8627 A nullable type parameter must be known to be a value type or non-nullable reference type unless language version ‘{0}’ or greater is used. Consider changing the language version or adding a ‘class’, ‘struct’,…
C# Compiler Error – CS8650 it is not legal to use nullable referenc
In this blog post, you’ll learn more about the C# Compiler Error – CS8650 and the related message description C# Compiler Error Code CS8650 C# Compiler Description for the Code :CS8650 It is not legal to use nullable reference type ‘{0}?’ in an is-type expression; use the underlying type ‘{0}’ instead.
C# Compiler Error – CS8908 the type ‘{0}’ may not be used for a fie
In this blog post, you’ll learn more about the C# Compiler Error – CS8908 and the related message description C# Compiler Error Code CS8908 C# Compiler Description for the Code :CS8908 The type ‘{0}’ may not be used for a field of a record.
C# Compiler Warning – CS8029 local name ‘{0}’ is too long for pdb. co
In this blog post, you’ll learn more about the C# Compiler Warning – CS8029 and the related message description C# Compiler Warning Code CS8029 C# Compiler Description for the Code :CS8029 Local name ‘{0}’ is too long for PDB. Consider shortening or compiling without /debug.
How to add entries to ResourceDirectory in Windows 10 UWP Apps using C# ?
Below is a sample code snippet demonstrating how the entries can be added to the ResourceDirectory in Windows 10 UWP application using C#. How to add entries to ResourceDirectory in Windows 10 UWP Apps using C# ?
How to get last four characters from a string in C#?
This post will provide a simple tip showing how you can get the last 4 characters from a string in C#. How to get last four characters from a string in C#? Assume that you have a string that contains the value “CodersEditor.com” and you wish to get .com from the string and display it. Below is a sample code snippet demonstrating how you can…
C# Compiler Error – CS4020 the callerlinenumberattribute may only b
In this blog post, you’ll learn more about the C# Compiler Error – CS4020 and the related message description C# Compiler Error Code CS4020 C# Compiler Description for the Code :CS4020 The CallerLineNumberAttribute may only be applied to parameters with default values
C# Compiler Error – CS0720 ‘{0}’: cannot declare indexers in a stat
In this blog post, you’ll learn more about the C# Compiler Error – CS0720 and the related message description C# Compiler Error Code CS0720 C# Compiler Description for the Code :CS0720 ‘{0}’: cannot declare indexers in a static class
C# Compiler Error – CS8149 by-reference returns may only be used in
In this blog post, you’ll learn more about the C# Compiler Error – CS8149 and the related message description C# Compiler Error Code CS8149 C# Compiler Description for the Code :CS8149 By-reference returns may only be used in methods that return by reference