void OrderTest()
{
//this.player.Source = new Uri("ms-appx:///Assets/recit24bit.flac", UriKind.Absolute);
//this.player.Source = new Uri("ms-appx:///Assets/Stellardrone - Aurora.mp3", UriKind.Absolute);
var list = new List<MyClass>()
{
new MyClass { strValue = "s1", dobValue = 1},
new MyClass { strValue = "a2", dobValue = 4},
new MyClass { strValue = "d3", dobValue = 1.5},
new MyClass { strValue = "g4", dobValue = 1.9},
new MyClass { strValue = "asdasd", dobValue = 9.7},
new MyClass { strValue = "fefes1", dobValue = 5.7},
};
var ordered = list.OrderBy(a => a.dobValue);
}
model:
public class MyClass
{
public string strValue { get; set; }
public double dobValue { get; set; }
}
No comments:
Post a Comment