Date | 2019-04-27 (2,029 days ago) |
---|---|
Downloads | 806 downloads |
NuGet | View on NuGet |
GitHub | View on GitHub |
Target Frameworks | .NET Standard 1.1 .NET Standard 1.3 .NET 4.5 .NET 4.6 .NET 4.7 |
#installation
">Installation#changelog
">ChangelogReplaced the Locations
namespace with a new Maps
namespace (see ca2e026
)
The classes and their names are changed a bit to be better suited for an upcoming Skybrud.Essentials.Maps package.
Specifically this means that the IPoint
interfaces replaces the old ILocation
interface. In a similar way, the Point
class replaces the EssentialsLocation
class. The old types still exist in the package, but are not marked as obsolete.
Added ParseBoolean
overloads to the StringUtils
class (see 45b89f4
)
The existing ParseBoolean
methods doesn't take a fallback parameter, and as such will always return false
if the input value doesn't match a known value for a boolean true
.
The two new overloads take a fallback
parameter which is returned if the input value doesn't explicitly match a known value for either a boolean true
or false
. This means that you can now do something like:
StringUtils.ParseBoolean("", true); // falls back to "true"
StringUtils.ParseBoolean("0", true); // returns "false" because "0" is a known value
Added ToBoolean
extension methods for string
(see 9a00350
)
Similar to the ParseBoolean
utility methods, a ToBoolean
extension method can now be called directly on a string
.
"".ToBoolean(); // falls back to "false"
"".ToBoolean(true); // falls back to "true"
"0".ToBoolean(true); // returns "false" because "0" is a known value