Date | 2020-11-01 (1,475 days ago) |
---|---|
Downloads | 53K 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
">ChangelogAdded new ReflectionExtension
class (see 8739004
)
A previous release introduced static utility methods in the ReflectionUtils
class for working with enums and custom attributes. Similar extension methods are now available through the new ReflectionExtensions
class.
Added GetCustomAttribute
methods (see 8d20279
)
As an alternative to getting a collection of attributes, this method will return the first matching attribute - or null
if no matching attributes are found. The method is available as a static method in the ReflectionUtils
class and as an extension method in the ReflectionExtensions
class.
Added new IsAlphabetic
utility method to the StringUtils
class (see 0706caf
)
The methods returns whether an input string only consists of numbers and letters.
Added new Levenshtein
utility method to the StringUtils
class (see 79acc4f
)
The methods returns the Levenshtein distance between two strings. This can for instance be used to compare the relevance between the two input strings.
Added new IsNumeric
, IsAlphanumeric
and IsAlphabetic
extension methods (see 7257226
)
Similar to normal static methods, these methods can now also be used as extension methods on string
instances.
Added GetFloatArray
, GetSingleArray
and GetDoubleArray
extension methods to the JObjectExtensions
class (see a64d990
)
The new methods adds similar functionality as the existing ToInt32Array
and ToInt64Array
extension methods, but for different value types.
Introduced new TryParseBoolean
method in the StringUtils
class (see 225255a
)
Similar to the ParseBoolean
methods in the same class, these methods will check more more values than just True
and False
as the bool.TryParse
method does.
Introduced new string extension methods (see d80150f
)
The new extension methods include IsBoolean
, IsGuid
, IsInt32
and IsInt64
.
Introduced new class with NameValueCollection
extension methods (see 9c51348
)
The new class introduces extension methods such as GetBoolean
, TryGetBoolean
, GetInt32
, TryGetInt32
, TryGetValue
and ContainsKey
.
Added new methods to the EnumUtils
class (see c4eb3bc
)
The class already contains a number of generic methods for working with enum, but when the enum type is known at compile time. The new methods can be used when the enum type is only known at runtime.
Introduced new EnumArrayJsonConverter JSON converter (see 3ce2189
)
The converter can be used to deserialize multiple enum values. It does not support serializing/writing.