1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-10 18:11:04 +09:00

Enable IDE0071 (Simplify interpolation) (#70918)

This commit is contained in:
Stephen Toub 2022-06-19 00:41:30 -04:00 committed by GitHub
parent c230ba6b9b
commit 656f909fb0
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View file

@ -1501,7 +1501,7 @@ dotnet_diagnostic.IDE0066.severity = suggestion
dotnet_diagnostic.IDE0070.severity = suggestion dotnet_diagnostic.IDE0070.severity = suggestion
# IDE0071: Simplify interpolation # IDE0071: Simplify interpolation
dotnet_diagnostic.IDE0071.severity = suggestion dotnet_diagnostic.IDE0071.severity = warning
# IDE0072: Add missing cases # IDE0072: Add missing cases
dotnet_diagnostic.IDE0072.severity = silent dotnet_diagnostic.IDE0072.severity = silent

View file

@ -101,7 +101,7 @@ namespace Microsoft.CSharp.RuntimeBinder.ComInterop
typeName = "IDispatch"; typeName = "IDispatch";
} }
return $"{RuntimeCallableWrapper.ToString()} ({typeName})"; return $"{RuntimeCallableWrapper} ({typeName})";
} }
public ComTypeDesc ComTypeDesc public ComTypeDesc ComTypeDesc

View file

@ -127,6 +127,6 @@ namespace System.Drawing.Printing
/// <summary> /// <summary>
/// Provides some interesting information about the PaperSize in String form. /// Provides some interesting information about the PaperSize in String form.
/// </summary> /// </summary>
public override string ToString() => $"[PaperSize {PaperName} Kind={Kind.ToString()} Height={Height.ToString(CultureInfo.InvariantCulture)} Width={Width.ToString(CultureInfo.InvariantCulture)}]"; public override string ToString() => $"[PaperSize {PaperName} Kind={Kind} Height={Height.ToString(CultureInfo.InvariantCulture)} Width={Width.ToString(CultureInfo.InvariantCulture)}]";
} }
} }

View file

@ -437,6 +437,6 @@ namespace System.Drawing
/// <summary> /// <summary>
/// Converts this <see cref='StringFormat'/> to a human-readable string. /// Converts this <see cref='StringFormat'/> to a human-readable string.
/// </summary> /// </summary>
public override string ToString() => $"[StringFormat, FormatFlags={FormatFlags.ToString()}]"; public override string ToString() => $"[StringFormat, FormatFlags={FormatFlags}]";
} }
} }

View file

@ -1414,7 +1414,7 @@ namespace System.Net.Http
{ {
if (NetEventSource.Log.IsEnabled()) if (NetEventSource.Log.IsEnabled())
{ {
Trace($"Connected with custom SslStream: alpn='${sslStream.NegotiatedApplicationProtocol.ToString()}'"); Trace($"Connected with custom SslStream: alpn='${sslStream.NegotiatedApplicationProtocol}'");
} }
} }
transportContext = sslStream.TransportContext; transportContext = sslStream.TransportContext;