Category: C#
How to Use SpeechRecognizer in Windows Phone App using C#?
Below is a sample code snippet demonstrating how to use the SpeechRecognizerUI in your Windows Phone app using C#. Note that by default the speech recognizer API uses the default speech grammar accessed via the Microsoft cloud service and hence requires the network connection to be available for the below code snippet to work. How to Use SpeechRecognizer in Windows Phone App using C#? When…
What is Jagged Arrays in C# ?
The Jagged Array in simple terms is an array of array . Below is an example of the Jagged Array in C#. What is Jagged Arrays in C# ?
C# Compiler Error – CS0825 the contextual keyword ‘var’ may only ap
In this blog post, you’ll learn more about the C# Compiler Error – CS0825 and the related message description C# Compiler Error Code CS0825 C# Compiler Description for the Code :CS0825 The contextual keyword ‘var’ may only appear within a local variable declaration or in script code
C# Compiler Error – CS8174 a declaration of a by-reference variable
In this blog post, you’ll learn more about the C# Compiler Error – CS8174 and the related message description C# Compiler Error Code CS8174 C# Compiler Description for the Code :CS8174 A declaration of a by-reference variable must have an initializer
How to get the Number of Elements in an Array in C# ?
You can use the Length property of the array to return the number of elements in it. Note that once the array is created , you cannot change its length. How to get the Number of Elements in an Array in C# ? Here’s a code snippet demonstrating the usage of the Length property of the array to get the number of elements.
Can the Internet Explorer Share Picker be extended in Windows Phone 8 ?
There are times when one might want to implement the sharing of links from the Windows Phone 8 Internet Explorer via the Share Picker. similar to the Photo App Share Picker. Is it possible to extend Internet Explorer’s share picker on Windows Phone 8 ? Unfortunately , No . It is not possible to extend the Share Picker in Windows Phone (IE Mobile) currently.
C# Compiler Error – CS1983 the return type of an async method must
In this blog post, you’ll learn more about the C# Compiler Error – CS1983 and the related message description C# Compiler Error Code CS1983 C# Compiler Description for the Code :CS1983 The return type of an async method must be void, Task, Task, a task-like type, IAsyncEnumerable, or IAsyncEnumerator
How to Get the Maximum value from a List of String using LINQ in C# ?
In one of the previous article , we explained how to get the maximum value from a list of integer using LINQ query in C# . What happens when the column is a string instead of integer ?. Below are 2 possibilities on how to get the maximum value from a list of string. How to Get the Maximum value from a List of String…
How to repeat the characters X times in C# ?
You can use the string constructor and pass the character that you wish to be present in it. The string constructor also takes the second parameter to specify the number of times the character to be repeated. How to repeat the characters X times in C# ? Below is a sample code snippet demonstrating how the string constructor can be used to repeat * 4…
How to Get the Max Value from a List of Integer using Lambda Expression in C#?
Below is a sample code snippet demonstrating the usage of Lambda expression to get the Max value from a list of integer in C#. How to Get the Max Value from a List of Integer using Lambda Expression in C#?
C# Compiler Error – CS0833 an anonymous type cannot have multiple p
In this blog post, you’ll learn more about the C# Compiler Error – CS0833 and the related message description C# Compiler Error Code CS0833 C# Compiler Description for the Code :CS0833 An anonymous type cannot have multiple properties with the same name
C# Compiler Error – CS1978 cannot use an expression of type ‘{0}’ a
In this blog post, you’ll learn more about the C# Compiler Error – CS1978 and the related message description C# Compiler Error Code CS1978 C# Compiler Description for the Code :CS1978 Cannot use an expression of type ‘{0}’ as an argument to a dynamically dispatched operation.