2012-07-12 4 views

답변

0
var results = 
    from x in shapes 
    orderby Math.Abs(45.403703 - x.Latitude), 
      Math.Abs(- 71.948638 - x.Longitude) 
    select x; 
2

무엇인가?

var result = shapes 
    .OrderBy(s => Math.Abs(45.403703 - s.Latitude)) 
    .ThenBy(s => Math.Abs(-71.948638 - s.Longitude));