Category: C#

Single Line and Multi Line Comment Example in C#

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApplication1 { #region testregion public partial class Form1 : Form { // Single Line Comment Test public Form1() { InitializeComponent(); } /* This is a Multiline Comment test */ private void Form1_Load(object sender, EventArgs e) { Debug.WriteLine(“This is a test message”); } } #endregion…

Capabilities needed for Including Speech in the Windows Phone App

The Windows Phone 8 includes several features that supports Speech to be included in your Windows Phone App. In order to include the speech recognition features in the windows phone app, the developers must include 2 capabilities in their windows phone app in the WMAppManifest.xml app manifest file. ID_CAP_SPEECH_RECOGNITION ID_CAP_MICROPHONE Capabilities needed for Including Speech in the Windows Phone App To set these capabilities in…

What are Enumerations ?

Enumeration are like a group of integer constants where each of the symbols in the enumeration stands for an integer value starting from 0 (by default). You can create an Enum in C# with the keyword enum like the below example