129 references to Format
Crossgen2Tasks (2)
CommonFilePulledFromSdkRepo\Logger.cs (2)
69=> Log(new Message(MessageLevel.Error, string.Format(format, args), code)); 109text: string.Format(format, args),
GenerateDocumentationAndConfigFiles (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
205string.Format(WorkspaceExtensionsResources.Destination_type_must_be_a_0_1_or_2_but_given_one_is_3, 223string.Format(WorkspaceExtensionsResources.Destination_type_must_be_a_0_1_2_or_3_but_given_one_is_4,
illink (2)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (11)
MapSourceRootTests.cs (11)
268"ERROR : " + string.Format(task.Log.FormatResourceString( 270"ERROR : " + string.Format(task.Log.FormatResourceString( 329"WARNING : " + string.Format(task.Log.FormatResourceString( 331"WARNING : " + string.Format(task.Log.FormatResourceString( 333"WARNING : " + string.Format(task.Log.FormatResourceString( 335"WARNING : " + string.Format(task.Log.FormatResourceString( 337"WARNING : " + string.Format(task.Log.FormatResourceString( 339"WARNING : " + string.Format(task.Log.FormatResourceString( 377AssertEx.AssertEqualToleratingWhitespaceDifferences("ERROR : " + string.Format(task.Log.FormatResourceString( 406AssertEx.AssertEqualToleratingWhitespaceDifferences("ERROR : " + string.Format(task.Log.FormatResourceString( 440AssertEx.AssertEqualToleratingWhitespaceDifferences("ERROR : " + string.Format(task.Log.FormatResourceString(
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (8)
CommandLineTests.cs (8)
10585string.Format("Expected exit code to be '{0}' was '{1}'.{2} Output:{3}{4}", 12565var suppressionMessage = string.Format(CodeAnalysisResources.SuppressionDiagnosticDescriptorMessage, 12605var suppressionMessage = string.Format(CodeAnalysisResources.SuppressionDiagnosticDescriptorMessage, 12661var suppressionMessage = string.Format(CodeAnalysisResources.SuppressionDiagnosticDescriptorMessage, 12728string.Format( 12828string.Format( 12938string.Format( 13063var suppressionMessage = string.Format(CodeAnalysisResources.SuppressionDiagnosticDescriptorMessage,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\UnsafeTests.cs (2)
8670return string.Format(mainClassTemplate, 8673string.Format(CheckedNumericHelperTemplate, operationName, pointedAtType, @operator, checkedness),
Emit\DynamicAnalysis\DynamicAnalysisResourceTests.cs (1)
1058expectedSpanSpellings.Add(string.Format("({0},{1})-({2},{3})", expectedSpanResult.StartLine, expectedSpanResult.StartColumn, expectedSpanResult.EndLine, expectedSpanResult.EndColumn));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\PDBTupleTests.cs (1)
246string.Format(@"<symbols>
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (14)
Semantics\ParamsCollectionTests.cs (14)
8667string.Format( 8689string.Format( 8713string.Format( 8738string.Format( 8768string.Format( 8788string.Format( 8812string.Format( 8837string.Format( 8867string.Format( 8890string.Format( 8910string.Format( 8931string.Format( 8951string.Format( 8973string.Format(
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
CommandLineRunnerTests.cs (1)
846{string.Format(ScriptingResources.AssemblyAlreadyLoaded, libBaseName, "0.0.0.0", fileBase1.Path, fileBase2.Path)}
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\LookupPositionTests.cs (1)
3131message: string.Format("Lookup({0}) - '{1}' in '{2}' after {3}th '{4}' - \"-->\" found but not expected, \"++>\" expected but not found",
Semantics\OperatorTests.cs (1)
8413string expectedSymbol = String.Format("{4} {0}.{2}({1} left, {3} right)",
Semantics\SemanticErrorTests.cs (1)
11259string source = string.Format(
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (15)
DocumentationComments\DocumentationCommentCompilerTests.cs (1)
5727var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElements));
Symbols\DefaultInterfaceImplementationTests.cs (13)
68385static abstract " + string.Format(signatureTemplate, "T2", "", checkedKeyword, op) + @"; 68390static abstract " + string.Format(signatureTemplate, "T4", "", checkedKeyword, op) + @"; 68399static " + string.Format(signatureTemplate, "T1", "I2<T1>.", checkedKeyword, op) + @" 68404static " + string.Format(signatureTemplate, "T1", "I4<T1>.", checkedKeyword, op) + @" 68421static virtual " + string.Format(signatureTemplate, "T2", "", "", matchingOp) + @" => throw null; 68426static virtual " + string.Format(signatureTemplate, "T4", "", "", matchingOp) + @" => throw null; 68651static abstract " + string.Format(signatureTemplate, "T1", "", checkedKeyword, op) + @"; 68656static " + string.Format(signatureTemplate, "T2", "I1<T2>.", checkedKeyword, op) + @" 68664static " + string.Format(signatureTemplate, "T3", "I1<T3>.", checkedKeyword, op) + @" 68676static virtual " + string.Format(signatureTemplate, "T1", "", "", matchingOp) + @" => throw null; 68741static virtual " + string.Format(signatureTemplate, "T1", "", checkedKeyword, op) + @" => throw null; 68746static abstract " + string.Format(signatureTemplate, "T2", "I1<T2>.", checkedKeyword, op) + @"; 68755static virtual " + string.Format(signatureTemplate, "T1", "", "", matchingOp) + @" => throw null;
Symbols\SymbolDistinguisherTests.cs (1)
108Assert.Equal(string.Format("C [Metadata.dll]"), distinguisher.Second.ToString());
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
DiagnosticTestUtilities.cs (2)
28return string.Format("Line={0}, Column={1}, Code={2}, IsWarning={3}", this.Line, this.Column, this.Code, this.IsWarning); 106String.Format(
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\DiagnosticExtensions.cs (1)
431return string.Format(@"{{
Microsoft.CodeAnalysis.UnitTests (1)
Diagnostics\SuppressMessageAttributeCompilerTests.cs (1)
168string.Format(CodeAnalysisResources.CompilerAnalyzerThrows, AnalyzerName, exception.GetType().ToString(), exception.Message, exception.ToString() + Environment.NewLine + "-----"))}")
Microsoft.CodeAnalysis.Workspaces (4)
Log\TraceLogger.cs (2)
25=> Trace.WriteLine(string.Format("[{0}] Start({1}) : {2} - {3}", Environment.CurrentManagedThreadId, uniquePairId, functionId.ToString(), logMessage.GetMessage())); 30Trace.WriteLine(string.Format("[{0}] End({1}) : [{2}ms] {3}", Environment.CurrentManagedThreadId, uniquePairId, delta, functionString));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
205string.Format(WorkspaceExtensionsResources.Destination_type_must_be_a_0_1_or_2_but_given_one_is_3, 223string.Format(WorkspaceExtensionsResources.Destination_type_must_be_a_0_1_2_or_3_but_given_one_is_4,
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
SolutionGeneration.cs (1)
194string.Format(
Microsoft.DotNet.GenFacades (1)
SourceGenerator.cs (1)
112return string.Format($"[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof({alias}{TransformGenericTypes(typeName)}))]");
Microsoft.Maui.Graphics (2)
Rect.cs (1)
24 return string.Format("{{X={0} Y={1} Width={2} Height={3}}}", X.ToString(CultureInfo.InvariantCulture), Y.ToString(CultureInfo.InvariantCulture), Width.ToString(CultureInfo.InvariantCulture), Height.ToString(CultureInfo.InvariantCulture));
RectF.cs (1)
24 return string.Format("{{X={0} Y={1} Width={2} Height={3}}}", X.ToString(CultureInfo.InvariantCulture), Y.ToString(CultureInfo.InvariantCulture), Width.ToString(CultureInfo.InvariantCulture),
Microsoft.ML.Core.Tests (4)
UnitTests\ScoreSchemaTest.cs (1)
27bufferEditor.Values[i] = string.Format($"Key-{i}").AsMemory();
UnitTests\TestEntryPoints.cs (3)
3214{string.Format(xfTemplate, xfNames[i], i + 1, xfArgs[i], i + 2)} 3282{string.Format(xfTemplate, xfNames[i], i + 1, xfArgs[i], i + 2)} 3285string inputGraph = string.Format(@"
Microsoft.ML.Tests (2)
TextLoaderTests.cs (2)
35string.Format("{0},{1},{2},{3}", sbyte.MinValue, short.MinValue, int.MinValue, long.MinValue), 36string.Format("{0},{1},{2},{3}", sbyte.MaxValue, short.MaxValue, int.MaxValue, long.MaxValue),
Security.TransportSecurity.IntegrationTests (1)
Https\ClientCredentialTypeTests.4.1.0.cs (1)
79String.Format("Basic echo test.\nTest variation:...\n{0}\nUsing address: '{1}'\nError: expected response from service: '{2}' Actual was: '{3}'",
System.ComponentModel.TypeConverter (1)
System\Timers\TimersDescriptionAttribute.cs (1)
54DescriptionValue = string.Format(base.Description);
System.Data.Common (4)
System\Data\Common\DataCommonEventSource.cs (4)
52Trace(string.Format(format, arg0, arg1, arg2, arg3)); 59Trace(string.Format(format, arg0, arg1, arg2, arg3, arg4)); 66Trace(string.Format(format, arg0, arg1, arg2, arg3, arg4, arg5, arg6)); 94internal long EnterScope<T1, T2, T3, T4>(string format, T1 arg1, T2 arg2, T3 arg3, T4 arg4) => Log.IsEnabled() ? EnterScope(string.Format(format, arg1, arg2, arg3, arg4)) : 0;
System.Net.Http (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
185return string.Format(s.Format, formattedArgs);
System.Net.HttpListener (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
185return string.Format(s.Format, formattedArgs);
System.Net.Mail (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
185return string.Format(s.Format, formattedArgs);
System.Net.NameResolution (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
185return string.Format(s.Format, formattedArgs);
System.Net.Primitives (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
185return string.Format(s.Format, formattedArgs);
System.Net.Quic (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
185return string.Format(s.Format, formattedArgs);
System.Net.Requests (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
185return string.Format(s.Format, formattedArgs);
System.Net.Security (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
185return string.Format(s.Format, formattedArgs);
System.Net.Sockets (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
185return string.Format(s.Format, formattedArgs);
System.Net.WebSockets (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
185return string.Format(s.Format, formattedArgs);
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (2)
570/// Writes a formatted string to the stream, using the same semantics as <see cref="string.Format(string, ReadOnlySpan{object?})"/>. 638/// Writes out a formatted string and a new line to the stream, using the same semantics as <see cref="string.Format(string, ReadOnlySpan{object?})"/>.
src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (2)
321/// Writes a formatted string to the text stream, using the same semantics as <see cref="string.Format(string, ReadOnlySpan{object?})"/>. 528/// Writes out a formatted string and a new line to the text stream, using the same semantics as <see cref="string.Format(string, ReadOnlySpan{object?})"/>.
System.Private.Xml (6)
System\Xml\Core\XmlCharCheckingWriter.cs (1)
360throw new ArgumentException(string.Format(res, XmlException.BuildCharExceptionArgs(name, len)));
System\Xml\Schema\XmlSchemaException.cs (1)
149return string.Format(res ?? string.Empty, args);
System\Xml\XmlConvert.cs (1)
1568return new ArgumentException(string.Format(res, args));
System\Xml\XmlException.cs (1)
202string message = (args == null) ? res : string.Format(res, args);
System\Xml\XPath\XPathException.cs (1)
111string message = args == null ? res : string.Format(res, args);
System\Xml\Xsl\XslException.cs (1)
47message = string.Format(res, args);
System.ServiceModel.Primitives.Tests (3)
ServiceModel\DuplexChannelFactoryTest.cs (1)
110string.Format("InvalidOperationException exception string should contain 'BasicHttpBinding'. Actual message:\r\n" + exception.ToString()));
ServiceModel\MessageContractTest.4.4.0.cs (2)
320String.Format("Expected header '{0}' to contain value:{1}{2}{1} but it contained these:{1}{3}", 337String.Format("Array item {0} of element {1} was expected to be {2}, actual was {3}",
System.Windows.Forms (15)
System\Resources\ResXDataNode.cs (1)
375string newMessage = string.Format(SR.NotSupported, typeName, dataNodeInfo.ReaderPosition.Y, dataNodeInfo.ReaderPosition.X, nse.Message);
System\Resources\ResXResourceReader.cs (2)
379string newMessage = string.Format(SR.SerializationException, reader[ResXResourceWriter.TypeStr], pt.Y, pt.X, se.Message); 386string newMessage = string.Format(SR.InvocationException, reader[ResXResourceWriter.TypeStr], pt.Y, pt.X, tie.InnerException?.Message);
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (1)
495throw new COMException(string.Format(SR.TYPEINFOPROCESSORGetDocumentationFailed, dispid, hr, "ITypeInfo", (int)hr));
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
879string.Format(
System\Windows\Forms\Controls\ImageList\ImageList.cs (2)
159throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidBoundArgument, "ImageSize.Width", value.Width, 1, s_maxImageWidth)); 164throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidBoundArgument, "ImageSize.Height", value.Height, 1, s_maxImageHeight));
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
478throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidBoundArgument, nameof(Value), value, nameof(Minimum), nameof(Maximum)));
System\Windows\Forms\Controls\ToolStrips\OpacityConverter.cs (2)
68string.Format(SR.InvalidBoundArgument, 79string.Format(SR.InvalidBoundArgument,
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
621throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidBoundArgument, nameof(Value), value, $"'{nameof(Minimum)}'", $"'${nameof(Maximum)}'"));
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (1)
50throw new ArgumentException(string.Format(SR.TreeNodeBoundToAnotherTreeView), nameof(value));
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (1)
316throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidBoundArgument, nameof(Value), value, $"'{nameof(Minimum)}'", $"'{nameof(Maximum)}'"));
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
358throw new ArgumentOutOfRangeException(nameof(value), string.Format(SR.InvalidBoundArgument, nameof(Value), value, $"'{nameof(Minimum)}'", $"'{nameof(Maximum)}'"));
System\Windows\Forms\Scrolling\ScrollProperties.cs (1)
223throw new ArgumentOutOfRangeException(nameof(value), string.Format(SR.InvalidBoundArgument, nameof(Value), value, $"'{nameof(Minimum)}'", $"'{nameof(Maximum)}'"));
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
887_propertyGridLabel.Text = string.Format(SR.DataGridViewProperties);
System\Windows\Forms\Design\FormDocumentDesigner.cs (1)
167string.Format(
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
132if (verb.Text.Equals(string.Format(SR.TableLayoutPanelDesignerEditRowAndCol)))
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (1)
494_label2.Text = string.Format(SR.CollectionEditorPropertiesNone);
System.Windows.Forms.Tests (1)
System\Windows\Forms\ScrollBarTests.cs (1)
1754string expectedMessage = new ArgumentOutOfRangeException(paramName, string.Format(SR.InvalidBoundArgument, nameof(control.Value), value, $"'{nameof(control.Minimum)}'", $"'{nameof(control.Maximum)}'")).Message;