updating inline <code> to <c>
authorEddy Nakamura <ednakamu@microsoft.com>
Thu, 5 Dec 2019 11:07:00 +0000 (08:07 -0300)
committerEddy Nakamura <ednakamu@microsoft.com>
Thu, 5 Dec 2019 11:07:00 +0000 (08:07 -0300)
Commit migrated from https://github.com/dotnet/Extensions/commit/e9515b009649cad0b76243b031137b3aa010a3ef

src/libraries/Microsoft.Extensions.DependencyInjection/src/ServiceLookup/ServiceCacheKey.cs
src/libraries/Microsoft.Extensions.DependencyInjection/src/ServiceProviderOptions.cs
src/libraries/Microsoft.Extensions.Logging.Abstractions/src/EventId.cs
src/libraries/Microsoft.Extensions.Logging.Abstractions/src/LoggerExtensions.cs
src/libraries/Microsoft.Extensions.Logging.Console/src/ConsoleLoggerOptions.cs
src/libraries/Microsoft.Extensions.Primitives/src/StringSegment.cs

index 2a81e7b..2228f49 100644 (file)
@@ -15,7 +15,7 @@ namespace Microsoft.Extensions.DependencyInjection.ServiceLookup
         public Type Type { get; }
 
         /// <summary>
-        /// Reverse index of the service when resolved in <code>IEnumerable&lt;Type&gt;</code> where default instance gets slot 0.
+        /// Reverse index of the service when resolved in <c>IEnumerable&lt;Type&gt;</c> where default instance gets slot 0.
         /// For example for service collection
         ///  IService Impl1
         ///  IService Impl2
index c137d80..adc9156 100644 (file)
@@ -19,7 +19,7 @@ namespace Microsoft.Extensions.DependencyInjection
         public bool ValidateScopes { get; set; }
 
         /// <summary>
-        /// <c>true</c> to perform check verifying that all services can be created during <code>BuildServiceProvider</code> call; otherwise <c>false</c>. Defaults to <c>false</c>.
+        /// <c>true</c> to perform check verifying that all services can be created during <c>BuildServiceProvider</c> call; otherwise <c>false</c>. Defaults to <c>false</c>.
         /// NOTE: this check doesn't verify open generics services.
         /// </summary>
         public bool ValidateOnBuild { get; set; }
index 4d7a7b8..77928a4 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (c) .NET Foundation. All rights reserved.
+// Copyright (c) .NET Foundation. All rights reserved.
 // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
 
 namespace Microsoft.Extensions.Logging
@@ -22,7 +22,7 @@ namespace Microsoft.Extensions.Logging
         /// </summary>
         /// <param name="left">The first <see cref="EventId"/>.</param>
         /// <param name="right">The second <see cref="EventId"/>.</param>
