Category: C#

Using Web Search Grammars with SpeechRecognizerUI in Windows Phone

The built-in dictation grammar is used for the SpeechRecognizerUI when the grammar is not added to the grammar set of the SpeechRecognizerUI object. Below is a sample code snippet demonstrating how to set and use the Web Search Grammars for recognizing speech. Using Web Search Grammars with SpeechRecognizerUI in Windows Phone

C# Compiler Error – CS8377 the type ‘{2}’ must be a non-nullable va

In this blog post, you’ll learn more about the C# Compiler Error – CS8377 and the related message description C# Compiler Error Code CS8377 C# Compiler Description for the Code :CS8377 The type ‘{2}’ must be a non-nullable value type, along with all fields at any level of nesting, in order to use it as parameter ‘{1}’ in the generic type or method ‘{0}’

How to Declare an Enumeration with Explicit Values in C# ?

There are times when you want to have a specific values to the enumeration to the enum items . For example , if you need to match particular values from the database or from a web service etc. How to Declare an Enumeration with Explicit Values in C# ? Below is a sample code snippet that demonstrates how to declare an enum with explicit values…

C# Program to swap two numbers without using temporary variable

Problem Write a program in Visual CSharp to swap two numbers using temporary variable and display the result in the console window. How to swap two numbers in C# without using temporary variable ? Output Abundantcode.com coding sample Enter the First Number : 45 Enter the Second Number : 67 First Number is 67 Second Number is 45

Programming and working under pressure.

There are times when you see that the programming team might end up working long hours and even stretch to work till 4-5 AM in the morning. There are also times when the team gets the job done quickly without much stress. Having a healthy work pressure can be good but too much of pressure is not. This may be case when someone run their own…

C# Compiler Error – CS1068 the type name ‘{0}’ could not be found i

In this blog post, you’ll learn more about the C# Compiler Error – CS1068 and the related message description C# Compiler Error Code CS1068 C# Compiler Description for the Code :CS1068 The type name ‘{0}’ could not be found in the global namespace. This type has been forwarded to assembly ‘{1}’ Consider adding a reference to that assembly.