Date | 2021-06-18 (1,246 days ago) |
---|---|
Downloads | 71K downloads |
NuGet | View on NuGet |
GitHub | View on GitHub |
Target Frameworks | .NET Standard 1.1 .NET Standard 1.3 .NET Standard 2.0 .NET 4.5 .NET 4.6 .NET 4.7 .NET 4.8 |
#installation
">Installation#changelog
">ChangelogIntroduced new static methods and extension methods for working with enums (see 79a6f6b
)
This release introduces the ToEnum
and ToInt32
extension methods in the EnumExtensions class.
Introduced new ToStringArray
extension methods (see f0b1148
)
The first ToStringArray
method takes a string and splits it's into an array using a predefined list of separators. The second ToStringArray
method has a second parameter for specifying the separator to be used.
EnumUtils.TryParseEnum
shouldn't fail if the input is null
or empty (see 0952e0c
and #13
)
Passing null
or an empty string to the method shouldn't trigger an exception, but instead cause to method to return false
; indicating that the parsing failed.