Category: C#

Creating a Button in UWP app by specifying the namespace as one of the attributes of button

You can add a button in your Universal Windows Platform (UWP) app by simply adding the Button tag in the Xaml page. You will notice that the Namespace “http://schemas.microsoft.com/winfx/2006/xaml/presentation” is already referred in the Page element. You can add a button in the UWP app page by specifying the namespace as one of the attributes of button instead of specifying it at the page level….

How to Catch the Unhandled Exceptions in C# ?

Are you looking for a way to catch the unhandled exception and perform the operation like logging etc. before the application terminates ?. Below is a sample code snippet that demonstrates how to do it in Console Application. How to Catch the Unhandled Exceptions in C# ?

C# Compiler Warning – CS8624 argument of type ‘{0}’ cannot be used as

In this blog post, you’ll learn more about the C# Compiler Warning – CS8624 and the related message description C# Compiler Warning Code CS8624 C# Compiler Description for the Code :CS8624 Argument of type ‘{0}’ cannot be used as an output of type ‘{1}’ for parameter ‘{2}’ in ‘{3}’ due to differences in the nullability of reference types.