Category: C#

How to Create Pivot Data using LINQ in C#?

Are you looking forward to create a pivot data using LINQ in C#, here we go. How to Create Pivot Data using LINQ in C#? Below is a sample code snippet that demonstrates the creation of the Pivot Data using LINQ and C#?

How to Get Necessary Information from the Exception in C# ?

There are times when you want to get the necessary information from the exception to identify the error better in C# . The Exception class contains various properties which can be used to retreive the necessary information from the error. Some of the properties includes Message – The Message property provides the brief description of error. Source – The Source property provides information about the…

Launch URL in Web Browser using LaunchUriAsync in Windows Phone 8

The Windows.System namespace provides the Launcher class which exposes the method LaunchUriAsync which can be used to launch the Web Browser and navigate to the external Uri as described below. Launch URL in Web Browser using LaunchUriAsync in Windows Phone 8 Below is a sample code snippet demonstrating how to Launch URL in Web Browser using LaunchUriAsync in Windows Phone 8

What are the Different Access Modifiers available in .NET?

There are 5 different access modifiers available in .NET Public – The members declared as public is accessible to all. Private – The members declared as private is accessible only within the same type. Internal – The members declared as internal is accessible only with in the same assembly. Protected – The members declared as protected is accessible to the same type or inherited type….

How to Get Directions in Map in Windows Phone 8 using C#?

Below is a sample code snippet that demonstrates How to Get Directions in Map in Windows Phone 8 using C#? The Start point is not specified for the MapsDirectionsTask object and hence takes the users current location. How to Get Directions in Map in Windows Phone 8 using C#?