I am using .NET 3.5.
Both solutions which are described here (the property "genericUriParserOptions"
in config file and constructor parameter "dontEscape"
) don't work for .NET 3.5.
I want that URI
constructor doesn't escape (means I want to have escaped URL
parts) anything. Now I can't use configuration file with
genericUriParserOptions="DontUnescapePathDotsAndSlashes"
bacause this property is only available for .NET 4.0. But I can't also use "dontEscape"
parameter in URI
constructor because the constructor is obsolete in .NET 3.5 and is always false
.
How I can create an URI
with escaped string in .NET 3.5?