Skip to content

Commit d91a45d

Browse files
watfordgnfThraka
authored andcommitted
Remove reference to InvalidOperationException (#2657)
Uri.OriginalString does not throw InvalidOperationException if a relative URI is used. This is true for .NET Core 3.0+ (at least) and the .NET Framework 4.8 (via ReferenceSource). Sources: https://github.com/dotnet/corefx/blob/e2b4dc93c9f9482b67f962106937d4fdd46f5673/src/System.Private.Uri/src/System/Uri.cs#L1145-L1153 https://referencesource.microsoft.com/#System/net/System/URI.cs,1234
1 parent bd0d06b commit d91a45d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

xml/System/Uri.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3561,7 +3561,6 @@ If you used an escaped string to construct this instance (for example, `"http://
35613561
35623562
]]></format>
35633563
</remarks>
3564-
<exception cref="T:System.InvalidOperationException">This instance represents a relative URI, and this property is valid only for absolute URIs.</exception>
35653564
</Docs>
35663565
</Member>
35673566
<Member MemberName="Parse">

0 commit comments

Comments
 (0)