-        /// <returns><code>true</code> if the objects are equal.</returns>
+        /// <returns><c>true</c> if the objects are equal.</returns>
         public static bool operator ==(EventId left, EventId right)
         {
             return left.Equals(right);
@@ -33,7 +33,7 @@ namespace Microsoft.Extensions.Logging
         /// </summary>
         /// <param name="left">The first <see cref="EventId"/>.</param>
         /// <param name="right">The second <see cref="EventId"/>.</param>
-        /// <returns><code>true</code> if the objects are not equal.</returns>
+        /// <returns><c>true</c> if the objects are not equal.</returns>
         public static bool operator !=(EventId left, EventId right)
         {
             return !left.Equals(right);
@@ -70,7 +70,7 @@ namespace Microsoft.Extensions.Logging
         /// Indicates whether the current object is equal to another object of the same type. Two events are equal if they have the same id.
         /// </summary>
         /// <param name="other">An object to compare with this object.</param>
-        /// <returns><code>true</code> if the current object is equal to the other parameter; otherwise, <code>false</code>.</returns>
+        /// <returns><c>true</c> if the current object is equal to the other parameter; otherwise, <c>false</c>.</returns>
         public bool Equals(EventId other)
         {
             return Id == other.Id;
index 755317a..f35bbd0 100644 (file)
@@ -20,7 +20,7 @@ namespace Microsoft.Extensions.Logging
         /// <param name="logger">The <see cref="ILogger"/> to write to.</param>
         /// <param name="eventId">The event id associated with the log.</param>
         /// <param name="exception">The exception to log.</param>
-        /// <param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
+        /// <param name="message">Format string of the log message in message template format. Example: <c>"User {User} logged in from {Address}"</c></param>
         /// <param name="args">An object array that contains zero or more objects to format.</param>
         /// <example>logger.LogDebug(0, exception, "Error while processing request from {Address}", address)</example>
         public static void LogDebug(this ILogger logger, EventId eventId, Exception exception, string message, params object[] args)
@@ -33,7 +33,7 @@ namespace Microsoft.Extensions.Logging
         /// </summary>
         /// <param name="logger">The <see cref="ILogger"/> to write to.</param>
         /// <param name="eventId">The event id associated with the log.</param>
-        /// <param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
+        /// <param name="message">Format string of the log message in message template format. Example: <c>"User {User} logged in from {Address}"</c></param>
         /// <param name="args">An object array that contains zero or more objects to format.</param>
         /// <example>logger.LogDebug(0, "Processing request from {Address}", address)</example>
         public static void LogDebug(this ILogger logger, EventId eventId, string message, params object[] args)
@@ -46,7 +46,7 @@ namespace Microsoft.Extensions.Logging
         /// </summary>
         /// <param name="logger">The <see cref="ILogger"/> to write to.</param>
         /// <param name="exception">The exception to log.</param>
-        /// <param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
+        /// <param name="message">Format string of the log message in message template format. Example: <c>"User {User} logged in from {Address}"</c></param>
         /// <param name="args">An object array that contains zero or more objects to format.</param>
         /// <example>logger.LogDebug(exception, "Error while processing request from {Address}", address)</example>
         public static void LogDebug(this ILogger logger, Exception exception, string message, params object[] args)
@@ -58,7 +58,7 @@ namespace Microsoft.Extensions.Logging
         /// Formats and writes a debug log message.
         /// </summary>
         /// <param name="logger">The <see cref="ILogger"/> to write to.</param>
-        /// <param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
+        /// <param name="message">Format string of the log message in message template format. Example: <c>"User {User} logged in from {Address}"</c></param>
         /// <param name="args">An object array that contains zero or more objects to format.</param>
         /// <example>logger.LogDebug("Processing request from {Address}", address)</example>
         public static void LogDebug(this ILogger logger, string message, params object[] args)
@@ -74,7 +74,7 @@ namespace Microsoft.Extensions.Logging
         /// <param name="logger">The <see cref="ILogger"/> to write to.</param>
         /// <param name="eventId">The event id associated with the log.</param>
         /// <param name="exception">The exception to log.</param>
-        /// <param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
+        /// <param name="message">Format string of the log message in message template format. Example: <c>"User {User} logged in from {Address}"</c></param>
         /// <param name="args">An object array that contains zero or more objects to format.</param>
         /// <example>logger.LogTrace(0, exception, "Error while processing request from {Address}", address)</example>
         public static void LogTrace(this ILogger logger, EventId eventId, Exception exception, string message, params object[] args)
@@ -87,7 +87,7 @@ namespace Microsoft.Extensions.Logging
         /// </summary>
         /// <param name="logger">The <see cref="ILogger"/> to write to.</param>
         /// <param name="eventId">The event id associated with the log.</param>
-        /// <param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
+        /// <param name="message">Format string of the log message in message template format. Example: <c>"User {User} logged in from {Address}"</c></param>
         /// <param name="args">An object array that contains zero or more objects to format.</param>
         /// <example>logger.LogTrace(0, "Processing request from {Address}", address)</example>
         public static void LogTrace(this ILogger logger, EventId eventId, string message, params object[] args)
@@ -100,7 +100,7 @@ namespace Microsoft.Extensions.Logging
         /// </summary>
         /// <param name="logger">The <see cref="ILogger"/> to write to.</param>
         /// <param name="exception">The exception to log.</param>
-        /// <param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
+        /// <param name="message">Format string of the log message in message template format. Example: <c>"User {User} logged in from {Address}"</c></param>
         /// <param name="args">An object array that contains zero or more objects to format.</param>
         /// <example>logger.LogTrace(exception, "Error while processing request from {Address}", address)</example>
         public static void LogTrace(this ILogger logger, Exception exception, string message, params object[] args)
@@ -112,7 +112,7 @@ namespace Microsoft.Extensions.Logging
         /// Formats and writes a trace log message.
         /// </summary>
         /// <param name="logger">The <see cref="ILogger"/> to write to.</param>
-        /// <param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
+        /// <param name="message">Format string of the log message in message template format. Example: <c>"User {User} logged in from {Address}"</c></param>
         /// <param name="args">An object array that contains zero or more objects to format.</param>
         /// <example>logger.LogTrace("Processing request from {Address}", address)</example>
         public static void LogTrace(this ILogger logger, string message, params object[] args)
@@ -128,7 +128,7 @@ namespace Microsoft.Extensions.Logging
         /// <param name="logger">The <see cref="ILogger"/> to write to.</param>
         /// <param name="eventId">The event id associated with the log.</param>
         /// <param name="exception">The exception to log.</param>
-        /// <param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
+        /// <param name="message">Format string of the log message in message template format. Example: <c>"User {User} logged in from {Address}"</c></param>
         /// <param name="args">An object array that contains zero or more objects to format.</param>
         /// <example>logger.LogInformation(0, exception, "Error while processing request from {Address}", address)</example>
         public static void LogInformation(this ILogger logger, EventId eventId, Exception exception, string message, params object[] args)
@@ -141,7 +141,7 @@ namespace Microsoft.Extensions.Logging
         /// </summary>
         /// <param name="logger">The <see cref="ILogger"/> to write to.</param>
         /// <param name="eventId">The event id associated with the log.</param>
-        /// <param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
+        /// <param name="message">Format string of the log message in message template format. Example: <c>"User {User} logged in from {Address}"</c></param>
         /// <param name="args">An object array that contains zero or more objects to format.</param>
         /// <example>logger.LogInformation(0, "Processing request from {Address}", address)</example>
         public static void LogInformation(this ILogger logger, EventId eventId, string message, params object[] args)
@@ -154,7 +154,7 @@ namespace Microsoft.Extensions.Logging
         /// </summary>
         /// <param name="logger">The <see cref="ILogger"/> to write to.</param>
         /// <param name="exception">The exception to log.</param>
-        /// <param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
+        /// <param name="message">Format string of the log message in message template format. Example: <c>"User {User} logged in from {Address}"</c></param>
         /// <param name="args">An object array that contains zero or more objects to format.</param>
         /// <example>logger.LogInformation(exception, "Error while processing request from {Address}", address)</example>
         public static void LogInformation(this ILogger logger, Exception exception, string message, params object[] args)
@@ -166,7 +166,7 @@ namespace Microsoft.Extensions.Logging
         /// Formats and writes an informational log message.
         /// </summary>
         /// <param name="logger">The <see cref="ILogger"/> to write to.</param>
-        /// <param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
+        /// <param name="message">Format string of the log message in message template format. Example: <c>"User {User} logged in from {Address}"</c></param>
         /// <param name="args">An object array that contains zero or more objects to format.</param>
         /// <example>logger.LogInformation("Processing request from {Address}", address)</example>
         public static void LogInformation(this ILogger logger, string message, params object[] args)
@@ -182,7 +182,7 @@ namespace Microsoft.Extensions.Logging
         /// <param name="logger">The <see cref="ILogger"/> to write to.</param>
         /// <param name="eventId">The event id associated with the log.</param>
         /// <param name="exception">The exception to log.</param>
-        /// <param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
+        /// <param name="message">Format string of the log message in message template format. Example: <c>"User {User} logged in from {Address}"</c></param>
         /// <param name="args">An object array that contains zero or more objects to format.</param>
         /// <example>logger.LogWarning(0, exception, "Error while processing request from {Address}", address)</example>
         public static void LogWarning(this ILogger logger, EventId eventId, Exception exception, string message, params object[] args)
@@ -195,7 +195,7 @@ namespace Microsoft.Extensions.Logging
         /// </summary>
         /// <param name="logger">The <see cref="ILogger"/> to write to.</param>
         /// <param name="eventId">The event id associated with the log.</param>
-        /// <param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
+        /// <param name="message">Format string of the log message in message template format. Example: <c>"User {User} logged in from {Address}"</c></param>
         /// <param name="args">An object array that contains zero or more objects to format.</param>
         /// <example>logger.LogWarning(0, "Processing request from {Address}", address)</example>
         public static void LogWarning(this ILogger logger, EventId eventId, string message, params object[] args)
@@ -208,7 +208,7 @@ namespace Microsoft.Extensions.Logging
         /// </summary>
         /// <param name="logger">The <see cref="ILogger"/> to write to.</param>
         /// <param name="exception">The exception to log.</param>
-        /// <param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
+        /// <param name="message">Format string of the log message in message template format. Example: <c>"User {User} logged in from {Address}"</c></param>
         /// <param name="args">An object array that contains zero or more objects to format.</param>
         /// <example>logger.LogWarning(exception, "Error while processing request from {Address}", address)</example>
         public static void LogWarning(this ILogger logger, Exception exception, string message, params object[] args)
@@ -220,7 +220,7 @@ namespace Microsoft.Extensions.Logging
         /// Formats and writes a warning log message.
         /// </summary>
         /// <param name="logger">The <see cref="ILogger"/> to write to.</param>
-        /// <param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
+        /// <param name="message">Format string of the log message in message template format. Example: <c>"User {User} logged in from {Address}"</c></param>
         /// <param name="args">An object array that contains zero or more objects to format.</param>
         /// <example>logger.LogWarning("Processing request from {Address}", address)</example>
         public static void LogWarning(this ILogger logger, string message, params object[] args)
@@ -236,7 +236,7 @@ namespace Microsoft.Extensions.Logging
         /// <param name="logger">The <see cref="ILogger"/> to write to.</param>
         /// <param name="eventId">The event id associated with the log.</param>
         /// <param name="exception">The exception to log.</param>
-        /// <param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
+        /// <param name="message">Format string of the log message in message template format. Example: <c>"User {User} logged in from {Address}"</c></param>
         /// <param name="args">An object array that contains zero or more objects to format.</param>
         /// <example>logger.LogError(0, exception, "Error while processing request from {Address}", address)</example>
         public static void LogError(this ILogger logger, EventId eventId, Exception exception, string message, params object[] args)
@@ -249,7 +249,7 @@ namespace Microsoft.Extensions.Logging
         /// </summary>
         /// <param name="logger">The <see cref="ILogger"/> to write to.</param>
         /// <param name="eventId">The event id associated with the log.</param>
-        /// <param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
+        /// <param name="message">Format string of the log message in message template format. Example: <c>"User {User} logged in from {Address}"</c></param>
         /// <param name="args">An object array that contains zero or more objects to format.</param>
         /// <example>logger.LogError(0, "Processing request from {Address}", address)</example>
         public static void LogError(this ILogger logger, EventId eventId, string message, params object[] args)
@@ -262,7 +262,7 @@ namespace Microsoft.Extensions.Logging
         /// </summary>
         /// <param name="logger">The <see cref="ILogger"/> to write to.</param>
         /// <param name="exception">The exception to log.</param>
-        /// <param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
+        /// <param name="message">Format string of the log message in message template format. Example: <c>"User {User} logged in from {Address}"</c></param>
         /// <param name="args">An object array that contains zero or more objects to format.</param>
         /// <example>logger.LogError(exception, "Error while processing request from {Address}", address)</example>
         public static void LogError(this ILogger logger, Exception exception, string message, params object[] args)
@@ -274,7 +274,7 @@ namespace Microsoft.Extensions.Logging
         /// Formats and writes an error log message.
         /// </summary>
         /// <param name="logger">The <see cref="ILogger"/> to write to.</param>
-        /// <param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
+        /// <param name="message">Format string of the log message in message template format. Example: <c>"User {User} logged in from {Address}"</c></param>
         /// <param name="args">An object array that contains zero or more objects to format.</param>
         /// <example>logger.LogError("Processing request from {Address}", address)</example>
         public static void LogError(this ILogger logger, string message, params object[] args)
@@ -290,7 +290,7 @@ namespace Microsoft.Extensions.Logging
         /// <param name="logger">The <see cref="ILogger"/> to write to.</param>
         /// <param name="eventId">The event id associated with the log.</param>
         /// <param name="exception">The exception to log.</param>
-        /// <param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
+        /// <param name="message">Format string of the log message in message template format. Example: <c>"User {User} logged in from {Address}"</c></param>
         /// <param name="args">An object array that contains zero or more objects to format.</param>
         /// <example>logger.LogCritical(0, exception, "Error while processing request from {Address}", address)</example>
         public static void LogCritical(this ILogger logger, EventId eventId, Exception exception, string message, params object[] args)
@@ -303,7 +303,7 @@ namespace Microsoft.Extensions.Logging
         /// </summary>
         /// <param name="logger">The <see cref="ILogger"/> to write to.</param>
         /// <param name="eventId">The event id associated with the log.</param>
-        /// <param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
+        /// <param name="message">Format string of the log message in message template format. Example: <c>"User {User} logged in from {Address}"</c></param>
         /// <param name="args">An object array that contains zero or more objects to format.</param>
         /// <example>logger.LogCritical(0, "Processing request from {Address}", address)</example>
         public static void LogCritical(this ILogger logger, EventId eventId, string message, params object[] args)
@@ -316,7 +316,7 @@ namespace Microsoft.Extensions.Logging
         /// </summary>
         /// <param name="logger">The <see cref="ILogger"/> to write to.</param>
         /// <param name="exception">The exception to log.</param>
-        /// <param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
+        /// <param name="message">Format string of the log message in message template format. Example: <c>"User {User} logged in from {Address}"</c></param>
         /// <param name="args">An object array that contains zero or more objects to format.</param>
         /// <example>logger.LogCritical(exception, "Error while processing request from {Address}", address)</example>
         public static void LogCritical(this ILogger logger, Exception exception, string message, params object[] args)
@@ -328,7 +328,7 @@ namespace Microsoft.Extensions.Logging
         /// Formats and writes a critical log message.
         /// </summary>
         /// <param name="logger">The <see cref="ILogger"/> to write to.</param>
-        /// <param name="message">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
+        /// <param name="message">Format string of the log message in message template format. Example: <c>"User {User} logged in from {Address}"</c></param>
         /// <param name="args">An object array that contains zero or more objects to format.</param>
         /// <example>logger.LogCritical("Processing request from {Address}", address)</example>
         public static void LogCritical(this ILogger logger, string message, params object[] args)
@@ -399,7 +399,7 @@ namespace Microsoft.Extensions.Logging
         /// Formats the message and creates a scope.
         /// </summary>
         /// <param name="logger">The <see cref="ILogger"/> to create the scope in.</param>
-        /// <param name="messageFormat">Format string of the log message in message template format. Example: <code>"User {User} logged in from {Address}"</code></param>
+        /// <param name="messageFormat">Format string of the log message in message template format. Example: <c>"User {User} logged in from {Address}"</c></param>
         /// <param name="args">An object array that contains zero or more objects to format.</param>
         /// <returns>A disposable scope object. Can be null.</returns>
         /// <example>
index cbb1d7e..a2e48f7 100644 (file)
@@ -13,12 +13,12 @@ namespace Microsoft.Extensions.Logging.Console
         private ConsoleLoggerFormat _format = ConsoleLoggerFormat.Default;
 
         /// <summary>
-        /// Includes scopes when <code>true</code>.
+        /// Includes scopes when <c>true</c>.
         /// </summary>
         public bool IncludeScopes { get; set; }
 
         /// <summary>
-        /// Disables colors when <code>true</code>.
+        /// Disables colors when <c>true</c>.
         /// </summary>
         public bool DisableColors { get; set; }
 
index 2f241fd..7d96d94 100644 (file)
@@ -36,7 +36,7 @@ namespace Microsoft.Extensions.Primitives
         /// <param name="offset">The offset of the segment within the <paramref name="buffer"/>.</param>
         /// <param name="length">The length of the segment.</param>
         /// <exception cref="ArgumentNullException">
-        /// <paramref name="buffer"/> is <code>null</code>.
+        /// <paramref name="buffer"/> is <c>null</c>.
         /// </exception>
         /// <exception cref="ArgumentOutOfRangeException">
         /// <paramref name="offset"/> or <paramref name="length"/> is less than zero, or <paramref name="offset"/> +
@@ -171,7 +171,7 @@ namespace Microsoft.Extensions.Primitives
         /// Indicates whether the current object is equal to another object of the same type.
         /// </summary>
         /// <param name="other">An object to compare with this object.</param>
-        /// <returns><code>true</code> if the current object is equal to the other parameter; otherwise, <code>false</code>.</returns>
+        /// <returns><c>true</c> if the current object is equal to the other parameter; otherwise, <c>false</c>.</returns>
         public bool Equals(StringSegment other) => Equals(other, StringComparison.Ordinal);
 
         /// <summary>
@@ -179,7 +179,7 @@ namespace Microsoft.Extensions.Primitives
         /// </summary>
         /// <param name="other">An object to compare with this object.</param>
         /// <param name="comparisonType">One of the enumeration values that specifies the rules to use in the comparison.</param>
-        /// <returns><code>true</code> if the current object is equal to the other parameter; otherwise, <code>false</code>.</returns>
+        /// <returns><c>true</c> if the current object is equal to the other parameter; otherwise, <c>false</c>.</returns>
         public bool Equals(StringSegment other, StringComparison comparisonType)
         {
             if (Length != other.Length)
@@ -199,7 +199,7 @@ namespace Microsoft.Extensions.Primitives
         /// <param name="a">The first <see cref="StringSegment"/> to compare.</param>
         /// <param name="b">The second <see cref="StringSegment"/> to compare.</param>
         /// <param name="comparisonType">One of the enumeration values that specifies the rules for the comparison.</param>
-        /// <returns><code>true</code> if the objects are equal; otherwise, <code>false</code>.</returns>
+        /// <returns><c>true</c> if the objects are equal; otherwise, <c>false</c>.</returns>
         public static bool Equals(StringSegment a, StringSegment b, StringComparison comparisonType)
         {
             return a.Equals(b, comparisonType);
@@ -209,7 +209,7 @@ namespace Microsoft.Extensions.Primitives
         /// Checks if the specified <see cref="string"/> is equal to the current <see cref="StringSegment"/>.
         /// </summary>
         /// <param name="text">The <see cref="string"/> to compare with the current <see cref="StringSegment"/>.</param>
-        /// <returns><code>true</code> if the specified <see cref="string"/> is equal to the current <see cref="StringSegment"/>; otherwise, <code>false</code>.</returns>
+        /// <returns><c>true</c> if the specified <see cref="string"/> is equal to the current <see cref="StringSegment"/>; otherwise, <c>false</c>.</returns>
         public bool Equals(string text)
         {
             return Equals(text, StringComparison.Ordinal);
@@ -220,9 +220,9 @@ namespace Microsoft.Extensions.Primitives
         /// </summary>
         /// <param name="text">The <see cref="string"/> to compare with the current <see cref="StringSegment"/>.</param>
         /// <param name="comparisonType">One of the enumeration values that specifies the rules to use in the comparison.</param>
-        /// <returns><code>true</code> if the specified <see cref="string"/> is equal to the current <see cref="StringSegment"/>; otherwise, <code>false</code>.</returns>
+        /// <returns><c>true</c> if the specified <see cref="string"/> is equal to the current <see cref="StringSegment"/>; otherwise, <c>false</c>.</returns>
         /// <exception cref="ArgumentNullException">
-        /// <paramref name="text"/> is <code>null</code>.
+        /// <paramref name="text"/> is <c>null</c>.
         /// </exception>
         [MethodImpl(MethodImplOptions.AggressiveInlining)]
         public bool Equals(string text, StringComparison comparisonType)
@@ -261,17 +261,17 @@ namespace Microsoft.Extensions.Primitives
         /// <summary>
         /// Checks if two specified <see cref="StringSegment"/> have the same value.
         /// </summary>
-        /// <param name="left">The first <see cref="StringSegment"/> to compare, or <code>null</code>.</param>
-        /// <param name="right">The second <see cref="StringSegment"/> to compare, or <code>null</code>.</param>
-        /// <returns><code>true</code> if the value of <paramref name="left"/> is the same as the value of <paramref name="right"/>; otherwise, <code>false</code>.</returns>
+        /// <param name="left">The first <see cref="StringSegment"/> to compare, or <c>null</c>.</param>
+        /// <param name="right">The second <see cref="StringSegment"/> to compare, or <c>null</c>.</param>
+        /// <returns><c>true</c> if the value of <paramref name="left"/> is the same as the value of <paramref name="right"/>; otherwise, <c>false</c>.</returns>
         public static bool operator ==(StringSegment left, StringSegment right) => left.Equals(right);
 
         /// <summary>
         /// Checks if two specified <see cref="StringSegment"/> have different values.
         /// </summary>
-        /// <param name="left">The first <see cref="StringSegment"/> to compare, or <code>null</code>.</param>
-        /// <param name="right">The second <see cref="StringSegment"/> to compare, or <code>null</code>.</param>
-        /// <returns><code>true</code> if the value of <paramref name="left"/> is different from the value of <paramref name="right"/>; otherwise, <code>false</code>.</returns>
+        /// <param name="left">The first <see cref="StringSegment"/> to compare, or <c>null</c>.</param>
+        /// <param name="right">The second <see cref="StringSegment"/> to compare, or <c>null</c>.</param>
+        /// <returns><c>true</c> if the value of <paramref name="left"/> is different from the value of <paramref name="right"/>; otherwise, <c>false</c>.</returns>
         public static bool operator !=(StringSegment left, StringSegment right) => !left.Equals(right);
 
         // PERF: Do NOT add a implicit converter from StringSegment to String. That would negate most of the perf safety.
@@ -298,9 +298,9 @@ namespace Microsoft.Extensions.Primitives
         /// </summary>
         /// <param name="text">The <see cref="string"/>to compare.</param>
         /// <param name="comparisonType">One of the enumeration values that specifies the rules to use in the comparison.</param>
-        /// <returns><code>true</code> if <paramref name="text"/> matches the beginning of this <see cref="StringSegment"/>; otherwise, <code>false</code>.</returns>
+        /// <returns><c>true</c> if <paramref name="text"/> matches the beginning of this <see cref="StringSegment"/>; otherwise, <c>false</c>.</returns>
         /// <exception cref="ArgumentNullException">
-        /// <paramref name="text"/> is <code>null</code>.
+        /// <paramref name="text"/> is <c>null</c>.
         /// </exception>
         [MethodImpl(MethodImplOptions.AggressiveInlining)]
         public bool StartsWith(string text, StringComparison comparisonType)
@@ -326,9 +326,9 @@ namespace Microsoft.Extensions.Primitives
         /// </summary>
         /// <param name="text">The <see cref="string"/>to compare.</param>
         /// <param name="comparisonType">One of the enumeration values that specifies the rules to use in the comparison.</param>
-        /// <returns><code>true</code> if <paramref name="text"/> matches the end of this <see cref="StringSegment"/>; otherwise, <code>false</code>.</returns>
+        /// <returns><c>true</c> if <paramref name="text"/> matches the end of this <see cref="StringSegment"/>; otherwise, <c>false</c>.</returns>
         /// <exception cref="ArgumentNullException">
-        /// <paramref name="text"/> is <code>null</code>.
+        /// <paramref name="text"/> is <c>null</c>.
         /// </exception>
         [MethodImpl(MethodImplOptions.AggressiveInlining)]
         public bool EndsWith(string text, StringComparison comparisonType)
@@ -484,7 +484,7 @@ namespace Microsoft.Extensions.Primitives
         /// <returns>The zero-based index position of the first occurrence in this instance where any character in <paramref name="anyOf"/>
         /// was found; -1 if no character in <paramref name="anyOf"/> was found.</returns>
         /// <exception cref="ArgumentNullException">
-        /// <paramref name="anyOf"/> is <code>null</code>.
+        /// <paramref name="anyOf"/> is <c>null</c>.
         /// </exception>
         /// <exception cref="ArgumentOutOfRangeException">
         /// <paramref name="startIndex"/> or <paramref name="count"/> is less than zero, or <paramref name="startIndex"/> + <paramref name="count"/> is
@@ -656,9 +656,9 @@ namespace Microsoft.Extensions.Primitives
         }
 
         /// <summary>
-        /// Returns the <see cref="string"/> represented by this <see cref="StringSegment"/> or <code>String.Empty</code> if the <see cref="StringSegment"/> does not contain a value.
+        /// Returns the <see cref="string"/> represented by this <see cref="StringSegment"/> or <c>String.Empty</c> if the <see cref="StringSegment"/> does not contain a value.
         /// </summary>
-        /// <returns>The <see cref="string"/> represented by this <see cref="StringSegment"/> or <code>String.Empty</code> if the <see cref="StringSegment"/> does not contain a value.</returns>
+        /// <returns>The <see cref="string"/> represented by this <see cref="StringSegment"/> or <c>String.Empty</c> if the <see cref="StringSegment"/> does not contain a value.</returns>
         public override string ToString()
         {
             return Value ?? string.Empty;