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…

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.

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 sort an array in C# ?

If you want to sort an array in C#.NET , you can use the Array.Sort method to do it. How to sort an array in C# ? Below is a sample code snippet demonstrating the usage of the Array.Sort method to sort an array in C#.