RawUri.ToString Method

Namespace
Kampute.DocToolkit.Support
Assembly
  • Kampute.DocToolkit.dll

Definition

Returns the original string representation of the URI without any normalization or decoding of escape sequences.
public override string ToString()

Returns

string
The original string representation of the URI.

Remarks

This override ensures that all escape sequences in the original URI string are preserved exactly as provided, rather than being normalized or decoded as in the base Uri implementation.

This is particularly useful for preserving escaped sequences like %2D (dash) that would otherwise be automatically converted back to their character representations by the standard Uri class.