December 2009 - Posts

0
Comments

The Order Issue of XAML Attributes by Dixin

When programming Silverlight, it is neccessary to pay attention to the order of the XAML element’s attributes. Here is a simple example. Here is the ListBox in the XAML: < ListBox SelectedItem ="{ Binding SelectedItem }" ItemsSource ="...
Filed under: ,
0
Comments

Understanding C# 3.0 Features (8) Partial Method by Dixin

[ LINQ via C# series ] The is a very simple feature. From partial class to partial method Partial class is introduced by C# 2.0. With the partial keyword, the definition of one type is able to be divided into several files. For example, if creating a...
2
Comments

Understanding C# 3.0 Features (7) Query Expression by Dixin

[ LINQ via C# series ] This kind of code has been introduced again and again: var positive = from number in source where number > 0 orderby number descending select number.ToString( CultureInfo .InvariantCulture); This is called the query expression...
More Posts