1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-10 03:05:42 +00:00

(#15) Surround possible return values with <para>

This commit is contained in:
Oliver Booth 2021-03-07 12:04:46 +00:00
parent 01a2df21d4
commit 4ff9cb4405

View File

@ -13,11 +13,11 @@ namespace X10D.EndPointExtensions
/// </summary> /// </summary>
/// <param name="endPoint">The endpoint whose hostname to get.</param> /// <param name="endPoint">The endpoint whose hostname to get.</param>
/// <returns> /// <returns>
/// <see cref="IPEndPoint.Address" /> if <paramref name="endPoint" /> is <see cref="IPEndPoint" /> /// <para><see cref="IPEndPoint.Address" /> if <paramref name="endPoint" /> is <see cref="IPEndPoint" />.</para>
/// -or- /// -or-
/// <see cref="DnsEndPoint.Host" /> if <paramref name="endPoint" /> is <see cref="DnsEndPoint" /> /// <para><see cref="DnsEndPoint.Host" /> if <paramref name="endPoint" /> is <see cref="DnsEndPoint" />.</para>
/// -or- /// -or-
/// <see cref="string.Empty" /> otherwise. /// <para><see cref="string.Empty" /> otherwise.</para>
/// </returns> /// </returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)] [MethodImpl(MethodImplOptions.AggressiveInlining)]
public static string GetHost(this EndPoint endPoint) public static string GetHost(this EndPoint endPoint)
@ -35,11 +35,11 @@ namespace X10D.EndPointExtensions
/// </summary> /// </summary>
/// <param name="endPoint">The endpoint whose port number to get.</param> /// <param name="endPoint">The endpoint whose port number to get.</param>
/// <returns> /// <returns>
/// <see cref="IPEndPoint.Port" /> if <paramref name="endPoint" /> is <see cref="IPEndPoint" /> /// <para><see cref="IPEndPoint.Port" /> if <paramref name="endPoint" /> is <see cref="IPEndPoint" />.</para>
/// -or- /// -or-
/// <see cref="DnsEndPoint.Port" /> if <paramref name="endPoint" /> is <see cref="DnsEndPoint" /> /// <para><see cref="DnsEndPoint.Port" /> if <paramref name="endPoint" /> is <see cref="DnsEndPoint" />.</para>
/// -or- /// -or-
/// <c>0</c> otherwise. /// <para><c>0</c> otherwise.</para>
/// </returns> /// </returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)] [MethodImpl(MethodImplOptions.AggressiveInlining)]
public static int GetPort(this EndPoint endPoint) public static int GetPort(this EndPoint endPoint)