Skip to content

v1.0.17

Compare
Choose a tag to compare
@abjerner abjerner released this 24 Mar 21:57
· 56 commits to v1/main since this release

Installation

Changelog

  • Introduced new TryGet{Type} extension methods for IHttpQueryString (see #1 and 5d28f87)
    This release introduces a number of extension methods IHttpQueryString for attempting to get values in different types - eg. TryGetBoolean, TryGetInt32and similar.

  • Added null checks to the HttpQueryString.Add and HttpQueryString.Set methods (see c9fc87f)
    The methods now properly handle when being passed a null value.

  • Added Parse methods to the HttpQueryString class, obsoleting the existing ParseQueryString methods (see fc3b31d)
    Having QueryString in the method names feels a bit redundant, so the two ParseQueryString methods have now been marked as obsolete, and two Parse methods have been added to replace them.

  • Added TryParse methods to the HttpQueryString class (see 924dbdb)
    As the Parse methods may fail if passed an invalid string representation of a query string, so the two TryParse methods in this release encapsulates any error handling should the parsing fail.