Skip to content

Commit b72fba9

Browse files
BenjaminAbtgfoidl
andauthored
Apply suggestions from code review
Co-authored-by: Günther Foidl <gue@korporal.at>
1 parent 5e4dd07 commit b72fba9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/MyCSharp.HttpUserAgentParser/HttpUserAgentInformationExtensions.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,24 @@ namespace MyCSharp.HttpUserAgentParser
88
public static class HttpUserAgentInformationExtensions
99
{
1010
/// <summary>
11-
/// returns true <typeparam name="userAgent.Type"></typeparam> is of <param name="type">type</param>
11+
/// Tests if <paramref name="userAgent"/> is of <paramref name="type" />
1212
/// </summary>
1313
public static bool IsType(this in HttpUserAgentInformation userAgent, HttpUserAgentType type) => userAgent.Type == type;
1414

1515
/// <summary>
16-
/// returns true <see cref="HttpUserAgentInformation.Type"/> is a robot
16+
/// Tests if <paramref name="userAgent"/> is of type <see cref="HttpUserAgentType.Robot"/>
1717
/// </summary>
1818
public static bool IsRobot(this in HttpUserAgentInformation userAgent) => IsType(userAgent, HttpUserAgentType.Robot);
1919

2020
/// <summary>
21-
/// returns true <see cref="HttpUserAgentInformation.Type"/> is a browser
21+
/// Tests if <paramref name="userAgent"/> is of type <see cref="HttpUserAgentType.Browser"/>
2222
/// </summary>
2323
public static bool IsBrowser(this in HttpUserAgentInformation userAgent) => IsType(userAgent, HttpUserAgentType.Browser);
2424

2525
/// <summary>
26-
/// returns true if agent is a mobile device
26+
/// returns <c>true</c> if agent is a mobile device
2727
/// </summary>
28-
/// <remarks>checks if <seealso cref="HttpUserAgentInformation.MobileDeviceType"/> is null</remarks>
28+
/// <remarks>checks if <see cref="HttpUserAgentInformation.MobileDeviceType"/> is null</remarks>
2929
public static bool IsMobile(this in HttpUserAgentInformation userAgent) => userAgent.MobileDeviceType is not null;
3030
}
3131
}

src/MyCSharp.HttpUserAgentParser/HttpUserAgentPlatformInformation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace MyCSharp.HttpUserAgentParser
1010
public readonly struct HttpUserAgentPlatformInformation
1111
{
1212
/// <summary>
13-
/// Regex to match
13+
/// Regex-pattern that matches this user agent string
1414
/// </summary>
1515
public Regex Regex { get; }
1616

0 commit comments

Comments
 (0)