126 references to Format
Client.TypedClient.IntegrationTests (1)
TypedProxyTests.4.0.0.cs (1)
201Assert.True(success, String.Format("Test didn't complete within the expected time"));
Contract.Message.IntegrationTests (1)
MessageContractTests.4.4.0.cs (1)
81String.Format("Array item {0} of element {1} was expected to be {2}, actual was {3}",
crossgen2 (1)
Program.cs (1)
620throw new Exception(string.Format(SR.ErrorCompositeKeyFileNotPublicKey));
Crossgen2Tasks (1)
CommonFilePulledFromSdkRepo\Logger.cs (1)
105text: string.Format(format, args),
dotnet (6)
Commands\Help\HelpCommand.cs (1)
98string.Format(
Commands\New\PostActions\DotnetRestorePostActionProcessor.cs (1)
36Reporter.Error.WriteLine(string.Format(CliCommandStrings.PostAction_Restore_Error_FailedToDetermineProjectToRestore));
Commands\Tool\Install\ToolInstallCommand.cs (1)
50string.Format(
Commands\Tool\Install\ToolInstallLocalCommand.cs (2)
167string.Format( 199string.Format(
ToolManifest\ToolManifestEditor.cs (1)
57throw new ToolManifestException(string.Format(
GenerateDocumentationAndConfigFiles (2)
src\roslyn\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,
ILCompiler.Compiler (2)
src\runtime\src\tools\illink\src\ILLink.Shared\DiagnosticString.cs (2)
31string.Format(_messageFormat, args); 36string.Format(_titleFormat, args);
ILCompiler.MetadataTransform (1)
Internal\Metadata\NativeFormat\Writer\NativeMetadataWriter.cs (1)
941return string.Format("{0}{1} (Seq:{2}) {3}",
ILCompiler.ReadyToRun (1)
IBC\IBCDataReader.cs (1)
183throw new IBCException(String.Format("Version mismatch: {0}.{1} not between {2}.{3} and {4}.{5}",
illink (2)
Infrastructure.Common (1)
xunit\WcfTestCase.cs (1)
85etwOutput.AppendLine(String.Format("ETW message encountered FormatException '{0}' using DisplayName '{1}', format '{2}', and '{3}' payload items",
Infrastructure.IntegrationTests (1)
OSAndFrameworkTests.4.1.1.cs (1)
26String.Format("OSID was not properly detected:{0} The RuntimeInformation.OSDescription is = \'{1}\" {2} The RuntimeIdentifier is = {3}",
Microsoft.Build (1)
Definition\ToolsetReader.cs (1)
673public readonly string MSBuildPropertyName => String.Format($"$({StringRepresentation})");
Microsoft.Build.Tasks.Git (1)
GitOperations.cs (1)
279new[] { string.Format(Resources.SubmoduleWithoutCommit, new[] { submodule.Name }) });
Microsoft.CodeAnalysis (6)
Compilation\Compilation.cs (1)
3798return string.Format("{0}: {1} {2} -> {3} {4}", this.AssemblyName, source.TypeKind.ToString(), source.Name, destination.TypeKind.ToString(), destination.Name);
Diagnostic\LocalizableResourceString.cs (1)
75(_formatArguments.Length > 0 ? string.Format(resourceString, _formatArguments) : resourceString) :
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
1474return string.Format(CodeAnalysisResources.CompilerAnalyzerThrows, analyzerName, ex.GetType().ToString(), ex.Message, ex.CreateDiagnosticDescription());
Emit\EditAndContinue\EncLocalInfo.cs (1)
77return string.Format("[Id={0}, SynthesizedKind={1}, Type={2}, Constraints={3}, Sig={4}]",
Emit\EditAndContinueMethodDebugInformation.cs (1)
83throw new InvalidDataException(string.Format(CodeAnalysisResources.InvalidDataAtOffset,
MetadataReader\MetadataTypeName.cs (1)
373return String.Format("{{{0},{1},{2},{3}}}", NamespaceName, TypeName, UseCLSCompliantNameArityEncoding.ToString(), _forcedArity.ToString(System.Globalization.CultureInfo.InvariantCulture));
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
298? string.Format(
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\roslyn\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.DotNet.ApiCompat.Task (1)
src\sdk\src\Tasks\Common\Logger.cs (1)
105text: string.Format(format, args),
Microsoft.DotNet.ApiCompatibility (5)
Rules\AssemblyIdentityMustMatch.cs (1)
179string.Format(format, leftProperty, rightProperty, leftName, rightName),
Rules\CannotRemoveBaseTypeOrInterface.cs (2)
66string.Format(Resources.CannotRemoveBaseType, left.ToDisplayString(SymbolExtensions.DisplayFormat), leftBaseType.ToDisplayString(SymbolExtensions.DisplayFormat), rightName, leftName), 90string.Format(Resources.CannotRemoveBaseInterface, left.ToDisplayString(SymbolExtensions.DisplayFormat), leftInterface.ToDisplayString(SymbolExtensions.DisplayFormat), rightName, leftName),
Rules\EnumsMustMatch.cs (1)
80string.Format(Resources.EnumValuesMustMatch, left.Name, lEntry.Key, lEntry.Value.ConstantValue, rField.ConstantValue),
Runner\ApiCompatRunner.cs (1)
83log.LogError(string.Format(Resources.ApiCompatibilityHeader,
Microsoft.DotNet.Build.Tasks.Workloads (1)
WorkloadPackageBase.cs (1)
344throw new Exception(string.Format(Strings.NoInstallerVersion, taskName,
Microsoft.DotNet.Cli.CoreUtils (1)
GracefulException.cs (1)
31public GracefulException(string format, params string[] args) : this(string.Format(format, args))
Microsoft.DotNet.Cli.Definitions (1)
Commands\Tool\ToolLocationOptions.cs (1)
62string.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.TestFramework (2)
Learners.cs (1)
640string settings = string.Format("qfeats={0} dfeats={1} negdocs={2} iter={3} gamma={4} accel=sse",
TestCommandBase.cs (1)
969string extraArgs = string.Format("{0} {1} {2} {3} k={4}", "prexf=Term{col=Label:Cat} prexf=CategoricalTransform{col=Cat01}",
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),
Microsoft.NET.Build.Tasks (3)
LockFileExtensions.cs (1)
46message = string.Format(Strings.AssetsFileMissingRuntimeIdentifier, lockFile.Path, targetMoniker, frameworkString, runtimeIdentifier);
ResolveTargetingPackAssets.cs (1)
183errors.Add(string.Format(
src\sdk\src\Tasks\Common\Logger.cs (1)
105text: string.Format(format, args),
Microsoft.NET.Sdk.Publish.Tasks (1)
Tasks\OneDeploy\OneDeploy.cs (1)
147_taskLogger.LogError(string.Format(Resources.ONEDEPLOY_FailedWithLogs,
Microsoft.TemplateEngine.Cli (4)
ChoiceTemplateParameter.cs (3)
114argumentResult.AddError(string.Format( 133argumentResult.AddError(string.Format( 156argumentResult.AddError(string.Format(
TemplatePackageDisplay.cs (1)
122_reporterOutput.WriteLine(string.Format(LocalizableStrings.TemplatePackageCoordinator_Download_VulnerablePackage));
Microsoft.TemplateEngine.Edge (1)
Template\ParameterSetBuilder.cs (1)
307string.Format(
Microsoft.TemplateEngine.Utils (1)
DefaultTemplateEngineHost.cs (1)
79LogMessage(string.Format($"Error: {message}"));
NuGet.CommandLine.XPlat (1)
Commands\PackageReferenceCommands\ListPackage\ListPackageCommand.cs (1)
225throw new ArgumentException(string.Format(Strings.ListPkg_OutputVersionNotApplicable));
NuGet.Commands (1)
RestoreCommand\Utility\AuditUtility.cs (1)
282string message = string.Format(Strings.Warning_PackageWithKnownVulnerability,
NuGet.PackageManagement (1)
Audit\AuditChecker.cs (1)
258var message = string.Format(Strings.Warning_PackageWithKnownVulnerability,
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\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
179return string.Format(s.Format, formattedArgs);
System.Net.Http.WinHttpHandler (1)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
179return string.Format(s.Format, formattedArgs);
System.Net.HttpListener (1)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
179return string.Format(s.Format, formattedArgs);
System.Net.Mail (1)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
179return string.Format(s.Format, formattedArgs);
System.Net.NameResolution (1)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
179return string.Format(s.Format, formattedArgs);
System.Net.Primitives (1)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
179return string.Format(s.Format, formattedArgs);
System.Net.Quic (1)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
179return string.Format(s.Format, formattedArgs);
System.Net.Requests (1)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
179return string.Format(s.Format, formattedArgs);
System.Net.Security (1)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
179return string.Format(s.Format, formattedArgs);
System.Net.Sockets (1)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
179return string.Format(s.Format, formattedArgs);
System.Net.WebSockets (1)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
179return string.Format(s.Format, formattedArgs);
System.Private.CoreLib (4)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (2)
571/// Writes a formatted string to the stream, using the same semantics as <see cref="string.Format(string, ReadOnlySpan{object?})"/>. 637/// 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\runtime\src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (2)
351/// Writes a formatted string to the text stream, using the same semantics as <see cref="string.Format(string, ReadOnlySpan{object?})"/>. 578/// 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.NetTcp (1)
System\ServiceModel\NetTcpSecurity.cs (1)
21string.Format("Invalid SecurityMode value: {0} = {1} (default is {2} = {3}).",
System.ServiceModel.Primitives (1)
System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
446throw new FormatException(string.Format(
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.ServiceModel.UnixDomainSocket (1)
System\ServiceModel\UnixDomainSocketSecurity.cs (1)
29string.Format("Invalid SecurityMode value: {0} = {1} (default is {2} = {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)
376string newMessage = string.Format(SR.SerializationException, reader[ResXResourceWriter.TypeStr], pt.Y, pt.X, se.Message); 383string 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)
877string.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)
485throw 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)
619throw 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)
356throw 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)
884_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);
UnitTests.Common (8)
TestHelpers.cs (8)
158errorBuilder.AppendLine(String.Format("{0} expected operation {1}.IsOneWay = {2}, actual = {3}", 166errorBuilder.AppendLine(String.Format("{0} expected operation {1}.HasTask = {2}, actual = {3}", 186errorBuilder.AppendLine(String.Format("{0} message action {1} expected Direction = {2}, actual = {3}", 194errorBuilder.AppendLine(String.Format("{0} message action {1} expected MessageType = {2}, actual = {3}", 226errorBuilder.AppendLine(String.Format("action {0}, section {1}, expected part count = {2}, actual = {3}", 250errorBuilder.AppendLine(String.Format("action {0}, section {1}, expected part Name = {2}, actual = {3}", 256errorBuilder.AppendLine(String.Format("action {0}, section {1}, name {2}, expected Type = {3}, actual = {4}", 262errorBuilder.AppendLine(String.Format("action {0}, section {1}, name {2}, expected Multiple = {3}, actual = {4}",