saritasa-nest / saritasa-dotnet-tools

Development Tools For Company'S .NET Projects.
BSD 2-Clause "Simplified" License
27 stars 13 forks source link

Remove SortOrder enum, use System.ComponentModel.ListSortDirection #44

Closed dermeister0 closed 6 years ago

dermeister0 commented 6 years ago

https://github.com/Saritasa/SaritasaTools/blob/fb247f15a449f280260d179ffe2fcdff1ce73969/src/Saritasa.Tools.Common/Utils/SortOrder.cs#L4

https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.listsortdirection?view=netframework-4.7.1

krasninja commented 6 years ago

It seems it is not available for .net standard < 2.0 : https://docs.microsoft.com/ru-ru/dotnet/api/system.componentmodel.listsortdirection?view=netframework-4.7.1&viewFallbackFrom=netstandard-1.6

In this case we have to limit to .net standard 2.0 (or make shim).

krasninja commented 6 years ago

Planned for next release: https://github.com/Saritasa/SaritasaTools/commit/a02876ea901e9ff14fdc7fcacfd256d79de03de2