-
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.
- Loading branch information
1 parent
9f3a7f3
commit 1dacf04
Showing
6 changed files
with
67 additions
and
93 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
namespace eXtensionSharp; | ||
|
||
public static class XGeoExtensions | ||
{ | ||
public static bool xValidateLatitude(this double latitude) | ||
{ | ||
if (latitude.xIsEmpty()) return false; | ||
|
||
if (latitude is < -90 or > 90) | ||
{ | ||
return false; | ||
} | ||
return true; | ||
} | ||
|
||
public static bool xValidateLongitude(this double longitude) | ||
{ | ||
if (longitude.xIsEmpty()) return false; | ||
|
||
if (longitude is < -180 or > 180) | ||
{ | ||
return false; | ||
} | ||
return true; | ||
} | ||
} |
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
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,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<packageSources> | ||
<clear /> | ||
<add key="github" value="https://nuget.pkg.github.com/nameofSEOKWONHONG/index.json" /> | ||
</packageSources> | ||
<packageSourceCredentials> | ||
<github> | ||
<add key="Username" value="nameofSEOKWONHONG" /> | ||
<add key="ClearTextPassword" value="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" /> | ||
</github> | ||
</packageSourceCredentials> | ||
</configuration> |