Sort a list of positions according to their distances from a sort
center.
Namespace: Stemmer.Cvb.Collections.Generic
Assembly: Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax
public static IEnumerable<TObject> SortByDistance<TObject>( this IEnumerable<TObject> coll, IPosition sortCenter, SortDirection sortDirection ) where TObject : IPosition
Parameters
- coll
- Type: System.Collections.GenericIEnumerableTObject
collection to be sorted - sortCenter
- Type: Stemmer.CvbIPosition
center around which to sort - sortDirection
- Type: Stemmer.Cvb.Collections.GenericSortDirection
sort direction
Type Parameters
- TObject
- type of object to be sorted
Return Value
Type: IEnumerableTObject[Missing <returns> documentation for "M:Stemmer.Cvb.Collections.Generic.CollectionExtensions.SortByDistance``1(System.Collections.Generic.IEnumerable{``0},Stemmer.Cvb.IPosition,Stemmer.Cvb.Collections.Generic.SortDirection)"]
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableTObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).See Also