This repository has been archived by the owner on Jun 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Comparator
- Loading branch information
Showing
4 changed files
with
57 additions
and
8 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
IEnumerableExtenders/Converters/FilterPandaBaseConverter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using BaseConverter; | ||
|
||
namespace PandaTech.IEnumerableFilters.Converters; | ||
|
||
public class FilterPandaBaseConverter: IConverter<string, long> | ||
{ | ||
public long ConvertTo(string from) | ||
{ | ||
return PandaBaseConverter.Base36ToBase10(from)!.Value; | ||
} | ||
|
||
public string ConvertFrom(long from) | ||
{ | ||
return PandaBaseConverter.Base10ToBase36(from)!; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters