[Modify] Polish it

This commit is contained in:
sta 2017-01-26 15:53:47 +09:00
parent 4380eef0dd
commit 1617f7b5a6

View File

@ -1913,19 +1913,17 @@ namespace WebSocketSharp
/// Converts the specified <see cref="string"/> to a <see cref="Uri"/>. /// Converts the specified <see cref="string"/> to a <see cref="Uri"/>.
/// </summary> /// </summary>
/// <returns> /// <returns>
/// A <see cref="Uri"/> converted from <paramref name="uriString"/> or /// A <see cref="Uri"/> converted from <paramref name="value"/> or
/// <see langword="null"/> if the convert has failed. /// <see langword="null"/> if the convert has failed.
/// </returns> /// </returns>
/// <param name="uriString"> /// <param name="value">
/// A <see cref="string"/> to convert. /// A <see cref="string"/> to convert.
/// </param> /// </param>
public static Uri ToUri (this string uriString) public static Uri ToUri (this string value)
{ {
Uri ret; Uri ret;
Uri.TryCreate ( Uri.TryCreate (
uriString, value, value.MaybeUri () ? UriKind.Absolute : UriKind.Relative, out ret
uriString.MaybeUri () ? UriKind.Absolute : UriKind.Relative,
out ret
); );
return ret; return ret;