Tag: c#

DebuggerDisplay Attribute in C#

The DebuggerDisplay is useful to quickly view the customized output of a class which in turn can display more meangful text during debugging. Below is an example. Assume the class Student contains the following properties …

Merge 2 DataTables in C# and ASP.NET

The Merge() method of the datatable is used to Merge a datatable (second datatable) and stores the result to the first datatable. For example , assume the following datatables are present EmployeeDataTable1 and EmployeeDataTable2 . …

How to cast integer to Enum in C# ?

This is a really simple one . Below is a simple example of an enum called “Designation” defined with the values Trainee,SoftwareEngineer,Architect. enum Designation { Trainee, SoftwareEngineer, Architect } We can cast the integer value …

Mono 3.0 Released

A new version of Mono v3.0 is released and is now available for download from the mono project website. What is Mono? Mono is an open source implementation of the .NET Framework and is available …

What is Property Value Inheritance – XAML ?

When you created a new Windows Phone App , you would have noticed the following in the MainPage.XAML’s¬†PhoneApplicationPage¬† element . FontFamily="{StaticResource PhoneFontFamilyNormal}" FontSize="{StaticResource PhoneFontSizeNormal}" Foreground="{StaticResource PhoneForegroundBrush}" The above sample code is an example of the …

Namespace Alias Qualifier in C#

The Namespace in C# has the following advantages It lets the developers to organise their code / classes Provides a better readability of the code and helps your understand how the code structure is formed …