Skip to content

Commit 3ccf403

Browse files
committed
Use langword null
1 parent a348858 commit 3ccf403

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

dotnet/src/support/Events/EventFiringWebDriver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ public object ExecuteScript(string script, params object[] args)
478478
/// <param name="script">A <see cref="PinnedScript"/> object containing the code to execute.</param>
479479
/// <param name="args">The arguments to the script.</param>
480480
/// <returns>The value returned by the script.</returns>
481-
/// <exception cref="ArgumentNullException">If <paramref name="script"/> is null.</exception>
481+
/// <exception cref="ArgumentNullException">If <paramref name="script"/> is <see langword="null"/>.</exception>
482482
/// <remarks>
483483
/// <para>
484484
/// The ExecuteScript method executes JavaScript in the context of

dotnet/src/webdriver/IJavaScriptEngine.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ public interface IJavaScriptEngine : IDisposable
8787
/// <param name="scriptName">The friendly name by which to refer to this initialization script.</param>
8888
/// <param name="script">The JavaScript to be loaded on every page.</param>
8989
/// <returns>A task containing an <see cref="InitializationScript"/> object representing the script to be loaded on each page.</returns>
90-
/// <exception cref="ArgumentNullException">If <paramref name="scriptName"/> is null.</exception>
90+
/// <exception cref="ArgumentNullException">If <paramref name="scriptName"/> is <see langword="null"/>.</exception>
9191
Task<InitializationScript> AddInitializationScript(string scriptName, string script);
9292

9393
/// <summary>
9494
/// Asynchronously removes JavaScript from being loaded on every document load.
9595
/// </summary>
9696
/// <param name="scriptName">The friendly name of the initialization script to be removed.</param>
9797
/// <returns>A task that represents the asynchronous operation.</returns>
98-
/// <exception cref="ArgumentNullException">If <paramref name="scriptName"/> is null.</exception>
98+
/// <exception cref="ArgumentNullException">If <paramref name="scriptName"/> is <see langword="null"/>.</exception>
9999
Task RemoveInitializationScript(string scriptName);
100100

101101
/// <summary>
@@ -111,15 +111,15 @@ public interface IJavaScriptEngine : IDisposable
111111
/// </summary>
112112
/// <param name="script">The JavaScript to pin</param>
113113
/// <returns>A task containing a <see cref="PinnedScript"/> object to use to execute the script.</returns>
114-
/// <exception cref="ArgumentNullException">If <paramref name="script"/> is null.</exception>
114+
/// <exception cref="ArgumentNullException">If <paramref name="script"/> is <see langword="null"/>.</exception>
115115
Task<PinnedScript> PinScript(string script);
116116

117117
/// <summary>
118118
/// Unpins a previously pinned script from the browser.
119119
/// </summary>
120120
/// <param name="script">The <see cref="PinnedScript"/> object to unpin.</param>
121121
/// <returns>A task that represents the asynchronous operation.</returns>
122-
/// <exception cref="ArgumentNullException">If <paramref name="script"/> is null.</exception>
122+
/// <exception cref="ArgumentNullException">If <paramref name="script"/> is <see langword="null"/>.</exception>
123123
Task UnpinScript(PinnedScript script);
124124

125125
/// <summary>

dotnet/src/webdriver/IJavascriptExecutor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public interface IJavaScriptExecutor
9999
/// variable, as if the function were called via "Function.apply"
100100
/// </para>
101101
/// </remarks>
102-
/// <exception cref="ArgumentNullException">If <paramref name="script" /> is null.</exception>
102+
/// <exception cref="ArgumentNullException">If <paramref name="script" /> is <see langword="null"/>.</exception>
103103
object ExecuteScript(PinnedScript script, params object[] args);
104104

105105
/// <summary>

dotnet/src/webdriver/ISearchContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public interface ISearchContext
3232
/// </summary>
3333
/// <param name="by">The locating mechanism to use.</param>
3434
/// <returns>The first matching <see cref="IWebElement"/> on the current context.</returns>
35-
/// <exception cref="ArgumentNullException">If <paramref name="by" /> is null.</exception>
35+
/// <exception cref="ArgumentNullException">If <paramref name="by" /> is <see langword="null"/>.</exception>
3636
/// <exception cref="NoSuchElementException">If no element matches the criteria.</exception>
3737
IWebElement FindElement(By by);
3838

dotnet/src/webdriver/JavaScriptEngine.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public async Task ClearInitializationScripts()
219219
/// </summary>
220220
/// <param name="script">The JavaScript to pin</param>
221221
/// <returns>A task containing a <see cref="PinnedScript"/> object to use to execute the script.</returns>
222-
/// <exception cref="ArgumentNullException">If <paramref name="script"/> is null.</exception>
222+
/// <exception cref="ArgumentNullException">If <paramref name="script"/> is <see langword="null"/>.</exception>
223223
public async Task<PinnedScript> PinScript(string script)
224224
{
225225
if (script == null)
@@ -247,7 +247,7 @@ public async Task<PinnedScript> PinScript(string script)
247247
/// </summary>
248248
/// <param name="script">The <see cref="PinnedScript"/> object to unpin.</param>
249249
/// <returns>A task that represents the asynchronous operation.</returns>
250-
/// <exception cref="ArgumentNullException">If <paramref name="script"/> is null.</exception>
250+
/// <exception cref="ArgumentNullException">If <paramref name="script"/> is <see langword="null"/>.</exception>
251251
public async Task UnpinScript(PinnedScript script)
252252
{
253253
if (script == null)

dotnet/src/webdriver/WebDriver.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ public object ExecuteScript(string script, params object[] args)
280280
/// <param name="script">A <see cref="PinnedScript"/> object containing the JavaScript code to execute.</param>
281281
/// <param name="args">The arguments to the script.</param>
282282
/// <returns>The value returned by the script.</returns>
283-
/// <exception cref="ArgumentNullException">If <paramref name="script" /> is null.</exception>
283+
/// <exception cref="ArgumentNullException">If <paramref name="script" /> is <see langword="null"/>.</exception>
284284
public object ExecuteScript(PinnedScript script, params object[] args)
285285
{
286286
if (script == null)
@@ -296,7 +296,7 @@ public object ExecuteScript(PinnedScript script, params object[] args)
296296
/// </summary>
297297
/// <param name="by">By mechanism to find the object</param>
298298
/// <returns>IWebElement object so that you can interact with that object</returns>
299-
/// <exception cref="ArgumentNullException">If <paramref name="by" /> is null.</exception>
299+
/// <exception cref="ArgumentNullException">If <paramref name="by" /> is <see langword="null"/>.</exception>
300300
/// <example>
301301
/// <code>
302302
/// IWebDriver driver = new InternetExplorerDriver();

0 commit comments

Comments
 (0)