Skip to content

Commit 135bb54

Browse files
authored
Fix IDE0049 for string in System.Management.Automation (#25921)
1 parent 907c3b1 commit 135bb54

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

src/Microsoft.PowerShell.Commands.Management/commands/management/ComputerUnix.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ protected override void StopProcessing()
158158
/// <summary>
159159
/// Run shutdown command.
160160
/// </summary>
161-
protected void RunShutdown(String args)
161+
protected void RunShutdown(string args)
162162
{
163163
if (shutdownPath is null)
164164
{

src/System.Management.Automation/cimSupport/cmdletization/QueryBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public abstract class QueryBuilder
5252
/// <param name="propertyName">Property name to query on.</param>
5353
/// <param name="allowedPropertyValues">Property values to accept in the query.</param>
5454
/// <param name="wildcardsEnabled">
55-
/// <see langword="true"/> if <paramref name="allowedPropertyValues"/> should be treated as a <see cref="System.String"/> containing a wildcard pattern;
55+
/// <see langword="true"/> if <paramref name="allowedPropertyValues"/> should be treated as a <see cref="string"/> containing a wildcard pattern;
5656
/// <see langword="false"/> otherwise.
5757
/// </param>
5858
/// <param name="behaviorOnNoMatch">
@@ -69,7 +69,7 @@ public virtual void FilterByProperty(string propertyName, IEnumerable allowedPro
6969
/// <param name="propertyName">Property name to query on.</param>
7070
/// <param name="excludedPropertyValues">Property values to reject in the query.</param>
7171
/// <param name="wildcardsEnabled">
72-
/// <see langword="true"/> if <paramref name="excludedPropertyValues"/> should be treated as a <see cref="System.String"/> containing a wildcard pattern;
72+
/// <see langword="true"/> if <paramref name="excludedPropertyValues"/> should be treated as a <see cref="string"/> containing a wildcard pattern;
7373
/// <see langword="false"/> otherwise.
7474
/// </param>
7575
/// <param name="behaviorOnNoMatch">

src/System.Management.Automation/engine/ErrorPackage.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ public ErrorDetails(string message)
562562
/// <see cref="System.Resources.ResourceManager"/>
563563
/// </param>
564564
/// <param name="args">
565-
/// <see cref="System.String.Format(IFormatProvider,string,object[])"/>
565+
/// <see cref="string.Format(IFormatProvider,string,object[])"/>
566566
/// insertion parameters
567567
/// </param>
568568
/// <remarks>
@@ -584,7 +584,7 @@ public ErrorDetails(string message)
584584
/// by overriding virtual method
585585
/// <see cref="Cmdlet.GetResourceString"/>.
586586
/// This constructor then inserts the specified args using
587-
/// <see cref="System.String.Format(IFormatProvider,string,object[])"/>.
587+
/// <see cref="string.Format(IFormatProvider,string,object[])"/>.
588588
/// </remarks>
589589
public ErrorDetails(
590590
Cmdlet cmdlet,
@@ -610,7 +610,7 @@ public ErrorDetails(
610610
/// <see cref="System.Resources.ResourceManager"/>
611611
/// </param>
612612
/// <param name="args">
613-
/// <see cref="System.String.Format(IFormatProvider,string,object[])"/>
613+
/// <see cref="string.Format(IFormatProvider,string,object[])"/>
614614
/// insertion parameters
615615
/// </param>
616616
/// <remarks>
@@ -637,7 +637,7 @@ public ErrorDetails(
637637
/// will implement
638638
/// <see cref="IResourceSupplier"/>.
639639
/// The constructor then inserts the specified args using
640-
/// <see cref="System.String.Format(IFormatProvider,string,object[])"/>.
640+
/// <see cref="string.Format(IFormatProvider,string,object[])"/>.
641641
/// </remarks>
642642
public ErrorDetails(
643643
IResourceSupplier resourceSupplier,
@@ -663,7 +663,7 @@ public ErrorDetails(
663663
/// <see cref="System.Resources.ResourceManager"/>
664664
/// </param>
665665
/// <param name="args">
666-
/// <see cref="System.String.Format(IFormatProvider,string,object[])"/>
666+
/// <see cref="string.Format(IFormatProvider,string,object[])"/>
667667
/// insertion parameters
668668
/// </param>
669669
/// <remarks>
@@ -678,7 +678,7 @@ public ErrorDetails(
678678
/// This constructor first loads a template string from the assembly using
679679
/// <see cref="System.Resources.ResourceManager.GetString(string)"/>.
680680
/// The constructor then inserts the specified args using
681-
/// <see cref="System.String.Format(IFormatProvider,string,object[])"/>.
681+
/// <see cref="string.Format(IFormatProvider,string,object[])"/>.
682682
/// </remarks>
683683
public ErrorDetails(
684684
System.Reflection.Assembly assembly,
@@ -1823,7 +1823,7 @@ public interface IResourceSupplier
18231823
/// if you want more complex behavior.
18241824
///
18251825
/// Insertions will be inserted into the string with
1826-
/// <see cref="System.String.Format(IFormatProvider,string,object[])"/>
1826+
/// <see cref="string.Format(IFormatProvider,string,object[])"/>
18271827
/// to generate the final error message in
18281828
/// <see cref="ErrorDetails.Message"/>.
18291829
/// </remarks>

src/System.Management.Automation/engine/hostifaces/FieldDescription.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public string Name
8989
/// </value>
9090
/// <remarks>
9191
/// If not already set by a call to <see cref="System.Management.Automation.Host.FieldDescription.SetParameterType"/>,
92-
/// <see cref="System.String"/> will be used as the type.
92+
/// <see cref="string"/> will be used as the type.
9393
/// <!--The value of ParameterTypeName is the string value returned.
9494
/// by System.Type.Name.-->
9595
/// </remarks>
@@ -115,7 +115,7 @@ public string Name
115115
/// </summary>
116116
/// <remarks>
117117
/// If not already set by a call to <see cref="System.Management.Automation.Host.FieldDescription.SetParameterType"/>,
118-
/// <see cref="System.String"/> will be used as the type.
118+
/// <see cref="string"/> will be used as the type.
119119
/// <!--The value of ParameterTypeName is the string value returned.
120120
/// by System.Type.Name.-->
121121
/// </remarks>
@@ -144,7 +144,7 @@ public string Name
144144
/// to load the containing assembly to access the type information. AssemblyName is used for this purpose.
145145
///
146146
/// If not already set by a call to <see cref="System.Management.Automation.Host.FieldDescription.SetParameterType"/>,
147-
/// <see cref="System.String"/> will be used as the type.
147+
/// <see cref="string"/> will be used as the type.
148148
/// </remarks>
149149
public
150150
string

0 commit comments

Comments
 (0)