Skip to content

Commit b4e5921

Browse files
authored
updating inline <code> to <c> (dotnet/extensions#2751)
\n\nCommit migrated from dotnet/extensions@24da37b
2 parents 3e47a86 + e8c3931 commit b4e5921

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

src/JSInterop/Microsoft.JSInterop/src/IJSInProcessRuntime.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public interface IJSInProcessRuntime : IJSRuntime
1212
/// Invokes the specified JavaScript function synchronously.
1313
/// </summary>
1414
/// <typeparam name="T">The JSON-serializable return type.</typeparam>
15-
/// <param name="identifier">An identifier for the function to invoke. For example, the value <code>"someScope.someFunction"</code> will invoke the function <code>window.someScope.someFunction</code>.</param>
15+
/// <param name="identifier">An identifier for the function to invoke. For example, the value <c>"someScope.someFunction"</c> will invoke the function <c>window.someScope.someFunction</c>.</param>
1616
/// <param name="args">JSON-serializable arguments.</param>
1717
/// <returns>An instance of <typeparamref name="T"/> obtained by JSON-deserializing the return value.</returns>
1818
T Invoke<T>(string identifier, params object[] args);

src/JSInterop/Microsoft.JSInterop/src/IJSRuntime.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public interface IJSRuntime
1919
/// </para>
2020
/// </summary>
2121
/// <typeparam name="TValue">The JSON-serializable return type.</typeparam>
22-
/// <param name="identifier">An identifier for the function to invoke. For example, the value <code>"someScope.someFunction"</code> will invoke the function <code>window.someScope.someFunction</code>.</param>
22+
/// <param name="identifier">An identifier for the function to invoke. For example, the value <c>"someScope.someFunction"</c> will invoke the function <c>window.someScope.someFunction</c>.</param>
2323
/// <param name="args">JSON-serializable arguments.</param>
2424
/// <returns>An instance of <typeparamref name="TValue"/> obtained by JSON-deserializing the return value.</returns>
2525
ValueTask<TValue> InvokeAsync<TValue>(string identifier, object[] args);
@@ -28,7 +28,7 @@ public interface IJSRuntime
2828
/// Invokes the specified JavaScript function asynchronously.
2929
/// </summary>
3030
/// <typeparam name="TValue">The JSON-serializable return type.</typeparam>
31-
/// <param name="identifier">An identifier for the function to invoke. For example, the value <code>"someScope.someFunction"</code> will invoke the function <code>window.someScope.someFunction</code>.</param>
31+
/// <param name="identifier">An identifier for the function to invoke. For example, the value <c>"someScope.someFunction"</c> will invoke the function <c>window.someScope.someFunction</c>.</param>
3232
/// <param name="cancellationToken">
3333
/// A cancellation token to signal the cancellation of the operation. Specifying this parameter will override any default cancellations such as due to timeouts
3434
/// (<see cref="JSRuntime.DefaultAsyncTimeout"/>) from being applied.

src/JSInterop/Microsoft.JSInterop/src/JSInProcessRuntime.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public abstract class JSInProcessRuntime : JSRuntime, IJSInProcessRuntime
1414
/// Invokes the specified JavaScript function synchronously.
1515
/// </summary>
1616
/// <typeparam name="TValue">The JSON-serializable return type.</typeparam>
17-
/// <param name="identifier">An identifier for the function to invoke. For example, the value <code>"someScope.someFunction"</code> will invoke the function <code>window.someScope.someFunction</code>.</param>
17+
/// <param name="identifier">An identifier for the function to invoke. For example, the value <c>"someScope.someFunction"</c> will invoke the function <c>window.someScope.someFunction</c>.</param>
1818
/// <param name="args">JSON-serializable arguments.</param>
1919
/// <returns>An instance of <typeparamref name="TValue"/> obtained by JSON-deserializing the return value.</returns>
2020
public TValue Invoke<TValue>(string identifier, params object[] args)

src/JSInterop/Microsoft.JSInterop/src/JSInProcessRuntimeExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public static class JSInProcessRuntimeExtensions
1414
/// Invokes the specified JavaScript function synchronously.
1515
/// </summary>
1616
/// <param name="jsRuntime">The <see cref="IJSInProcessRuntime"/>.</param>
17-
/// <param name="identifier">An identifier for the function to invoke. For example, the value <code>"someScope.someFunction"</code> will invoke the function <code>window.someScope.someFunction</code>.</param>
17+
/// <param name="identifier">An identifier for the function to invoke. For example, the value <c>"someScope.someFunction"</c> will invoke the function <c>window.someScope.someFunction</c>.</param>
1818
/// <param name="args">JSON-serializable arguments.</param>
1919
public static void InvokeVoid(this IJSInProcessRuntime jsRuntime, string identifier, params object[] args)
2020
{

src/JSInterop/Microsoft.JSInterop/src/JSRuntime.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected JSRuntime()
5959
/// </para>
6060
/// </summary>
6161
/// <typeparam name="TValue">The JSON-serializable return type.</typeparam>
62-
/// <param name="identifier">An identifier for the function to invoke. For example, the value <code>"someScope.someFunction"</code> will invoke the function <code>window.someScope.someFunction</code>.</param>
62+
/// <param name="identifier">An identifier for the function to invoke. For example, the value <c>"someScope.someFunction"</c> will invoke the function <c>window.someScope.someFunction</c>.</param>
6363
/// <param name="args">JSON-serializable arguments.</param>
6464
/// <returns>An instance of <typeparamref name="TValue"/> obtained by JSON-deserializing the return value.</returns>
6565
public ValueTask<TValue> InvokeAsync<TValue>(string identifier, object[] args)
@@ -76,7 +76,7 @@ public ValueTask<TValue> InvokeAsync<TValue>(string identifier, object[] args)
7676
/// Invokes the specified JavaScript function asynchronously.
7777
/// </summary>
7878
/// <typeparam name="TValue">The JSON-serializable return type.</typeparam>
79-
/// <param name="identifier">An identifier for the function to invoke. For example, the value <code>"someScope.someFunction"</code> will invoke the function <code>window.someScope.someFunction</code>.</param>
79+
/// <param name="identifier">An identifier for the function to invoke. For example, the value <c>"someScope.someFunction"</c> will invoke the function <c>window.someScope.someFunction</c>.</param>
8080
/// <param name="cancellationToken">
8181
/// A cancellation token to signal the cancellation of the operation. Specifying this parameter will override any default cancellations such as due to timeouts
8282
/// (<see cref="JSRuntime.DefaultAsyncTimeout"/>) from being applied.

src/JSInterop/Microsoft.JSInterop/src/JSRuntimeExtensions.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static class JSRuntimeExtensions
1616
/// Invokes the specified JavaScript function asynchronously.
1717
/// </summary>
1818
/// <param name="jsRuntime">The <see cref="IJSRuntime"/>.</param>
19-
/// <param name="identifier">An identifier for the function to invoke. For example, the value <code>"someScope.someFunction"</code> will invoke the function <code>window.someScope.someFunction</code>.</param>
19+
/// <param name="identifier">An identifier for the function to invoke. For example, the value <c>"someScope.someFunction"</c> will invoke the function <c>window.someScope.someFunction</c>.</param>
2020
/// <param name="args">JSON-serializable arguments.</param>
2121
/// <returns>A <see cref="ValueTask"/> that represents the asynchronous invocation operation.</returns>
2222
public static async ValueTask InvokeVoidAsync(this IJSRuntime jsRuntime, string identifier, params object[] args)
@@ -38,7 +38,7 @@ public static async ValueTask InvokeVoidAsync(this IJSRuntime jsRuntime, string
3838
/// </summary>
3939
/// <param name="jsRuntime">The <see cref="IJSRuntime"/>.</param>
4040
/// <typeparam name="TValue">The JSON-serializable return type.</typeparam>
41-
/// <param name="identifier">An identifier for the function to invoke. For example, the value <code>"someScope.someFunction"</code> will invoke the function <code>window.someScope.someFunction</code>.</param>
41+
/// <param name="identifier">An identifier for the function to invoke. For example, the value <c>"someScope.someFunction"</c> will invoke the function <c>window.someScope.someFunction</c>.</param>
4242
/// <param name="args">JSON-serializable arguments.</param>
4343
/// <returns>An instance of <typeparamref name="TValue"/> obtained by JSON-deserializing the return value.</returns>
4444
public static ValueTask<TValue> InvokeAsync<TValue>(this IJSRuntime jsRuntime, string identifier, params object[] args)
@@ -56,7 +56,7 @@ public static ValueTask<TValue> InvokeAsync<TValue>(this IJSRuntime jsRuntime, s
5656
/// </summary>
5757
/// <typeparam name="TValue">The JSON-serializable return type.</typeparam>
5858
/// <param name="jsRuntime">The <see cref="IJSRuntime"/>.</param>
59-
/// <param name="identifier">An identifier for the function to invoke. For example, the value <code>"someScope.someFunction"</code> will invoke the function <code>window.someScope.someFunction</code>.</param>
59+
/// <param name="identifier">An identifier for the function to invoke. For example, the value <c>"someScope.someFunction"</c> will invoke the function <c>window.someScope.someFunction</c>.</param>
6060
/// <param name="cancellationToken">
6161
/// A cancellation token to signal the cancellation of the operation. Specifying this parameter will override any default cancellations such as due to timeouts
6262
/// (<see cref="JSRuntime.DefaultAsyncTimeout"/>) from being applied.
@@ -77,7 +77,7 @@ public static ValueTask<TValue> InvokeAsync<TValue>(this IJSRuntime jsRuntime, s
7777
/// Invokes the specified JavaScript function asynchronously.
7878
/// </summary>
7979
/// <param name="jsRuntime">The <see cref="IJSRuntime"/>.</param>
80-
/// <param name="identifier">An identifier for the function to invoke. For example, the value <code>"someScope.someFunction"</code> will invoke the function <code>window.someScope.someFunction</code>.</param>
80+
/// <param name="identifier">An identifier for the function to invoke. For example, the value <c>"someScope.someFunction"</c> will invoke the function <c>window.someScope.someFunction</c>.</param>
8181
/// <param name="cancellationToken">
8282
/// A cancellation token to signal the cancellation of the operation. Specifying this parameter will override any default cancellations such as due to timeouts
8383
/// (<see cref="JSRuntime.DefaultAsyncTimeout"/>) from being applied.
@@ -98,7 +98,7 @@ public static async ValueTask InvokeVoidAsync(this IJSRuntime jsRuntime, string
9898
/// Invokes the specified JavaScript function asynchronously.
9999
/// </summary>
100100
/// <param name="jsRuntime">The <see cref="IJSRuntime"/>.</param>
101-
/// <param name="identifier">An identifier for the function to invoke. For example, the value <code>"someScope.someFunction"</code> will invoke the function <code>window.someScope.someFunction</code>.</param>
101+
/// <param name="identifier">An identifier for the function to invoke. For example, the value <c>"someScope.someFunction"</c> will invoke the function <c>window.someScope.someFunction</c>.</param>
102102
/// <param name="timeout">The duration after which to cancel the async operation. Overrides default timeouts (<see cref="JSRuntime.DefaultAsyncTimeout"/>).</param>
103103
/// <param name="args">JSON-serializable arguments.</param>
104104
/// <returns>A <see cref="ValueTask"/> that represents the asynchronous invocation operation.</returns>
@@ -120,7 +120,7 @@ public static async ValueTask<TValue> InvokeAsync<TValue>(this IJSRuntime jsRunt
120120
/// Invokes the specified JavaScript function asynchronously.
121121
/// </summary>
122122
/// <param name="jsRuntime">The <see cref="IJSRuntime"/>.</param>
123-
/// <param name="identifier">An identifier for the function to invoke. For example, the value <code>"someScope.someFunction"</code> will invoke the function <code>window.someScope.someFunction</code>.</param>
123+
/// <param name="identifier">An identifier for the function to invoke. For example, the value <c>"someScope.someFunction"</c> will invoke the function <c>window.someScope.someFunction</c>.</param>
124124
/// <param name="timeout">The duration after which to cancel the async operation. Overrides default timeouts (<see cref="JSRuntime.DefaultAsyncTimeout"/>).</param>
125125
/// <param name="args">JSON-serializable arguments.</param>
126126
/// <returns>A <see cref="ValueTask"/> that represents the asynchronous invocation operation.</returns>

src/ObjectPool/src/IPooledObjectPolicy.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) .NET Foundation. All rights reserved.
1+
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
namespace Microsoft.Extensions.ObjectPool
@@ -19,7 +19,7 @@ public interface IPooledObjectPolicy<T>
1919
/// Runs some processing when an object was returned to the pool. Can be used to reset the state of an object and indicate if the object should be returned to the pool.
2020
/// </summary>
2121
/// <param name="obj">The object to return to the pool.</param>
22-
/// <returns><code>true</code> if the object should be returned to the pool. <code>false</code> if it's not possible/desirable for the pool to keep the object.</returns>
22+
/// <returns><see langword="true" /> if the object should be returned to the pool. <see langword="false" /> if it's not possible/desirable for the pool to keep the object.</returns>
2323
bool Return(T obj);
2424
}
2525
}

src/Testing/src/xunit/FlakyAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Microsoft.AspNetCore.Testing
1313
/// properties. Once these traits are applied, build scripts can include/exclude tests based on them.
1414
/// </para>
1515
/// <para>
16-
/// All flakiness-related traits start with <code>Flaky:</code> and are grouped first by the process running the tests: Azure Pipelines (AzP) or Helix.
16+
/// All flakiness-related traits start with <c>Flaky:</c> and are grouped first by the process running the tests: Azure Pipelines (AzP) or Helix.
1717
/// Then there is a segment specifying the "selector" which indicates where the test is flaky. Finally a segment specifying the value of that selector.
1818
/// The value of these traits is always either "true" or the trait is not present. We encode the entire selector in the name of the trait because xUnit.net only
1919
/// provides "==" and "!=" operators for traits, there is no way to check if a trait "contains" or "does not contain" a value. VSTest does support "contains" checks

0 commit comments

Comments
 (0)