Пример #1
0
 public static DocumentUri From(DocumentUriComponents components) =>
 new DocumentUri(
     components.Scheme ?? string.Empty,
     components.Authority ?? string.Empty,
     components.Path ?? string.Empty,
     components.Query ?? string.Empty,
     components.Fragment ?? string.Empty
     );
Пример #2
0
 public DocumentUri With(DocumentUriComponents components) =>
 new DocumentUri(
     components.Scheme ?? Scheme,
     components.Authority ?? Authority,
     components.Path ?? Path,
     components.Query ?? Query,
     components.Fragment ?? Fragment
     );