Category: C#

Fully Qualified Name in NameSpace

When accessing a class in C# , you use the fully qualifies Name of the class along with the NameSpace . The Fully Qualified Name indicates the logical hierarchy of the class . Below is the sample code that demonstrates the Fully Qualified Name namespace ConsoleApplication4 {     internal class Program     {         private static void Main(string[] args)         {             System.Console.WriteLine(“This is a…

Application States in Windows Phone 8

The Windows Phone 8 supports 2 different types of Application states Transient Persistent The transient state is stored at the application level and is discarded when the application is terminated. The developers can utilize the PhoneApplicationService.State and PhoneApplicationPage.State to store the transient state data. The Persistent State is generally saved to the isolated storage and is available when the application launches.

How to Connect PC to internet through Windows Phone’s device internet?

There are times when you want to connect your laptop / PC to internet via the Phone’s internet connection (GPRS/3G/4G). This may be needed especially when you are travelling a lot. You can use the internet connection of your Windows Phone 8(HTC Windows Phone 8X) to connect on your PC. How to Connect PC to internet through Windows Phone’s device internet? Launch the Settings App…

Can Mail be sent in Background in Windows Phone 8 using Launcher?

In one of the previous article, we explained about sending email in Windows Phone 8 using EmailComposeTask which invokes the UI for the user with the content of the email. When the user taps on the send button , the email is sent to the user. Can Mail be sent in Background in Windows Phone 8 using Launcher? Currently , the Windows Phone 8 SDK…

Using block for SQLConnection in C#

The using statement in C# can also be used to ensure that the resources are automatically cleaned before the using block exits. One of the criteria of the Using statement is that the items being created in the using statement must implement IDisposable interface. For example, you can use the using block to open the SQL Connection, retrieve the data. Using block for SQLConnection in…