https://github.com/shuttle/shuttle.core.uris
Uri infrastructure utilities.
https://github.com/shuttle/shuttle.core.uris
Last synced: about 1 month ago
JSON representation
Uri infrastructure utilities.
- Host: GitHub
- URL: https://github.com/shuttle/shuttle.core.uris
- Owner: Shuttle
- License: bsd-3-clause
- Created: 2018-01-06T08:39:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-02-02T12:26:11.000Z (4 months ago)
- Last Synced: 2025-04-08T16:46:54.142Z (about 1 month ago)
- Language: C#
- Homepage:
- Size: 60.5 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Shuttle.Core.Uris
```
PM> Install-Package Shuttle.Core.Uris
```Provides simple `System.Uri` infrastructure components.
## QueryString
The `QueryString` inherits from `Dictionary` so all the dictionary functionality is available.
``` c#
public QueryString()
public QueryString(Uri uri) : this(uri, true)
public QueryString(Uri uri, bool escape)
```Instantiates the `QueryString` class from the given `System.Uri`. If `escape` is `true` the query string keys and values will be unescaped using `Uri.UnescapeDataString`.
``` c#
public new void Add(string key, string value)
public void AddUnescaped(string key, string value)
```Adds the key/value pair to the dictionary.