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

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…