Category: C#

C# Compiler Warning – CS8634 the type ‘{2}’ cannot be used as type pa

In this blog post, you’ll learn more about the C# Compiler Warning – CS8634 and the related message description C# Compiler Warning Code CS8634 C# Compiler Description for the Code :CS8634 The type ‘{2}’ cannot be used as type parameter ‘{1}’ in the generic type or method ‘{0}’. Nullability of type argument ‘{2}’ doesn’t match ‘class’ constraint.

C# Compiler Warning – CS1066 the default value specified for paramete

In this blog post, you’ll learn more about the C# Compiler Warning – CS1066 and the related message description C# Compiler Warning Code CS1066 C# Compiler Description for the Code :CS1066 The default value specified for parameter ‘{0}’ will have no effect because it applies to a member that is used in contexts that do not allow optional arguments

Can we develop Windows Phone 8.1 App using HTML5 , JavaScript and CSS ?

Most of the developers with the web development skills might be keen to know if they can use their existing web development skills (HTML , JavaScript and CSS) to build Windows Phone 8.1 App . Can we develop Windows Phone 8.1 App using HTML5 , JavaScript and CSS ? Yes , you can develop Windows Phone 8.1 App using HTML5 , JavaScript and CSS ….

C# Program to display "Hello, World!"

Problem Write a program in C# to display “Hello, World!” on the screen. C# Program to display “Hello, World!” in Console Window. This is a simple C# program that displays “Hello, World!” on the console window. Output Hello, World!

How to Generate C# class from a XML file ?

Do you want to generate C# class from an XML file ?. You can use the xsd tool to do it. How to Generate C# class from a XML file ? 1. Just launch the Visual Studio Developer Command prompt from the Windows Start menu. 2. Type the command xsd and specify the path of the xml file. xsd d:\test\test.xml 3. This will create the…

How to Check Status of Current Thread in C# ?

This blog post will provide a simple tip on how you can find the status of the current thread in C# program. How to Check Status of Current Thread in C# ? The isAlive property can be used to check the current thread status in C#. First , get the instance of the current thread using the Thread.CurrentThread and then get the IsAlive property. Ensure…