108 references to Format
BasicWebSite (1)
Areas\Area2\Controllers\RemoteAttribute_VerifyController.cs (1)
18return new JsonResult(value: string.Format(
CodeGenerator (1)
HttpUtilities\HttpUtilities.cs (1)
61return string.Format(CultureInfo.InvariantCulture, @"// Licensed to the .NET Foundation under one or more agreements.
Crossgen2Tasks (2)
CommonFilePulledFromSdkRepo\BuildErrorException.cs (1)
28: this(string.Format(CultureInfo.CurrentCulture, format, args))
CommonFilePulledFromSdkRepo\TaskBase.cs (1)
66text = string.Format(CultureInfo.InvariantCulture,
dotnet-user-jwts (1)
Helpers\ConsoleTable.cs (1)
93var columnHeaders = string.Format(CultureInfo.InvariantCulture, formatRow, _columns.ToArray());
GetDocument.Insider (3)
artifacts\obj\GetDocument.Insider\Release\net10.0\Microsoft.Extensions.ApiDescription.Tool.Resources.cs (3)
86=> string.Format(Culture, GetResourceString("MethodReturnTypeUnsupported"), p0, p1, p2, p3); 104=> string.Format(Culture, GetResourceString("MethodsNotFound"), p0, p1, p2, p3); 128=> string.Format(Culture, GetResourceString("ServiceProviderNotFound"), p0, p1, p2, p3, p4);
Microsoft.AspNetCore.Antiforgery (1)
artifacts\obj\Microsoft.AspNetCore.Antiforgery\Release\net10.0\Microsoft.AspNetCore.Antiforgery.Resources.cs (1)
34=> string.Format(Culture, GetResourceString("AntiforgeryTokenValidator_AuthenticatedUserWithoutUsername"), p0, p1, p2, p3, p4, p5);
Microsoft.AspNetCore.Components (4)
artifacts\obj\Microsoft.AspNetCore.Components\Release\net10.0\Microsoft.AspNetCore.Components.Routing.Resources.cs (4)
58=> string.Format(Culture, GetResourceString("RouteConstraintBuilder_ValidationMustBeStringOrCustomConstraint"), p0, p1, p2, p3); 64=> string.Format(Culture, GetResourceString("RouteConstraintBuilder_CouldNotResolveConstraint"), p0, p1, p2, p3); 84=> string.Format(Culture, GetResourceString("RoutePattern_InvalidParameterConstraintReference"), p0, p1, p2, p3); 96=> string.Format(Culture, GetResourceString("RoutePattern_InvalidStringConstraintReference"), p0, p1, p2, p3);
Microsoft.AspNetCore.Cryptography.Internal (1)
artifacts\obj\Microsoft.AspNetCore.Cryptography.Internal\Release\net10.0\Microsoft.AspNetCore.Cryptography.Internal.Resources.cs (1)
40=> string.Format(Culture, GetResourceString("BCRYPT_KEY_LENGTHS_STRUCT_InvalidKeyLength"), p0, p1, p2, p3);
Microsoft.AspNetCore.DataProtection.Tests (4)
KeyManagement\XmlKeyManagerTests.cs (3)
138string expectedXml = string.Format( 237string expectedEscrowXml = string.Format( 261string expectedRepositoryXml = String.Format(
StringLoggerFactory.cs (1)
63string message = string.Format(CultureInfo.InvariantCulture,
Microsoft.AspNetCore.Diagnostics (1)
StatusCodePage\StatusCodePagesOptions.cs (1)
47return string.Format(CultureInfo.InvariantCulture, "Status Code: {0}{1}{2}{3}",
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
src\Grpc\JsonTranscoding\src\Shared\X509CertificateHelpers.cs (1)
113throw new FormatException(string.Format(
Microsoft.AspNetCore.Hosting (1)
Internal\ConfigureBuilder.cs (1)
46throw new InvalidOperationException(string.Format(
Microsoft.AspNetCore.Http.Abstractions (1)
artifacts\obj\Microsoft.AspNetCore.Http.Abstractions\Release\net10.0\Microsoft.AspNetCore.Http.Abstractions.Resources.cs (1)
110=> string.Format(Culture, GetResourceString("RouteValueDictionary_DuplicatePropertyName"), p0, p1, p2, p3);
Microsoft.AspNetCore.Mvc.Core (9)
artifacts\obj\Microsoft.AspNetCore.Mvc.Core\Release\net10.0\Microsoft.AspNetCore.Mvc.Core.Resources.cs (9)
98=> string.Format(Culture, GetResourceString("AsyncActionFilter_InvalidShortCircuit"), p0, p1, p2, p3); 104=> string.Format(Culture, GetResourceString("AsyncResultFilter_InvalidShortCircuit"), p0, p1, p2, p3); 236=> string.Format(Culture, GetResourceString("AsyncResourceFilter_InvalidShortCircuit"), p0, p1, p2, p3); 470=> string.Format(Culture, GetResourceString("MiddlewareFilter_ServiceResolutionFail"), p0, p1, p2, p3); 582=> string.Format(Culture, GetResourceString("ApiController_MultipleBodyParametersFound"), p0, p1, p2, p3); 630=> string.Format(Culture, GetResourceString("ValidationVisitor_ExceededMaxPropertyDepth"), p0, p1, p2, p3); 636=> string.Format(Culture, GetResourceString("ReferenceToNewtonsoftJsonRequired"), p0, p1, p2, p3, p4); 642=> string.Format(Culture, GetResourceString("ModelBinding_ExceededMaxModelBindingCollectionSize"), p0, p1, p2, p3, p4); 648=> string.Format(Culture, GetResourceString("ModelBinding_ExceededMaxModelBindingRecursionDepth"), p0, p1, p2, p3);
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
artifacts\obj\Microsoft.AspNetCore.Mvc.Formatters.Xml\Release\net10.0\Microsoft.AspNetCore.Mvc.Formatters.Xml.Resources.cs (1)
42=> string.Format(Culture, GetResourceString("RequiredProperty_MustHaveDataMemberRequired"), p0, p1, p2, p3, p4, p5, p6);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (4)
XmlDataContractSerializerInputFormatterTest.cs (1)
686var input = string.Format(
XmlDataContractSerializerOutputFormatterTest.cs (3)
504var expectedOutput = string.Format( 548var expectedOutput = string.Format( 595var expectedOutput = string.Format(
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
artifacts\obj\Microsoft.AspNetCore.Mvc.NewtonsoftJson\Release\net10.0\Microsoft.AspNetCore.Mvc.NewtonsoftJson.Resources.cs (1)
46=> string.Format(Culture, GetResourceString("JsonHelperMustBeAnInstanceOfNewtonsoftJson"), p0, p1, p2, p3);
Microsoft.AspNetCore.Mvc.Razor (1)
artifacts\obj\Microsoft.AspNetCore.Mvc.Razor\Release\net10.0\Microsoft.AspNetCore.Mvc.Razor.Resources.cs (1)
114=> string.Format(Culture, GetResourceString("CouldNotResolveApplicationRelativeUrl_TagHelper"), p0, p1, p2, p3, p4, p5);
Microsoft.AspNetCore.Mvc.RazorPages (1)
artifacts\obj\Microsoft.AspNetCore.Mvc.RazorPages\Release\net10.0\Microsoft.AspNetCore.Mvc.RazorPages.Resources.cs (1)
68=> string.Format(Culture, GetResourceString("AsyncPageFilter_InvalidShortCircuit"), p0, p1, p2, p3);
Microsoft.AspNetCore.Mvc.TagHelpers (6)
artifacts\obj\Microsoft.AspNetCore.Mvc.TagHelpers\Release\net10.0\Microsoft.AspNetCore.Mvc.TagHelpers.Resources.cs (6)
40=> string.Format(Culture, GetResourceString("AnchorTagHelper_CannotOverrideHref"), p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11); 46=> string.Format(Culture, GetResourceString("FormTagHelper_CannotOverrideAction"), p0, p1, p2, p3, p4, p5, p6, p7, p8, p9); 52=> string.Format(Culture, GetResourceString("InputTagHelper_InvalidExpressionResult"), p0, p1, p2, p3, p4, p5, p6); 64=> string.Format(Culture, GetResourceString("InputTagHelper_ValueRequired"), p0, p1, p2, p3); 70=> string.Format(Culture, GetResourceString("TagHelpers_NoProvidedMetadata"), p0, p1, p2, p3); 94=> string.Format(Culture, GetResourceString("FormActionTagHelper_CannotOverrideFormAction"), p0, p1, p2, p3, p4, p5, p6, p7, p8, p9);
Microsoft.AspNetCore.Mvc.Testing (1)
artifacts\obj\Microsoft.AspNetCore.Mvc.Testing\Release\net10.0\Microsoft.AspNetCore.Mvc.Testing.Resources.cs (1)
40=> string.Format(Culture, GetResourceString("MissingBuilderMethod"), p0, p1, p2, p3, p4, p5);
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
artifacts\obj\Microsoft.AspNetCore.Mvc.ViewFeatures\Release\net10.0\Microsoft.AspNetCore.Mvc.ViewFeatures.Resources.cs (3)
54=> string.Format(Culture, GetResourceString("ViewComponent_CannotFindComponent"), p0, p1, p2, p3); 254=> string.Format(Culture, GetResourceString("HtmlGenerator_FieldNameCannotBeNullOrEmpty"), p0, p1, p2, p3, p4); 308=> string.Format(Culture, GetResourceString("TempDataProperties_InvalidType"), p0, p1, p2, p3);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (5)
Rendering\DefaultTemplatesUtilities.cs (1)
337return string.Format(
Rendering\HtmlHelperLinkGenerationTest.cs (4)
48var expectedLink = string.Format( 63string.Format( 119var expectedLink = string.Format( 133string.Format(
Microsoft.AspNetCore.Routing (4)
artifacts\obj\Microsoft.AspNetCore.Routing\Release\net10.0\Microsoft.AspNetCore.Routing.Resources.cs (4)
122=> string.Format(Culture, GetResourceString("RouteConstraintBuilder_ValidationMustBeStringOrCustomConstraint"), p0, p1, p2, p3); 128=> string.Format(Culture, GetResourceString("RouteConstraintBuilder_CouldNotResolveConstraint"), p0, p1, p2, p3); 186=> string.Format(Culture, GetResourceString("RoutePattern_InvalidParameterConstraintReference"), p0, p1, p2, p3); 198=> string.Format(Culture, GetResourceString("RoutePattern_InvalidStringConstraintReference"), p0, p1, p2, p3);
Microsoft.AspNetCore.Server.HttpSys (1)
UrlPrefix.cs (1)
24FullPrefix = string.Format(CultureInfo.InvariantCulture, "{0}://{1}:{2}{3}", Scheme, Host, Port, Path);
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Common\DeploymentParameters.cs (1)
184return string.Format(
Microsoft.AspNetCore.Server.Kestrel.Core (1)
artifacts\obj\Microsoft.AspNetCore.Server.Kestrel.Core\Release\net10.0\Microsoft.AspNetCore.Server.Kestrel.Core.CoreStrings.cs (1)
402=> string.Format(Culture, GetResourceString("CertNotFoundInStore", new [] { "subject", "storeLocation", "storeName", "allowInvalid" }), subject, storeLocation, storeName, allowInvalid);
Microsoft.AspNetCore.SignalR.Tests (1)
NativeAotTests.cs (1)
419string message = string.Format(CultureInfo.InvariantCulture,
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Errors\ErrorHandling.cs (1)
159return new RuntimeBinderException(string.Format(CultureInfo.InvariantCulture, ErrorFacts.GetMessage(id), prgpsz));
Microsoft.DotNet.Build.Tasks.TargetFramework (1)
ChooseBestP2PTargetFrameworkTask.cs (1)
107Log.LogError(string.Format(CultureInfo.CurrentCulture, "Project '{0}' targets '{1}'. It cannot be referenced by a project that targets '{2}{3}'.", project.ItemSpec, referencedProjectFrameworkString, projectNuGetFramework.DotNetFrameworkName, projectNuGetFramework.HasPlatform ? "-" + projectNuGetFramework.DotNetPlatformName : string.Empty));
PresentationCore (11)
System\Windows\Media\Animation\KeySplineConverter.cs (1)
114return String.Format(
System\Windows\Media\ArcSegment.cs (1)
143return String.Format(provider,
System\Windows\Media\BezierSegment.cs (1)
98return String.Format(provider,
System\Windows\Media\Color.cs (1)
278return string.Format(provider,
System\Windows\Media3D\Generated\Matrix3D.cs (1)
372return String.Format(provider,
System\Windows\Media3D\Generated\Point3D.cs (1)
334return String.Format(provider,
System\Windows\Media3D\Generated\Point4D.cs (1)
355return String.Format(provider,
System\Windows\Media3D\Generated\Quaternion.cs (1)
324return String.Format(provider,
System\Windows\Media3D\Generated\Rect3D.cs (1)
325return String.Format(provider,
System\Windows\Media3D\Generated\Size3D.cs (1)
313return String.Format(provider,
System\Windows\Media3D\Generated\Vector3D.cs (1)
334return String.Format(provider,
PresentationFramework (3)
System\Windows\Controls\VirtualizingStackPanel.cs (1)
12253return args.IsEmpty ? string.Empty : string.Format(CultureInfo.InvariantCulture, s_format[args.Length], args);
System\Windows\Documents\TextStore.cs (1)
4838return args.IsEmpty ? string.Empty : string.Format(CultureInfo.InvariantCulture, s_format[args.Length], args);
System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
672throw new XamlParseException(string.Format(CultureInfo.CurrentCulture, SR.Format(SR.UnknownBamlRecord, recordType)));
PresentationUI (7)
MS\Internal\Documents\Application\DocumentPropertiesDialog.cs (1)
227return String.Format(
MS\Internal\Documents\Application\DocumentStream.cs (1)
816string temp = string.Format(
MS\Internal\Documents\Application\Trace.cs (2)
26string.Format( 44string.Format(
MS\Internal\Documents\SignatureResourceHelper.cs (3)
223result = string.Format(CultureInfo.CurrentCulture, 324String.Format( 362return String.Format(
ReachFramework (2)
PrintConfig\PrtCap_Public_Simple.cs (1)
97return String.Format(CultureInfo.CurrentCulture, "({0}, {1}), ({2}, {3})",
PrintConfig\PrtTicket_Editor.cs (1)
221throw NewPTFormatException(String.Format(CultureInfo.CurrentCulture,
Swaggatherer (1)
Template.cs (1)
65return string.Format(
System.CodeDom (1)
System\CodeDom\Compiler\CompilerError.cs (1)
34string.Format(CultureInfo.InvariantCulture, "{0}({1},{2}) : {3} {4}: {5}", FileName, Line, Column, WarningString, ErrorNumber, ErrorText) :
System.ComponentModel.Composition (4)
System\ComponentModel\Composition\ExceptionBuilder.cs (1)
118return string.Format(CultureInfo.CurrentCulture, format, arguments);
System\ComponentModel\Composition\ReflectionModel\GenericServices.cs (1)
78return string.Format(CultureInfo.InvariantCulture, originalGenericName, genericFormatArgs);
System\ComponentModel\Composition\ReflectionModel\GenericSpecializationPartCreationInfo.cs (2)
419return string.Format(CultureInfo.InvariantCulture, originalValue, specializationIdentities); 429return string.Format(CultureInfo.InvariantCulture, originalValue, _specializationIdentities);
System.Configuration.ConfigurationManager (1)
System\Configuration\ProtectedConfigurationSection.cs (1)
96return string.Format(CultureInfo.InvariantCulture, EncryptedSectionTemplate,
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (2)
327Write(string.Format(FormatProvider, format, arg)); 534WriteLine(string.Format(FormatProvider, format, arg));
src\libraries\System.Private.CoreLib\src\System\Runtime\MemoryFailPoint.cs (1)
384return string.Format(Globalization.CultureInfo.InvariantCulture, "MemoryFailPoint detected insufficient memory to guarantee an operation could complete. Checked for {0} MB, for allocation size of {1} MB. Need page file? {2} Need Address Space? {3} Need Contiguous address space? {4} Avail page file: {5} MB Total free VA space: {6} MB Contiguous free address space (found): {7} MB Space reserved by process's MemoryFailPoints: {8} MB",
System.Private.Xml (3)
System\Xml\Serialization\XmlSerializationWriter.cs (1)
1685_writer.Write(string.Format(CultureInfo.InvariantCulture, HelperClassesForUseReflection,
System\Xml\Xsl\QIL\QilXmlWriter.cs (1)
126this.writer.WriteAttributeString("lineInfo", string.Format(CultureInfo.InvariantCulture, "[{0},{1} -- {2},{3}]",
System\Xml\Xslt\XsltException.cs (1)
147message = string.Format(CultureInfo.InvariantCulture, message, args);
System.Runtime.Caching (1)
System\Runtime\Caching\Dbg.cs (1)
37string output = string.Format(CultureInfo.InvariantCulture,
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.ToolStripContainerTypedControlCollection.cs (1)
37throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, string.Format(SR.TypedControlCollectionShouldBeOfTypes, _contentPanelType.Name, _panelType.Name)), value.GetType().Name);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (1)
52throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, string.Format(SR.TypedControlCollectionShouldBeOfType, nameof(ToolStrip))), control.GetType().Name);
System\Windows\Forms\Internal\TypedControlCollection.cs (1)
48throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, string.Format(SR.TypedControlCollectionShouldBeOfType, _typeOfControl.Name)), value.GetType().Name);
System.Windows.Input.Manipulations (1)
System\Windows\Input\Manipulations\Exceptions.cs (1)
239return string.Format(CultureInfo.CurrentCulture, format, args);
TagHelpersWebSite (1)
TagHelpers\WebsiteInformationTagHelper.cs (1)
17output.PostContent.AppendHtml(string.Format(
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\EventManager.cs (1)
119System.Diagnostics.Debug.WriteLine(string.Format(CultureInfo.CurrentCulture, "Unexpected idProp {0} for idOject 0x{1:x8} on element {2} for event {3}", idProp, idObject, el, eventId));
UIAutomationTypes (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsCLR.cs (1)
69return String.Format(System.Globalization.CultureInfo.CurrentCulture,"[{0}, {1}, {2}, {3}, {4}, {5}]", this.eM11, this.eM12, this.eM21, this.eM22, this.eDx, this.eDy );