You could return an anonymous object:
var result = SortedList.Select(x => new {
x.Value.MyProperty,
x.Value.AnotherProperty
});
Or if you want to use the result outside of the scope of the current method you could define a custom type:
IEnumerable<MyType> result = SortedList.Select(x => new MyType {
Prop1 = x.Value.MyProperty,
Prop2 = x.Value.AnotherProperty
});
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…