4391 references to Format
aspire (3)
AppHostListInfoSerializerContext.g.cs (1)
84throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
BackchannelJsonSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
JsonSourceGenerationContext.g.cs (1)
83throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Aspire.Cli.Tests (1)
Commands\AddCommandTests.cs (1)
519Assert.Equal(string.Format(AddCommandStrings.NoPackagesMatchedSearchTerm, "nonexistentpackage"), displayedSubtleMessage);
Aspire.Confluent.Kafka (1)
StatisticsJsonSerializerContext.g.cs (1)
82throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Aspire.Dashboard (18)
Components_Controls_AssistantChat_razor.g.cs (2)
411__builder.AddContent(41, string.Format(Loc[nameof(AIAssistant.ChatIDEConnectionDisclaimerText)], ChatViewModel.GetLauncherDisplayName()) 1353string.Format(Loc[nameof(AIAssistant.ChatModelSelectButtonTitle)], _selectedModelItem.Text)
Components_Controls_Chart_ChartContainer_razor.g.cs (1)
344__builder.AddContent(36, (MarkupString)string.Format(ControlsStrings.ChartContainerOverflowLink, "https://aka.ms/dotnet/aspire/cardinality-limits")
Components_Controls_SpanDetails_razor.g.cs (3)
252__builder2.AddContent(8, (MarkupString)string.Format(ControlsStrings.SpanDetailsResource, ViewModel.Span.Source.Resource.ResourceName) 301__builder2.AddContent(16, (MarkupString)string.Format(ControlsStrings.SpanDetailsDuration, DurationFormatter.FormatDuration(ViewModel.Span.Duration, CultureInfo.CurrentCulture)) 370__builder2.AddContent(24, (MarkupString)string.Format(ControlsStrings.SpanDetailsStartTime, formattedStartTime)
Components_Controls_StructuredLogDetails_razor.g.cs (2)
235__builder2.AddContent(8, (MarkupString)string.Format(ControlsStrings.StructuredLogsDetailsResource, ViewModel.LogEntry.ResourceView.Resource.ResourceName) 293__builder2.AddContent(17, (MarkupString)string.Format(ControlsStrings.StructuredLogsDetailsTimestamp, FormatHelpers.FormatTimeWithOptionalDate(TimeProvider, ViewModel.LogEntry.TimeStamp, MillisecondsDisplay.Truncated))
Components_Controls_TotalItemsFooter_razor.g.cs (1)
212__builder.AddContent(6, (MarkupString)string.Format(TotalItemCount == 1 ? SingularText : PluralText, TotalItemCount)
Components_Dialogs_SettingsDialog_razor.g.cs (2)
729__builder3.AddContent(75, string.Format(Loc[nameof(Dialogs.SettingsDialogVersion)], VersionHelpers.DashboardDisplayVersion) 740__builder3.AddContent(78, string.Format(Loc[nameof(Dialogs.SettingsDialogDotNetRuntimeVersion)], System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription)
Components_Pages_TraceDetail_razor.g.cs (1)
2942__builder.AddContent(378, string.Format(Loc[nameof(Dashboard.Resources.TraceDetail.TraceDetailTraceNotFound)], TraceId)
Components_ResourcesGridColumns_UnreadLogErrorsBadge_razor.g.cs (1)
214var tooltip = _unviewedCount == 1 ? Loc[nameof(Columns.UnreadLogErrorsBadgeOneErrorLog)] : string.Format(Loc[nameof(Columns.UnreadLogErrorsBadgeErrorLogs)], _unviewedCount);
GenAIEventsContext.g.cs (1)
86throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
GenAIMessagesContext.g.cs (1)
86throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
McpConfigFileModelContext.g.cs (1)
85throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
McpInstallButtonModelContext.g.cs (1)
84throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
OtlpJsonSerializerContext.g.cs (1)
87throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Aspire.Hosting (2)
DashboardLogMessageContext.g.cs (1)
75throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
LaunchSettingsSerializerContext.g.cs (1)
78throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Aspire.Hosting.Azure.Functions (1)
LaunchSettingsSerializerContext.g.cs (1)
83throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Aspire.Hosting.Docker (1)
DockerComposeJsonContext.g.cs (1)
75throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Aspire.Hosting.Nats.Tests (1)
artifacts\obj\Aspire.Hosting.Nats.Tests\Debug\net8.0\System.Text.Json.SourceGeneration\System.Text.Json.SourceGeneration.JsonSourceGenerator\AppJsonContext.g.cs (1)
78throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Aspire.Hosting.Testing (1)
LaunchSettingsSerializerContext.g.cs (1)
83throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Aspire.Hosting.Tests (2)
AddParameterTests.cs (2)
409Assert.Equal(string.Format(InteractionStrings.ParametersInputsParameterPlaceholder, "test"), input.Placeholder); 428Assert.Equal(string.Format(InteractionStrings.ParametersInputsParameterPlaceholder, "secret"), input.Placeholder);
BoundTreeGenerator (6)
BoundNodeClassWriter.cs (6)
441Write(string.Format("BoundKind.{0}", StripBound(node.Name))); 509Write(string.Format("BoundKind.{0}", StripBound(node.Name))); 581Write(string.Format("BoundKind.{0}", StripBound(node.Name))); 623Write(string.Format("BoundKind.{0}", StripBound(node.Name))); 1463string.Format("node.{0}", field.Name)); 1505ParenList(AllSpecifiableFields(node), field => IsDerivedOrListOfDerived("BoundNode", field.Type) || field.Type == "TypeSymbol" ? ToCamelCase(field.Name) : string.Format("node.{0}", field.Name));
Client.ChannelLayer.IntegrationTests (1)
DuplexChannelWithSynchronizationContext.cs (1)
282throw new TimeoutException(string.Format("Not completed within the alloted time of {0}", ScenarioTestHelpers.TestTimeout));
Client.ClientBase.IntegrationTests (38)
ChannelBaseTests.4.0.0.cs (5)
196String.Format("Expected client NOT to receive events but actual was '{0}'", actual)); 200String.Format("Expected proxy NOT to receive events but actual was '{0}'", actual)); 246String.Format("Expected client state to be Closed but actual was '{0}'", client.State)); 250String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).State)); 254String.Format("Expected channel factory state to be Closed but actual was '{0}'", factory.State));
ClientBaseTests.4.0.0.cs (33)
220String.Format("Expected client state to be Created but actual was '{0}'", client.State)); 223String.Format("Expected channel factory state to be Created but actual was '{0}'", factory.State)); 242String.Format("Expected client state to be Opened but actual was '{0}'", client.State)); 245String.Format("Expected channel factory state to be Opened but actual was '{0}'", factory.State)); 248String.Format("Expected proxy state to be Opened but actual was '{0}'", ((ICommunicationObject)serviceProxy).State)); 257String.Format("Expected client state to be Closed but actual was '{0}'", client.State)); 261String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).State)); 265String.Format("Expected channel factory state to be Closed but actual was '{0}'", factory.State)); 295String.Format("Expected client state to be Created but actual was '{0}'", client.State)); 298String.Format("Expected channel factory state to be Created but actual was '{0}'", factory.State)); 318String.Format("Expected client state to be Opened but actual was '{0}'", client.State)); 321String.Format("Expected channel factory state to be Opened but actual was '{0}'", factory.State)); 324String.Format("Expected proxy state to be Opened but actual was '{0}'", ((ICommunicationObject)serviceProxy).State)); 334String.Format("Expected client state to be Closed but actual was '{0}'", client.State)); 338String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).State)); 342String.Format("Expected channel factory state to be Closed but actual was '{0}'", factory.State)); 374String.Format("Expected client state to be Created but actual was '{0}'", client.State)); 377String.Format("Expected channel factory state to be Created but actual was '{0}'", factory.State)); 397String.Format("Expected client state to be Opened but actual was '{0}'", client.State)); 400String.Format("Expected channel factory state to be Opened but actual was '{0}'", factory.State)); 403String.Format("Expected proxy state to be Opened but actual was '{0}'", ((ICommunicationObject)serviceProxy).State)); 413String.Format("Expected client state to be Closed but actual was '{0}'", client.State)); 417String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).State)); 421String.Format("Expected channel factory state to be Closed but actual was '{0}'", factory.State)); 463String.Format("Expected client state to be Closed but actual was '{0}'", client.State)); 467String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).State)); 471String.Format("Expected channel factory state to be Closed but actual was '{0}'", factory.State)); 514String.Format("Expected client state to be Closed but actual was '{0}'", client.State)); 518String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).State)); 522String.Format("Expected channel factory state to be Closed but actual was '{0}'", factory.State)); 669String.Format("Expected client NOT to receive events but actual was '{0}'", actual)); 673String.Format("Expected proxy NOT to receive events but actual was '{0}'", actual)); 799Assert.True(string.Empty == outofScopeResult, string.Format("Expect call out of the OperationContextScope does not have the custom header {0}", customHeaderName));
Client.ExpectedExceptions.IntegrationTests (10)
ExpectedExceptionTests.4.0.0.cs (2)
363Assert.True(toe == null, String.Format("Task [{0}] should not have failed with TimeoutException", i)); 368String.Format("Expected at least one operation to throw an exception, but none did. Elapsed time = {0} ms.",
ExpectedExceptionTests.4.1.0.cs (8)
259throw new TimeoutException(String.Format("The call to the Service did not complete within the alloted time of: {0}", ScenarioTestHelpers.TestTimeout)); 311throw new TimeoutException(String.Format("The call to the Service did not complete within the alloted time of: {0}", ScenarioTestHelpers.TestTimeout)); 363Assert.Fail(string.Format("Expected type SecurityNegotiationException, Actual: {0}", exceptionType)); 405Assert.Fail(string.Format("Expected type SecurityNegotiationException, Actual: {0}", exceptionType)); 452Assert.Fail(string.Format("Expected type SecurityNegotiationException, Actual: {0}", exceptionType)); 613Assert.True(toe == null, String.Format("Task [{0}] should not have failed with TimeoutException", i)); 618String.Format("Expected at least one operation to throw an exception, but none did. Elapsed time = {0} ms.", 622String.Format("Expected at least one operation to succeed but none did. Elapsed time = {0} ms.",
Client.TypedClient.IntegrationTests (3)
TypedProxyTests.4.0.0.cs (3)
425throw new TimeoutException(string.Format("Not completed within the alloted time of {0}", maxTestWaitTime)); 481Assert.True(success, String.Format("The AsyncCallback was not called. If the AsyncCallback had been called the waitEvent would have been set to 'True', but the value of waitEvent was: {0}", success)); 517Assert.True(success, String.Format("The IAsyncResult was not called. If the IAsyncResult had been called the AsyncWaitHandle would have been set to 'True', but the value of AsyncWaitHandle was: {0}", success));
ConfigurationSchemaGenerator (2)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (2)
636initExceptionMessage = string.Format(Emitter.ExceptionMessages.MultipleParameterizedConstructors, typeSymbol.GetFullName()); 648initExceptionMessage = string.Format(Emitter.ExceptionMessages.MissingPublicInstanceConstructor, typeSymbol.GetFullName());
Contract.Fault.IntegrationTests (3)
FaultExceptionTests.4.0.0.cs (2)
253Assert.True(response[0].GetType() == typeof(FaultDetail), String.Format("Expected response item to be FaultDetail but actual was {0}", response[0].GetType())); 255Assert.True(response[1].GetType() == typeof(KnownTypeA), String.Format("Expected response item to be FaultDetail2 but actual was {0}", response[1].GetType()));
FaultExceptionTests.cs (1)
43Assert.True(TestFaultContractInfosBehavior.testFaultWithKnownTypeClientOp.FaultContractInfos.Count == 1, string.Format("expected FaultContractInfos count is 1, actual: {0}", TestFaultContractInfosBehavior.testFaultWithKnownTypeClientOp.FaultContractInfos.Count));
Contract.Message.IntegrationTests (1)
MessageContractTests.4.4.0.cs (1)
72String.Format("The {0} element returned a null array", elementName));
Contract.Service.IntegrationTests (13)
ServiceContractTests.4.0.0.cs (4)
312String.Format("Expected factory state 'Opened', actual was '{0}'", factory.State)); 366String.Format("Expected proxy state 'Opened', actual was '{0}'", proxyAsCommunicationObject.State)); 421String.Format("Expected factory state 'Closed', actual was '{0}'", factory.State)); 470String.Format("Expected proxy state 'Closed', actual was '{0}'", proxyAsCommunicationObject.State));
ServiceContractTests.4.1.0.cs (9)
703String.Format("Expected factory state 'Closed', actual was '{0}'", factory.State)); 743String.Format("Expected channel 1 state 'Closed', actual was '{0}'", ((ICommunicationObject)serviceProxy1).State)); 745String.Format("Expected channel 2 state 'Closed', actual was '{0}'", ((ICommunicationObject)serviceProxy2).State)); 793String.Format("Expected factory state 'Closed', actual was '{0}'", factory.State)); 833String.Format("Expected channel 1 state 'Closed', actual was '{0}'", ((ICommunicationObject)serviceProxy1).State)); 835String.Format("Expected channel 2 state 'Closed', actual was '{0}'", ((ICommunicationObject)serviceProxy2).State)); 884String.Format("Expected factory state 'Closed', actual was '{0}'", factory.State)); 924String.Format("Expected channel 1 state 'Closed', actual was '{0}'", ((ICommunicationObject)serviceProxy1).State)); 926String.Format("Expected channel 2 state 'Closed', actual was '{0}'", ((ICommunicationObject)serviceProxy2).State));
Crossgen2Tasks (1)
ResolveReadyToRunCompilers.cs (1)
415string clrJitFileName = string.Format(v5_clrJitFileNamePattern, GetTargetSpecForVersion5());
dotnet-svcutil.xmlserializer (1)
src\Common\src\System\SR.cs (1)
41return String.Format(resourceFormat, p1);
dotnet-svcutil-lib (938)
CodeDomFixup\EndpointSelector.cs (1)
218s_bindingValidationErrors.Add(string.Format(SR.BindingElementTypeNotSupportedFormat, bindingElement.GetType().FullName));
CodeSerializer.cs (1)
107throw new ToolRuntimeException(string.Format(SR.ErrCannotCreateFileFormat, _outputFilePath), e);
CommandLineParser.cs (3)
151options.AddError(string.Format(SR.ErrUnknownSwitchFormat, arg)); 169options.AddError(string.Format(SR.ErrArgumentWithoutValue, argSwitch.Name)); 179options.AddError(string.Format(SR.ErrSingleUseSwitchFormat, argSwitch.Name));
CommandProcessorOptions.cs (4)
168fileOptions.AddWarning(string.Format(SR.WrnExtraParamsOnInputFileParamIgnoredFormat, disallowedSwitchesOnParamsFilesProvided.Select(s => $"'{s.Name}'").Aggregate((msg, n) => $"{msg}, '{n}'")), 0); 297this.AddWarning(string.Format(SR.WrnUnexpectedArgumentFormat, cmdSwitch.Name), 0); 308this.AddWarning(string.Format(SR.WrnUnexpectedInputsFormat, this.Inputs.Select(i => $"{i}''").Aggregate((msg, i) => $"{msg}, {i}"))); 315this.AddWarning(string.Format(SR.WrnUnexpectedArgumentFormat, option.Name));
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGenerator.cs (5)
824throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e"); 1143throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e"); 1803throw new ArgumentException(string.Format(SRCodeDom.InvalidPrimitiveType, e.Value.GetType().ToString())); 1911throw new ArgumentException(string.Format(SRCodeDom.Argument_NullComment, "e"), "e"); 2165throw new ArgumentException(string.Format(SRCodeDom.InvalidIdentifier, value));
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (7)
62throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e"); 99throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e"); 500throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e"); 833throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e"); 1019throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e"); 1025throw new ArgumentException(string.Format(SRCodeDom.InvalidPathCharsInChecksum, e.FileName)); 1031throw new ArgumentException(string.Format(SRCodeDom.InvalidRegion, e.RegionText));
FrameworkFork\Microsoft.CodeDom\Compiler\CompilerInfo.cs (2)
50throw new ConfigurationErrorsException(string.Format(SRCodeDom.Unable_To_Locate_Type, _codeDomProviderTypeName)); 100throw new InvalidOperationException(string.Format(SRCodeDom.Provider_does_not_support_options, CodeDomProviderType.ToString()));
FrameworkFork\Microsoft.CodeDom\Compiler\TempFiles.cs (3)
104throw new ArgumentException(string.Format(SRCodeDom.InvalidNullEmptyArgument, "fileExtension"), "fileExtension"); // fileExtension not specified 116throw new ArgumentException(string.Format(SRCodeDom.InvalidNullEmptyArgument, "fileName"), "fileName"); // fileName not specified 119throw new ArgumentException(string.Format(SRCodeDom.DuplicateFileName, fileName), "fileName"); // duplicate fileName
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (5)
1219throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e"); 1405throw new ArgumentException(string.Format(SRCodeDom.InvalidPrimitiveType, e.Value.GetType().ToString())); 1588throw new ArgumentException(string.Format(SRCodeDom.Argument_NullComment, "e"), "e"); 1969throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e"); 3641throw new ArgumentException(string.Format(SRCodeDom.InvalidIdentifier, value));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlEncodedRawTextWriter.cs (2)
1733throw new ArgumentException(string.Format(ResXml.Xml_IndentCharsNotWhitespace, propertyName)); 1770error = string.Format(ResXml.Xml_InvalidSurrogateHighChar, ((uint)chars[i]).ToString("X", CultureInfo.InvariantCulture));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReader.cs (4)
736throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadContentAsBase64")); 742throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBase64")); 748throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadContentAsBinHex")); 754throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBinHex"));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReaderAsync.cs (4)
143throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadContentAsBase64")); 149throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBase64")); 155throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadContentAsBinHex")); 161throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBinHex"));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReaderSettings.cs (2)
670throw new InvalidOperationException(string.Format(ResXml.Xml_IncompatibleConformanceLevel, _conformanceLevel.ToString())); 728throw new InvalidOperationException(string.Format(ResXml.Xml_IncompatibleConformanceLevel, _conformanceLevel.ToString()));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (1)
1851throw new InvalidOperationException(string.Format(ResXml.Xml_InvalidReadValueChunk, _curNode.type));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextWriter.cs (4)
1033throw new ArgumentException(string.Format(ResXml.Xml_UndefNamespace, ns)); 1117throw new ArgumentException(string.Format(ResXml.Xml_InvalidNameChars, name)); 1677throw new ArgumentException(string.Format(ResXml.Xml_InvalidNameChars, name)); 1701throw new ArgumentException(string.Format(ResXml.Xml_InvalidXmlSpace, value));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlUtf8RawTextWriter.cs (2)
1613throw new ArgumentException(string.Format(ResXml.Xml_IndentCharsNotWhitespace, propertyName)); 1650error = string.Format(ResXml.Xml_InvalidSurrogateHighChar, ((uint)chars[i]).ToString("X", CultureInfo.InvariantCulture));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriter.cs (4)
852throw new ArgumentException(string.Format(ResXml.Xml_InvalidXmlSpace, value)); 1381throw new ArgumentException(string.Format(ResXml.Xml_UndefNamespace, ns)); 1743throw new ArgumentException(string.Format(ResXml.Xml_NamespaceDeclXmlXmlns, prefix)); 1827throw new ArgumentException(string.Format(ResXml.Xml_NamespaceDeclXmlXmlns, prefix));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWriter.cs (1)
263throw new ArgumentException(string.Format(ResXml.Xml_UndefNamespace, ns));
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentSchemaValidator.cs (1)
289throw new InvalidOperationException(string.Format(ResXml.Xml_InvalidXmlDocument, string.Format(ResXml.Xdom_NoRootEle)));
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlDeclaration.cs (2)
28throw new ArgumentException(string.Format(ResXml.Xdom_standalone, standalone)); 61throw new ArgumentException(string.Format(ResXml.Xdom_standalone, value));
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlDocument.cs (4)
170throw new ArgumentException(string.Format(ResXml.Xdom_Attr_Reserved_XmlNS, namespaceURI)); 1101throw new ArgumentException(string.Format(ResXml.Arg_CannotCreateNode, type)); 1196throw new ArgumentException(string.Format(ResXml.Xdom_Invalid_NT_String, nodeTypeString)); 1440throw new ArgumentException(string.Format(ResXml.XmlDocument_NodeNotFromDocument, "nodeToValidate"));
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNode.cs (1)
101set { throw new InvalidOperationException(string.Format(ResXml.Xdom_Node_SetVal, NodeType)); }
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolver.cs (1)
238throw new XmlException(string.Format(ResXml.Xml_CannotResolveUrl, absoluteUri.ToString()));
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolverAsync.cs (1)
35throw new XmlException(string.Format(ResXml.Xml_CannotResolveUrl, absoluteUri.ToString()));
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (6)
3773throw new XmlSchemaException(string.Format(ResXml.Sch_InvalidValue, s), e); 3794throw new XmlSchemaException(string.Format(ResXml.Sch_InvalidValue, s), e); 3832throw new XmlSchemaException(string.Format(ResXml.Sch_InvalidValue, s), e); 3875throw new XmlSchemaException(string.Format(ResXml.Sch_InvalidValue, s), e); 3919throw new XmlSchemaException(string.Format(ResXml.Sch_InvalidValue, s), e); 3976throw new XmlSchemaException(string.Format(ResXml.Sch_InvalidValue, s), e);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (2)
1669_restrictionErrorMsg = string.Format(ResXml.Sch_ElementFromAnyRule1, derivedElement.QualifiedName.ToString()); 1674_restrictionErrorMsg = string.Format(ResXml.Sch_ElementFromAnyRule2, derivedElement.QualifiedName.ToString());
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (8)
317throw new InvalidOperationException(string.Format(ResXml.Sch_EnumNotStarted, string.Empty)); 321throw new InvalidOperationException(string.Format(ResXml.Sch_EnumFinished, string.Empty)); 376throw new InvalidOperationException(string.Format(ResXml.Sch_EnumNotStarted, string.Empty)); 380throw new InvalidOperationException(string.Format(ResXml.Sch_EnumFinished, string.Empty)); 392throw new InvalidOperationException(string.Format(ResXml.Sch_EnumNotStarted, string.Empty)); 396throw new InvalidOperationException(string.Format(ResXml.Sch_EnumFinished, string.Empty)); 408throw new InvalidOperationException(string.Format(ResXml.Sch_EnumNotStarted, string.Empty)); 412throw new InvalidOperationException(string.Format(ResXml.Sch_EnumFinished, string.Empty));
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (6)
940throw new InvalidOperationException(string.Format(ResXml.Sch_InvalidEndElementMultiple, s_methodNames[(int)ValidatorState.SkipToEndElement])); 1201throw new InvalidOperationException(string.Format(ResXml.Sch_InvalidEndElementMultiple, s_methodNames[(int)ValidatorState.EndElement])); 2700builder.Append(string.Format(ResXml.Sch_ElementName, name.Name)); 2740builder.Append(string.Format(ResXml.Sch_ElementName, subBuilder.ToString())); 2764builder.Append(string.Format(ResXml.Sch_AnyElementNS, subBuilder.ToString())); 2785return string.Format(ResXml.Sch_ElementName, localName);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Advanced\SchemaImporterExtension.cs (3)
79throw new ArgumentException(string.Format(ResXml.XmlInvalidSchemaExtension, type)); 121throw new InvalidOperationException(string.Format(ResXml.XmlConfigurationDuplicateExtension, name)); 203string comment = string.Format(ResXml.XmlExtensionComment, _extension.GetType().FullName);
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (1)
177comments.Add(new CodeCommentStatement(string.Format(ResXml.XmlCodegenWarningDetails, text), false));
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeIdentifier.cs (3)
100if (!IsValid(c)) throw new ArgumentException(string.Format(ResXml.XmlInternalErrorDetails, "Invalid identifier character " + ((Int16)c).ToString()), "c"); 153throw new ArgumentException(string.Format(ResXml.XmlInternalErrorDetails, "Unhandled category " + uc), "c"); 164throw new ArgumentException(string.Format(ResXml.XmlInvalidIdentifier, ident), "ident");
FrameworkFork\Microsoft.Xml\Xml\Serialization\Compilation.cs (3)
153throw new InvalidOperationException(string.Format(ResXml.XmlInvalidEncodingNotEncoded1, encodingStyle)); 183throw new InvalidOperationException(string.Format(ResXml.XmlNotSerializable, mapping.Accessor.Name)); 217throw new InvalidOperationException(string.Format(ResXml.XmlNotSerializable, mapping.Accessor.Name));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (6)
115throw new ArgumentException(string.Format(ResXml.Xml_InvalidNameChars, name), "name"); 236throw new InvalidOperationException(string.Format(ResXml.Xml_InvalidNameChars, Name)); 1152throw new InvalidOperationException(string.Format(ResXml.XmlCircularDerivation, TypeDesc.FullName)); 1391throw new InvalidOperationException(string.Format(ResXml.XmlMissingSchema, _xsiType.Namespace)); 1400throw new InvalidOperationException(string.Format(ResXml.XmlMissingSchema, _xsiType.Namespace)); 1418if (_schema.Id == null || _schema.Id.Length == 0) throw new InvalidOperationException(string.Format(ResXml.XmlSerializableNameMissing1, _type.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Models.cs (2)
63if (!typeDesc.IsSpecial) throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedTypeKind, type.FullName)); 193typeDesc.Exception = new NotSupportedException(string.Format(ResXml.XmlSerializerUnsupportedType, typeDesc.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (11)
174return new InvalidOperationException(string.Format(ResXml.XmlReflectionError, context), e); 218throw new InvalidOperationException(string.Format(ResXml.XmlInvalidTypeAttributes, model.Type.FullName)); 252throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedSoapTypeKind, model.TypeDesc.FullName)); 369throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "DeferredWorkItems.Count have changed")); 371throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "DeferredWorkItems.Top have changed")); 430throw new NotSupportedException(string.Format(ResXml.XmlRpcRefsInValueType, model.TypeDesc.FullName)); 432throw new NotSupportedException(string.Format(ResXml.XmlRpcNestedValueType, member.TypeDesc.FullName)); 455throw new NotSupportedException(string.Format(ResXml.XmlRpcArrayOfValueTypes, model.TypeDesc.FullName)); 531throw new InvalidOperationException(string.Format(ResXml.XmlInvalidSoapArray, mapping.TypeDesc.FullName)); 571throw new InvalidOperationException(string.Format(ResXml.XmlUdeclaredXsdType, dataType)); 612throw new InvalidOperationException(string.Format(ResXml.XmlNoSerializableMembers, model.TypeDesc.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (3)
138if (schema == null) throw new InvalidOperationException(string.Format(ResXml.XmlMissingSchema, referencingNs)); 323if (!mapping.IncludeInSchema) throw new InvalidOperationException(string.Format(ResXml.XmlSoapCannotIncludeInSchema, mapping.TypeDesc.Name)); 389throw new InvalidOperationException(string.Format(ResXml.XmlInvalidContent, type.ContentModel.Content.GetType().Name));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (1)
721throw new InvalidOperationException(string.Format(ResXml.XmlMissingDataType, name.ToString()));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (13)
388throw new NotSupportedException(string.Format(ResXml.XmlSerializerUnsupportedType, FullName)); 402_exception = new InvalidOperationException(string.Format(ResXml.XmlConstructorInaccessible, FullName)); 729throw new InvalidOperationException(string.Format(ResXml.XmlUnsupportedOpenGenericType, type.ToString())); 797exception = new InvalidOperationException(string.Format(ResXml.XmlTypeInaccessible, type.FullName)); 802exception = new InvalidOperationException(string.Format(ResXml.XmlTypeStatic, type.FullName)); 823exception = new NotSupportedException(string.Format(ResXml.XmlSerializerUnsupportedType, type.FullName)); 845exception = new NotSupportedException(string.Format(ResXml.XmlUnsupportedRank, type.FullName)); 867exception = new NotSupportedException(string.Format(ResXml.XmlSerializerUnsupportedType, type.FullName)); 923exception = new NotSupportedException(string.Format(ResXml.XmlUnsupportedInterface, type.FullName)); 937exception = new NotSupportedException(string.Format(ResXml.XmlSerializerUnsupportedType, type.FullName)); 1346throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedIDictionary, type.FullName)); 1381throw new InvalidOperationException(string.Format(ResXml.XmlNoDefaultAccessors, type.FullName)); 1414throw new InvalidOperationException(string.Format(ResXml.XmlInvalidArrayTypeSyntax, type));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (3)
225if (value.GetType() != typeof(string)) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Invalid enumeration type " + value.GetType().Name)); 505if (value.GetType() != typeof(object[])) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Default value for list should be object[], not " + value.GetType().Name)); 556AddWarningComment(comments, string.Format(ResXml.XmlDropDefaultAttribute, type));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCustomFormatter.cs (3)
59throw new Exception(string.Format(ResXml.XmlUnsupportedDefaultType, type.FullName)); 138if (ids.Length != vals.Length) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Invalid enum")); 206throw new Exception(string.Format(ResXml.XmlUnsupportedDefaultValue, formatter));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (38)
130throw new InvalidOperationException(string.Format(ResXml.XmlAnonymousInclude, type.FullName)); 370return new InvalidOperationException(string.Format(ResXml.XmlReflectionError, context), e); 375return new InvalidOperationException(string.Format(ResXml.XmlTypeReflectionError, context), e); 380return new InvalidOperationException(string.Format(model.IsProperty ? ResXml.XmlPropertyReflectionError : ResXml.XmlFieldReflectionError, model.Name), e); 414throw new InvalidOperationException(string.Format(ResXml.XmlInvalidTypeAttributes, model.Type.FullName)); 489throw new ArgumentException(string.Format(ResXml.XmlGetSchemaMethodName, provider.MethodName), "MethodName"); 594throw new InvalidOperationException(string.Format(ResXml.XmlMissingSchema, baseQname.Namespace)); 628return new InvalidOperationException(string.Format(ResXml.XmlInvalidAttributeUse, type.FullName)); 778throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "DeferredWorkItems.Count have changed")); 780throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "DeferredWorkItems.Top have changed")); 802throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedInheritance, model.Type.GetTypeInfo().BaseType.FullName)); 874throw new InvalidOperationException(string.Format(ResXml.XmlIllegalMultipleText, model.Type.FullName)); 881throw new InvalidOperationException(string.Format(ResXml.XmlMultipleXmlns, model.Type.FullName)); 928throw new InvalidOperationException(string.Format(ResXml.XmlMultipleXmlns, model.Type.FullName)); 1169throw new InvalidOperationException(string.Format(ResXml.XmlUdeclaredXsdType, dataType)); 1203throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAttributeFlagsArray, model.TypeDesc.FullName)); 1218throw new InvalidOperationException(string.Format(ResXml.XmlNoSerializableMembers, model.TypeDesc.FullName)); 1267throw new InvalidOperationException(string.Format(ResXml.XmlInvalidAttributeType, "XmlAttribute")); 1312throw new InvalidOperationException(string.Format(ResXml.XmlSequenceMembers, "Order")); 1438throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentifierTypeEnum, identifierName)); 1476throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentiferAmbiguous, choice.MemberName)); 1620throw new InvalidOperationException(string.Format(ResXml.XmlIllegalArrayTextAttribute, accessorName)); 1661throw new InvalidOperationException(string.Format(ResXml.XmlSequenceMatch, "Order")); 1673throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAnyElement, arrayElementType.FullName)); 1711throw new InvalidOperationException(string.Format(ResXml.XmlSequenceMatch, "Order")); 1760if (a.XmlAnyElements.Count > 0) throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAnyElement, accessor.TypeDesc.FullName)); 1765if (a.XmlAttribute.Type != null) throw new InvalidOperationException(string.Format(ResXml.XmlIllegalType, "XmlAttribute")); 1792throw new InvalidOperationException(string.Format(ResXml.XmlIllegalType, "XmlText")); 1809throw new InvalidOperationException(string.Format(ResXml.XmlIllegalType, "XmlElement")); 1836throw new InvalidOperationException(string.Format(ResXml.XmlSequenceMatch, "Order")); 1904throw new InvalidOperationException(string.Format(ResXml.XmlSequenceMatch, "Order")); 1916throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAnyElement, accessorType.FullName)); 1953throw new InvalidOperationException(string.Format(ResXml.XmlSequenceMatch, "Order")); 1967throw new InvalidOperationException(string.Format(ResXml.XmlRpcLitArrayElement, accessor.Elements[0].Name)); 1970throw new InvalidOperationException(string.Format(ResXml.XmlRpcLitXmlns, accessor.Name)); 2016throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingAnyValue, accessor.ChoiceIdentifier.Mapping.TypeDesc.FullName)); 2187throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Bad accessor type " + accessor.GetType().FullName)); 2222if (isNullable && !typeDesc.IsNullable) throw new InvalidOperationException(string.Format(ResXml.XmlInvalidIsNullable, typeDesc.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (15)
103throw new InvalidOperationException(string.Format(ResXml.XmlBareAttributeMember, member.Attribute.Name)); 105throw new InvalidOperationException(string.Format(ResXml.XmlBareTextMember, member.Text.Name)); 110throw new InvalidOperationException(string.Format(ResXml.XmlIllegalArrayElement, member.Elements[0].Name)); 319throw new InvalidOperationException(string.Format(ResXml.XmlIllegalForm, e.Name)); 326throw new InvalidOperationException(string.Format(ResXml.XmlIllegalForm, a.Name)); 550throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateNamespace, anyNs)); 601throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Unsuported anonymous mapping type: " + mapping.ToString())); 658throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Type " + mapping.TypeName + " from namespace '" + ns + "' is an invalid array mapping")); 720throw new InvalidOperationException(string.Format(ResXml.XmlInvalidContent, type.ContentModel.Content.GetType().Name)); 919if (value.GetType() != typeof(string)) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, string.Format(ResXml.XmlInvalidDefaultValue, value.ToString(), value.GetType().FullName))); 959throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Mapping for " + pm.TypeDesc.Name + " missing type property")); 1018if (!mapping.IncludeInSchema) throw new InvalidOperationException(string.Format(ResXml.XmlCannotIncludeInSchema, mapping.TypeDesc.Name)); 1094throw new InvalidOperationException(string.Format(ResXml.XmlIllegalMultipleText, name)); 1117throw new InvalidOperationException(string.Format(ResXml.XmlInvalidContent, type.ContentModel.Content.GetType().Name)); 1186if (!mapping.IncludeInSchema) throw new InvalidOperationException(string.Format(ResXml.XmlCannotIncludeInSchema, mapping.TypeDesc.Name));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (6)
1959throw new InvalidOperationException(string.Format(ResXml.XmlMissingGroup, name.Name)); 1968throw new InvalidOperationException(string.Format(ResXml.XmlMissingAttributeGroup, name.Name)); 2030throw new InvalidOperationException(string.Format(ResXml.XmlInvalidEncoding, name.ToString())); 2034throw new InvalidOperationException(string.Format(ResXml.XmlMissingDataType, name.ToString())); 2057throw new InvalidOperationException(string.Format(ResXml.XmlMissingElement, name.ToString())); 2065throw new InvalidOperationException(string.Format(ResXml.XmlMissingAttribute, name.Name));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemas.cs (2)
65throw new InvalidOperationException(string.Format(ResXml.XmlSchemaDuplicateNamespace, ns)); 366throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "XmlSchemas.Find: Invalid object type " + type.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (17)
988if (arrayInfo.dimensions != 1) throw new InvalidOperationException(string.Format(ResXml.XmlInvalidArrayDimentions, CurrentTag())); 1010throw new ArgumentNullException(string.Format(ResXml.XmlMissingArrayType, CurrentTag())); 1015throw new ArgumentException(string.Format(ResXml.XmlEmptyArrayType, CurrentTag()), "value"); 1037throw new ArgumentException(string.Format(ResXml.XmlInvalidArrayDimentions, CurrentTag()), "value"); 1059throw new ArgumentException(string.Format(ResXml.XmlInvalidArrayLength, lengthString), "value"); 1076throw new ArgumentException(string.Format(ResXml.XmlInvalidArrayDimentions, CurrentTag()), "value"); 1128throw new ArgumentException(string.Format(ResXml.XmlInvalidArrayLength, dimensions[i]), "value"); 1220throw new InvalidOperationException(string.Format(ResXml.XmlUndefinedAlias, prefix)); 1371return new InvalidOperationException(string.Format(ResXml.XmlReadOnlyCollection, name)); 1383return new InvalidOperationException(string.Format(ResXml.XmlConstructorInaccessible, typeName)); 1389return new InvalidOperationException(string.Format(ResXml.XmlConstructorHasSecurityAttributes, typeName)); 1395return new InvalidOperationException(string.Format(ResXml.XmlUnknownNode, CurrentTag())); 1414return new InvalidCastException(string.Format(ResXml.XmlInvalidNullCast, type.FullName)); 1520if (!href.StartsWith("#", StringComparison.Ordinal)) throw new InvalidOperationException(string.Format(ResXml.XmlMissingHref, href)); 1578throw new InvalidOperationException(string.Format(ResXml.XmlInvalidHref, id)); 1680if (arrayInfo.dimensions != 1) throw new InvalidOperationException(string.Format(ResXml.XmlInvalidArrayDimentions, CurrentTag())); 1766throw new NotSupportedException(string.Format(ResXml.XmlRpcArrayOfValueTypes, elementType.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (17)
468if (_objectsInUse.ContainsKey(o)) throw new InvalidOperationException(string.Format(ResXml.XmlCircularReference, o.GetType().FullName)); 517throw new InvalidOperationException(string.Format(ResXml.XmlInvalidXmlns, alias)); 642if (!_objectsInUse.ContainsKey(o)) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "missing stack object of type " + o.GetType().FullName)); 816if (typeof(IXmlSerializable).IsAssignableFrom(type)) return new InvalidOperationException(string.Format(ResXml.XmlInvalidSerializable, type.FullName)); 818if (!typeDesc.IsStructLike) return new InvalidOperationException(string.Format(ResXml.XmlInvalidUseOfType, type.FullName)); 819return new InvalidOperationException(string.Format(ResXml.XmlUnxpectedType, type.FullName)); 863return new InvalidOperationException(string.Format(ResXml.XmlIllegalAnyElement, type.FullName)); 1319if (!typeof(IEnumerable).IsAssignableFrom(type)) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "not array like type " + type.FullName)); 1680if (methodName == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace); 1727if (defaultValue.GetType() != typeof(string)) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, name + " has invalid default type " + defaultValue.GetType().Name)); 2026if (enumSource == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping.")); 2254if (methodName == null) throw new InvalidOperationException("deriaved from " + mapping.TypeDesc.FullName + ", " + string.Format(ResXml.XmlInternalErrorMethod, derived.TypeDesc.Name) + Environment.StackTrace); 2292if (methodName == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace); 3376if (methodName == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace); 3590throw new InvalidOperationException(string.Format(ResXml.XmlUnsupportedDefaultType, type.FullName)); 3700throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingAnyValue, choiceMapping.TypeDesc.FullName)); 4018throw new InvalidOperationException(string.Format(ResXml.XmlSerializerUnsupportedType, memberInfos[0].ToString()));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (7)
132if (methodName == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace); 204if (defaultValue.GetType() != typeof(string)) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, name + " has invalid default type " + defaultValue.GetType().Name)); 530if (enumSource == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping.")); 772if (methodName == null) throw new InvalidOperationException("deriaved from " + mapping.TypeDesc.FullName + ", " + string.Format(ResXml.XmlInternalErrorMethod, derived.TypeDesc.Name) + Environment.StackTrace); 823if (methodName == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace); 2111if (methodName == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace); 2412throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingAnyValue, choiceMapping.TypeDesc.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializer.cs (4)
370throw new InvalidOperationException(string.Format(ResXml.XmlInvalidEncodingNotEncoded1, encodingStyle)); 460throw new InvalidOperationException(string.Format(ResXml.XmlInvalidEncodingNotEncoded1, encodingStyle)); 839throw new InvalidOperationException(string.Format(ResXml.XmlUnxpectedType, _primitiveType.FullName)); 913throw new InvalidOperationException(string.Format(ResXml.XmlUnxpectedType, _primitiveType.FullName));
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (1)
1785return new ArgumentException(string.Format(res, arg));
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathArrayIterator.cs (1)
58throw new InvalidOperationException(string.Format(ResXml.Sch_EnumNotStarted, string.Empty));
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNodeIterator.cs (2)
70throw new InvalidOperationException(string.Format(ResXml.Sch_EnumFinished, string.Empty)); 76throw new InvalidOperationException(string.Format(ResXml.Sch_EnumNotStarted, string.Empty));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\Attributes.cs (3)
138throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.InvalidXsIdDefinition, Id))); 147throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.InvalidXsRefDefinition, Ref))); 160throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.InvalidSizeDefinition, ArraySZSize)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (4)
562new SecurityException(string.Format( 581new SecurityException(string.Format( 666new SecurityException(string.Format( 1401throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.NonAttributedSerializableTypesMustHaveDefaultConstructor, DataContract.GetClrTypeFullName(type))));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (2)
436throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.CannotComputeUniqueName, typeName))); 1511throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.CannotComputeUniqueName, nsFragment)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (7)
763throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.CannotLoadMemberType, "Unknown"))); 833throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.CanOnlyStoreIntoArgOrLocGot0, DataContract.GetClrTypeFullName(var.GetType())))); 1025throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.UnknownConstantType, DataContract.GetClrTypeFullName(valueType)))); 1276throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.ArrayTypeIsNotSupported, DataContract.GetClrTypeFullName(arrayElementType)))); 1338throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.ArrayTypeIsNotSupported, DataContract.GetClrTypeFullName(arrayElementType)))); 1514throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.NoConversionPossibleTo, DataContract.GetClrTypeFullName(target)))); 1575throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.ExpectingEnd, expected.ToString())));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CollectionDataContract.cs (16)
548throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.GetOnlyCollectionMustHaveAddMethod, GetClrTypeFullName(UnderlyingType)))); 631throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.InvalidCollectionContractItemName, DataContract.GetClrTypeFullName(UnderlyingType)))); 638throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.InvalidCollectionContractKeyName, DataContract.GetClrTypeFullName(UnderlyingType)))); 646throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.InvalidCollectionContractValueName, DataContract.GetClrTypeFullName(UnderlyingType)))); 691throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.CollectionMustHaveGetEnumeratorMethod, DataContract.GetClrTypeFullName(type)))); 693throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.CollectionMustHaveAddMethod, DataContract.GetClrTypeFullName(type)))); 695throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.CollectionMustHaveItemType, DataContract.GetClrTypeFullName(type)))); 1199throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(GetInvalidCollectionMessage(message, string.Format(SRSerialization.InvalidCollectionDataContract, DataContract.GetClrTypeFullName(type)), param))); 1206dataContract = new CollectionDataContract(type, GetInvalidCollectionMessage(message, string.Format(SRSerialization.InvalidCollectionType, DataContract.GetClrTypeFullName(type)), param)); 1215return (param == null) ? string.Format(message, nestedMessage) : string.Format(message, nestedMessage, param); 1314throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.CollectionTypeDoesNotHaveDefaultCtor, DataContract.GetClrTypeFullName(this.UnderlyingType)))); 1339new SecurityException(string.Format( 1351new SecurityException(string.Format( 1363new SecurityException(string.Format( 1399new SecurityException(string.Format( 1411new SecurityException(string.Format(
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ContractCodeDomInfo.cs (2)
28throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.CannotSetNamespaceForReferencedType, TypeReference.BaseType))); 37throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.CannotSetMembersForReferencedType, TypeReference.BaseType)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (20)
148throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SerializationException(string.Format(SRSerialization.ErrorDeserializing, string.Format(SRSerialization.ErrorTypeInfo, DataContract.GetClrTypeFullName(dataContract.UnderlyingType)), string.Format(SRSerialization.NoSetMethodForProperty, string.Empty, string.Empty)))); 717ThrowInvalidDataContractException(string.Format(SRSerialization.TypeNotSerializable, type), type); 774ThrowInvalidDataContractException(string.Format(SRSerialization.TypeNotSerializable, type), type); 1322throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.RecursiveCollectionType, GetClrTypeFullName(itemType)))); 1452throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.InvalidDataContractName, DataContract.GetClrTypeFullName(type)))); 1464throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.InvalidDataContractNamespace, DataContract.GetClrTypeFullName(type)))); 1543throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.TooManyDataContracts, DataContract.GetClrTypeFullName(type)))); 1585throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.TooManyCollectionContracts, DataContract.GetClrTypeFullName(type)))); 1592throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.InvalidCollectionContractName, DataContract.GetClrTypeFullName(type)))); 1604throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.InvalidCollectionContractNamespace, DataContract.GetClrTypeFullName(type)))); 1798ThrowInvalidDataContractException(string.Format(SRSerialization.DataContractNamespaceIsNotValid, dataContractNs), type); 1805ThrowInvalidDataContractException(string.Format(SRSerialization.DataContractNamespaceReserved, Globals.SerializationNamespace), type); 1808ThrowInvalidDataContractException(string.Format(SRSerialization.DataContractNamespaceIsNotValid, dataContractNs), type); 1851throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.InvalidGlobalDataContractNamespace, clrNs))); 2088DataContract.ThrowInvalidDataContractException(string.Format(SRSerialization.KnownTypeAttributeOneScheme, DataContract.GetClrTypeFullName(type)), type); 2098DataContract.ThrowInvalidDataContractException(string.Format(SRSerialization.KnownTypeAttributeOneScheme, DataContract.GetClrTypeFullName(type)), type); 2104DataContract.ThrowInvalidDataContractException(string.Format(SRSerialization.KnownTypeAttributeNoData, DataContract.GetClrTypeFullName(type)), type); 2108DataContract.ThrowInvalidDataContractException(string.Format(SRSerialization.KnownTypeAttributeEmptyString, DataContract.GetClrTypeFullName(type)), type); 2120DataContract.ThrowInvalidDataContractException(string.Format(SRSerialization.KnownTypeAttributeMethodNull, DataContract.GetClrTypeFullName(type)), type); 2126DataContract.ThrowInvalidDataContractException(string.Format(SRSerialization.KnownTypeAttributeValidMethodTypes, DataContract.GetClrTypeFullName(type)), type);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSerializer.cs (4)
308throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.ExceededMaxItemsQuota, MaxItemsInObjectGraph))); 325throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.IsAnyCannotBeNull, declaredType))); 397throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.ExceededMaxItemsQuota, MaxItemsInObjectGraph))); 427throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationExceptionWithReaderDetails(string.Format(SRSerialization.ExpectingElementAtDeserialize, XmlNodeType.Element), xmlReader));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSet.cs (2)
107throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.GenericTypeNotExportable, type))); 477throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\HybridObjectCache.cs (1)
28throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.MultipleIdDefinition, id)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\PrimitiveDataContract.cs (1)
161throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.CannotDeserializeRefAtTopLevel, attributes.Ref)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaExporter.cs (2)
24throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.InvalidXmlDataContractName, DataContract.GetClrTypeFullName(type)))); 53throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.InvalidGetSchemaMethod, DataContract.GetClrTypeFullName(clrType))));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (19)
55throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.CouldNotReadSerializationSchema, Globals.SerializationNamespace))); 380throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.CannotComputeUniqueName, element.Name))); 875ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.ISerializableWildcardMinOccursMustBe, iSerializableWildcardElement.MinOccurs)); 877ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.ISerializableWildcardMaxOccursMustBe, iSerializableWildcardElement.MaxOccursString)); 879ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.ISerializableWildcardNamespaceInvalid, iSerializableWildcardElement.Namespace)); 881ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.ISerializableWildcardProcessContentsInvalid, iSerializableWildcardElement.ProcessContents)); 965ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.ElementMinOccursMustBe, element.Name)); 967ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.ElementMaxOccursMustBe, element.Name)); 978ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.FormMustBeQualified, element.Name)); 1016ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.CannotHaveDuplicateElementNames, memberName)); 1076ThrowArrayTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.ArrayItemFormMustBe, element.Name)); 1112ThrowArrayTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.InvalidKeyValueType, element.Name)); 1364ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.AbstractElementNotSupported, element.Name)); 1366ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.DefaultOnElementNotSupported, element.Name)); 1368ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.FixedOnElementNotSupported, element.Name)); 1370ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.SubstitutionGroupOnElementNotSupported, element.Name)); 1395ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.TypeShouldNotContainAttributes, Globals.SerializationNamespace)); 1407ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.CannotHaveDuplicateAttributeNames, refName.Name)); 1474throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.TypeCannotBeImportedHowToFix, message)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlDataContract.cs (6)
235throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.IXmlSerializableCannotHaveDataContract, DataContract.GetClrTypeFullName(type)))); 237throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.IXmlSerializableCannotHaveCollectionDataContract, DataContract.GetClrTypeFullName(type)))); 270throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.IsAnyCannotHaveXmlRoot, DataContract.GetClrTypeFullName(UnderlyingType)))); 364throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.IXmlSerializableMustHaveDefaultConstructor, DataContract.GetClrTypeFullName(type)))); 461new SecurityException(string.Format(SRSerialization.PartialTrustIXmlSerializableTypeNotPublic, DataContract.GetClrTypeFullName(UnderlyingType)), 472new SecurityException(string.Format(SRSerialization.PartialTrustIXmlSerialzableNoPublicConstructor, DataContract.GetClrTypeFullName(UnderlyingType)),
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatReaderGenerator.cs (3)
405ThrowValidationException(string.Format(SRSerialization.ValueTypeCannotBeNull, DataContract.GetClrTypeFullName(type))); 421ThrowValidationException(string.Format(SRSerialization.ValueTypeCannotHaveId, DataContract.GetClrTypeFullName(type))); 444ThrowValidationException(string.Format(SRSerialization.ValueTypeCannotHaveRef, DataContract.GetClrTypeFullName(type)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializer.cs (2)
144throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.XmlWriterMustBeInElement, writer.WriteState))); 383string typeInfo = (type == null) ? string.Empty : string.Format(SRSerialization.ErrorTypeInfo, DataContract.GetClrTypeFullName(type));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerContext.cs (3)
94throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.ExceededMaxItemsQuota, _maxItemsInObjectGraph))); 170throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.TypeNotSerializable, memberType))); 209throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.NullKnownType, "knownTypes")));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (5)
72throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.NullValueReturnedForGetOnlyCollection, DataContract.GetClrTypeFullName(type)))); 134throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.ErrorDeserializing, string.Format(SRSerialization.ErrorTypeInfo, DataContract.GetClrTypeFullName(declaredType)), string.Format(SRSerialization.XmlStartElementExpected, Globals.RefLocalName)))); 437throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.DeserializedObjectWithIdNotFound, id))); 573return XmlObjectSerializer.CreateSerializationExceptionWithReaderDetails(string.Format(SRSerialization.ExpectingState, expectedState), xmlReader);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (4)
99throw XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.AssemblyNotFound, assemblyName)); 126throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.SurrogatesWithGetOnlyCollectionsNotSupportedSerDeser, DataContract.GetClrTypeFullName(declaredType)))); 179throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.TypeNotSerializable, memberType))); 198throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.SurrogatesWithGetOnlyCollectionsNotSupportedSerDeser,
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (2)
422throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.CannotSerializeObjectWithCycles, DataContract.GetClrTypeFullName(obj.GetType())))); 571throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.UnknownXmlType, DataContract.GetClrTypeFullName(obj.GetType()))));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (2)
222throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.TypeNotSerializable, memberType))); 241throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.SurrogatesWithGetOnlyCollectionsNotSupportedSerDeser,
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (1)
228throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRSerialization.XmlStartElementExpected, "EndElement")));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlSerializableWriter.cs (3)
27throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.IXmlSerializableMissingEndElements, (_obj == null ? string.Empty : DataContract.GetClrTypeFullName(_obj.GetType()))))); 56throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.IXmlSerializableWritePastSubTree, (_obj == null ? string.Empty : DataContract.GetClrTypeFullName(_obj.GetType()))))); 64throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.IXmlSerializableWritePastSubTree, (_obj == null ? string.Empty : DataContract.GetClrTypeFullName(_obj.GetType())))));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlWriterDelegator.cs (1)
289return new InvalidDataContractException(string.Format(SRSerialization.InvalidPrimitiveType, DataContract.GetClrTypeFullName(type)));
FrameworkFork\System.Runtime.Serialization\System\Text\Base64Encoding.cs (18)
42throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(SRSerialization.XmlInvalidBase64Length, charCount.ToString(NumberFormatInfo.CurrentInfo)))); 70throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 74throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - index))); 79throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(SRSerialization.XmlInvalidBase64Length, count.ToString(NumberFormatInfo.CurrentInfo)))); 130throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 135throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charCount", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - charIndex))); 142throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, bytes.Length))); 147throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(SRSerialization.XmlInvalidBase64Length, charCount.ToString(NumberFormatInfo.CurrentInfo)))); 213throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 218throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charCount", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - charIndex))); 225throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, bytes.Length))); 230throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(SRSerialization.XmlInvalidBase64Length, charCount.ToString(NumberFormatInfo.CurrentInfo)))); 306throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, bytes.Length))); 310throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteCount", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex))); 318throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 400throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, bytes.Length))); 404throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteCount", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex))); 412throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length)));
FrameworkFork\System.Runtime.Serialization\System\Text\BinHexEncoding.cs (7)
40throw new FormatException(string.Format(SRSerialization.XmlInvalidBinHexLength, charCount.ToString(NumberFormatInfo.CurrentInfo))); 57throw new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length)); 61throw new ArgumentOutOfRangeException("charCount", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - charIndex)); 67throw new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, bytes.Length)); 128throw new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, bytes.Length)); 132throw new ArgumentOutOfRangeException("byteCount", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex)); 139throw new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length));
FrameworkFork\System.Runtime.Serialization\System\Text\SurrogateChar.cs (3)
27throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlInvalidSurrogate, ch.ToString("X", CultureInfo.InvariantCulture)), "ch")); 38throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlInvalidLowSurrogate, ((int)lowChar).ToString("X", CultureInfo.InvariantCulture)), "lowChar")); 41throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlInvalidHighSurrogate, ((int)highChar).ToString("X", CultureInfo.InvariantCulture)), "highChar"));
FrameworkFork\System.Runtime.Serialization\System\Xml\UniqueId.cs (8)
91throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, guid.Length))); 93throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlArrayTooSmallInput, guidLength), "guid")); 131throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 135throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 275throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 278throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("chars", string.Format(SRSerialization.XmlArrayTooSmallOutput, count))); 362throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, buffer.Length))); 365throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("buffer", string.Format(SRSerialization.XmlArrayTooSmallOutput, guidLength)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseReader.cs (7)
528throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", string.Format(SRSerialization.OffsetExceedsBufferSize, _attributeCount))); 1150throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 1154throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 1180throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, buffer.Length))); 1184throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1340throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, buffer.Length))); 1344throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, buffer.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseWriter.cs (13)
242throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlUndefinedPrefix, prefix), "prefix")); 322throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlInvalidXmlSpace, _attributeValue))); 375throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlInvalidXmlSpace, _attributeValue))); 465throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRSerialization.XmlMethodNotSupported, "WriteDocType"))); 493throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlUndefinedPrefix, prefix), "prefix")); 547throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlUndefinedPrefix, prefix), "prefix")); 780throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlNamespaceNotFound, namespaceUri), "namespaceUri")); 909throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRSerialization.XmlMethodNotSupported, "WriteEntityRef"))); 922throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRSerialization.XmlMethodNotSupported, "WriteNmToken"))); 1009throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 1066throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 1436throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1605throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidPrefixState, WriteState.ToString())));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryReader.cs (4)
42throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, buffer.Length))); 46throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1212throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, array.Length))); 1216throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, array.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryWriter.cs (2)
1274throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, array.Length))); 1278throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, array.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlConverter.cs (1)
493throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRSerialization.XmlInvalidQualifiedName, qname)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryReader.cs (2)
898throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, array.Length))); 902throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, array.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryReaderQuotas.cs (5)
98throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.QuotaIsReadOnly, "MaxStringContentLength"))); 116throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.QuotaIsReadOnly, "MaxArrayLength"))); 134throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.QuotaIsReadOnly, "MaxBytesPerRead"))); 153throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.QuotaIsReadOnly, "MaxDepth"))); 172throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.QuotaIsReadOnly, "MaxNameTableCharCount")));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryWriter.cs (2)
410throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, array.Length))); 414throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, array.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlExceptionHelper.cs (6)
73return string.Format(SRSerialization.XmlFoundText, reader.Value); 75return string.Format(SRSerialization.XmlFoundComment, reader.Value); 77return string.Format(SRSerialization.XmlFoundCData, reader.Value); 79return string.Format(SRSerialization.XmlFoundNodeType, reader.NodeType); 264return new XmlException(string.Format(SRSerialization.XmlInvalidConversionWithoutValue, type), exception); 279return new XmlException(string.Format(SRSerialization.XmlInvalidUTF8Bytes, value), exception);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlUTF8TextReader.cs (2)
569throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, buffer.Length))); 573throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, buffer.Length - offset)));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\TimeoutHelper.cs (1)
228return new TimeoutException(string.Format(SRServiceModel.LockTimeoutExceptionMessage, timeout));
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\KerberosSecurityTokenProvider.cs (1)
38string.Format(SRServiceModel.ImpersonationLevelNotSupported, tokenImpersonationLevel)));
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\SecurityTokenProvider.cs (4)
31throw Fx.Exception.AsError(new SecurityTokenException(string.Format(SRServiceModel.TokenProviderUnableToGetToken, this))); 45throw Fx.Exception.AsError(new SecurityTokenException(string.Format(SRServiceModel.TokenProviderUnableToRenewToken, this))); 64throw Fx.Exception.AsError(new NotSupportedException(string.Format(SRServiceModel.TokenRenewalNotSupported, this))); 69throw Fx.Exception.AsError(new NotSupportedException(string.Format(SRServiceModel.TokenCancellationNotSupported, this)));
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\SecurityTokenRequirement.cs (1)
151throw Fx.Exception.Argument(propertyName, string.Format(SRServiceModel.SecurityTokenRequirementDoesNotContainProperty, propertyName));
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\SecurityTokenResolver.cs (4)
23throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(string.Format(SRServiceModel.UnableToResolveTokenReference, keyIdentifier))); 46throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(string.Format(SRServiceModel.UnableToResolveTokenReference, keyIdentifierClause))); 69throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(string.Format(SRServiceModel.UnableToResolveKeyReference, keyIdentifierClause))); 89throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(string.Format(SRServiceModel.ID0023, this.GetType().AssemblyQualifiedName)));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\KerberosRequestorSecurityToken.cs (1)
29string.Format(SRServiceModel.ImpersonationLevelNotSupported, tokenImpersonationLevel)));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\KeyInfoSerializer.cs (1)
318throw /*System.ServiceModel.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.StandardsManagerCannotWriteObject, keyIdentifierClause.GetType())));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SecurityKeyIdentifier.cs (1)
97throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.NoKeyIdentifierClauseFound, typeof(TClause)), "TClause"));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SymmetricKey.cs (1)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.SymmetricKeyLengthTooShort, symmetricKey.Length)));
FrameworkFork\System.ServiceModel\System\IdentityModel\XD.cs (15)
189throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 381throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 431throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 501throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 569throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 665throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 689throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 800throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 857throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 946throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 1094throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 1216throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 1255throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 1336throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 1441throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value));
FrameworkFork\System.ServiceModel\System\ServiceModel\BasicHttpBinding.cs (1)
109throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.HttpClientCredentialTypeInvalid, BasicHttpSecurity.Transport.ClientCredentialType)));
FrameworkFork\System.ServiceModel\System\ServiceModel\BasicHttpsBinding.cs (1)
65throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.HttpClientCredentialTypeInvalid, BasicHttpSecurity.Transport.ClientCredentialType)));
FrameworkFork\System.ServiceModel\System\ServiceModel\BasicHttpSecurity.cs (2)
24Fx.Assert(BasicHttpSecurityModeHelper.IsDefined(mode), string.Format("Invalid BasicHttpSecurityMode value: {0}.", mode.ToString())); 123Fx.Assert(BasicHttpSecurityModeHelper.IsDefined(basicHttpSecurityMode), string.Format("Invalid BasicHttpSecurityMode value: {0}.", basicHttpSecurityMode.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\CallbackBehaviorAttribute.cs (2)
44string.Format(SRServiceModel.SFxCallbackBehaviorAttributeOnlyOnDuplex, serviceEndpoint.Contract.Name))); 61string.Format(SRServiceModel.SFXEndpointBehaviorUsedOnWrongSide, typeof(CallbackBehaviorAttribute).Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\ChannelFactory.cs (11)
158throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxChannelFactoryNoBindingFoundInConfig1, _configurationName))); 421ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, typeof(TChannel).FullName), ActivityType.Construct); 441ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, typeof(TChannel).FullName), ActivityType.Construct); 471ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, typeof(TChannel).FullName), ActivityType.Construct); 490ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, typeof(TChannel).FullName), ActivityType.Construct); 554throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxCreateNonDuplexChannel1, this.Endpoint.Contract.Name))); 588throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SfxCallbackTypeCannotBeNull, endpoint.Contract.ContractType.FullName))); 597throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SfxCallbackTypeCannotBeNull, endpoint.Contract.ContractType.FullName))); 625throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInvalidStaticOverloadCalledForDuplexChannelFactory1, channelFactory._channelType.Name))); 639throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInvalidStaticOverloadCalledForDuplexChannelFactory1, channelFactory._channelType.Name))); 653throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInvalidStaticOverloadCalledForDuplexChannelFactory1, channelFactory._channelType.Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressingVersion.cs (1)
175return string.Format(_toStringFormat, Namespace);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ApplicationContainerSettings.cs (1)
46throw FxTrace.Exception.Argument("value", string.Format(SRServiceModel.SessionValueInvalid, value));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AsymmetricSecurityBindingElement.cs (8)
108throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 114throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 456throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidChannelBindingException(string.Format(SRServiceModel.PolicyRequiresConfidentialityWithoutIntegrity, action))); 503throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 509throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 539throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 563throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 603throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncoder.cs (3)
399string excMsg = string.Format(SRServiceModel.MaxSentMessageSizeExceeded, maxMessageSize); 469string message = string.Format(SRServiceModel.BinaryEncoderSessionTooLarge, _maxSessionSize); 664string excMsg = string.Format(SRServiceModel.MaxSentMessageSizeExceeded, maxMessageSize);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Binding.cs (5)
187new InvalidOperationException(string.Format(SRServiceModel.SecurityCapabilitiesMismatched, this))); 234string.Format(SRServiceModel.CustomBindingRequiresTransport, this.Name))); 239string.Format(SRServiceModel.SFxCustomBindingNeedsTransport1, contractName))); 250string.Format(SRServiceModel.InvalidBindingScheme, transport.GetType().Name))); 256string.Format(SRServiceModel.MessageVersionMissingFromBinding, this.Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BindingContext.cs (1)
134throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.NotAllBindingElementsBuilt, builder.ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BufferManagerOutputStream.cs (1)
43string excMsg = string.Format(_quotaExceededString, maxSizeQuota);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelFactoryBase.cs (1)
154throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ChannelFactoryCannotBeUsedToCreateChannels, this.GetType().ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelManagerBase.cs (1)
48return new ArgumentException(string.Format(SRServiceModel.ChannelTypeNotSupported, type), "TChannel");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelRequirements.cs (7)
348return new InvalidOperationException(string.Format(SRServiceModel.BindingDoesnTSupportAnyChannelTypes1, bindingName)); 352return new InvalidOperationException(string.Format(SRServiceModel.BindingDoesnTSupportSessionButContractRequires1, bindingName)); 356return new InvalidOperationException(string.Format(SRServiceModel.BindingDoesntSupportDatagramButContractRequires, bindingName)); 360return new InvalidOperationException(string.Format(SRServiceModel.BindingDoesnTSupportDuplexButContractRequires1, bindingName)); 364return new InvalidOperationException(string.Format(SRServiceModel.BindingDoesnTSupportRequestReplyButContract1, bindingName)); 368return new InvalidOperationException(string.Format(SRServiceModel.BindingDoesnTSupportOneWayButContractRequires1, bindingName)); 372return new InvalidOperationException(string.Format(SRServiceModel.BindingDoesnTSupportTwoWayButContractRequires1, bindingName));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (5)
159throw FxTrace.Exception.AsError(new CommunicationException(string.Format(SRServiceModel.WebSocketVersionMismatchFromServer, ""), ex)); 161throw FxTrace.Exception.AsError(new CommunicationException(string.Format(SRServiceModel.WebSocketSubProtocolMismatchFromServer, ""), ex)); 224throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(SRServiceModel.ClientWebSocketFactory_CreateWebSocketFailed, _connectionFactory.GetType().Name), e)); 230throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(SRServiceModel.ClientWebSocketFactory_InvalidWebSocket, _connectionFactory.GetType().Name))); 236throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(SRServiceModel.ClientWebSocketFactory_InvalidWebSocket, _connectionFactory.GetType().Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CommunicationObject.cs (2)
248string message = string.Format(SRServiceModel.CommunicationObjectFaulted1, this.GetCommunicationObjectType().ToString()); 254return new CommunicationObjectAbortedException(string.Format(SRServiceModel.CommunicationObjectAborted1, this.GetCommunicationObjectType().ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CompositeDuplexBindingElement.cs (1)
59string.Format(SRServiceModel.ChannelTypeNotSupported, typeof(TChannel)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Connection.cs (2)
791throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", offset, string.Format(SRServiceModel.OffsetExceedsBufferSize, bufferSize))); 802throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("size", size, string.Format(
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPool.cs (1)
572WcfEventSource.Instance.MaxOutboundConnectionsPerEndpointExceeded(string.Format(SRServiceModel.TraceCodeConnectionPoolMaxOutboundConnectionsPerEndpointQuotaReached, _maxCount));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPoolHelper.cs (1)
233string.Format(SRServiceModel.OperationAbortedDuringConnectionEstablishment, _via)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (5)
132new CommunicationException(string.Format(SRServiceModel.SocketCloseReadReceivedData, thisPtr.RemoteEndPoint))); 254new CommunicationException(string.Format(SRServiceModel.SocketCloseReadReceivedData, RemoteEndPoint))); 298new CommunicationException(string.Format(SRServiceModel.SocketCloseReadReceivedData, RemoteEndPoint))); 803new TimeoutException(string.Format(SRServiceModel.TcpConnectionTimedOut, timeout))); 843new TimeoutException(string.Format(SRServiceModel.TcpConnectionTimedOut, timeout)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\DnsCache.cs (2)
96new EndpointNotFoundException(string.Format(SRServiceModel.DnsResolveFailed, hostName))); 125new EndpointNotFoundException(string.Format(SRServiceModel.DnsResolveFailed, hostName), dnsException));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FaultConverter.cs (4)
36string text = string.Format(SRServiceModel.FaultConverterDidNotCreateException, this.GetType().Name); 45string text = string.Format(SRServiceModel.FaultConverterCreatedException, this.GetType().Name); 62string text = string.Format(SRServiceModel.FaultConverterDidNotCreateFaultMessage, this.GetType().Name); 71string text = string.Format(SRServiceModel.FaultConverterCreatedFaultMessage, this.GetType().Name);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingChannels.cs (4)
325new TimeoutException(string.Format(SRServiceModel.TimeoutOnOpen, timeout), exception)); 353new TimeoutException(string.Format(SRServiceModel.TimeoutOnOpen, timeout), exception)); 395new CommunicationObjectAbortedException(string.Format(SRServiceModel.DuplexChannelAbortedDuringOpen, this.Via))); 608new ProtocolException(string.Format(SRServiceModel.ServerRejectedSessionPreamble, via),
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingDecoders.cs (17)
216Exception result = new InvalidDataException(string.Format(SRServiceModel.FramingViaTooLong, size)); 230throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataException(string.Format(SRServiceModel.FramingViaNotUri, value), exception)); 256return new InvalidDataException(string.Format(SRServiceModel.FramingFaultTooLong, size)); 263return new EndpointNotFoundException(string.Format(SRServiceModel.EndpointNotFound, via)); 271return new ServiceActivationException(string.Format(SRServiceModel.Hosting_ServiceActivationFailed, via)); 275return new CommunicationException(string.Format(SRServiceModel.Sharing_ConnectionDispatchFailed, via)); 279return new EndpointNotFoundException(string.Format(SRServiceModel.Sharing_EndpointUnavailable, via)); 288return new ProtocolException(string.Format(SRServiceModel.FramingModeNotSupportedFault, via)); 292return new ProtocolException(string.Format(SRServiceModel.FramingVersionNotSupportedFault, via)); 296Exception inner = new QuotaExceededException(string.Format(SRServiceModel.FramingContentTypeTooLongFault, contentType)); 301Exception inner = new QuotaExceededException(string.Format(SRServiceModel.FramingViaTooLongFault, via)); 306return new ServerTooBusyException(string.Format(SRServiceModel.ServerTooBusy, via)); 310return new ProtocolException(string.Format(SRServiceModel.FramingUpgradeInvalid, via)); 314return new ProtocolException(string.Format(SRServiceModel.FramingFaultUnrecognized, faultString)); 328Exception result = new InvalidDataException(string.Format(SRServiceModel.FramingContentTypeTooLong, size)); 393Exception exception = CreateException(new InvalidDataException(string.Format( 436Exception exception = CreateException(new InvalidDataException(string.Format(
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingEncoders.cs (2)
225messageFrame.Offset, string.Format(SRServiceModel.SpaceNeededExceedsMessageFrameOffset, spaceNeeded))); 310messageFrame.Offset, string.Format(SRServiceModel.SpaceNeededExceedsMessageFrameOffset, spaceNeeded)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (3)
96throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", string.Format(SRServiceModel.HttpRequiresSingleAuthScheme, 1144new ProtocolException(string.Format(SRServiceModel.HttpIfModifiedSinceParseError, value))); 1191new ProtocolException(string.Format(SRServiceModel.EnvelopeVersionUnknown,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelHelpers.cs (4)
137return new CommunicationException(string.Format(SRServiceModel.HttpReceiveFailure, request.RequestUri), exception); 139return new EndpointNotFoundException(string.Format(SRServiceModel.EndpointNotFound, request.RequestUri.AbsoluteUri), exception); 141return new SecurityNegotiationException(string.Format(SRServiceModel.TrustFailure, request.RequestUri.Authority), exception); 214string.Format(SRServiceModel.OffsetExceedsBufferBound, buffer.Length - 1)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageHelper.cs (8)
92result = new ProtocolException(string.Format(SRServiceModel.HttpAddressingNoneHeaderOnWire, 111result = new ProtocolException(string.Format(SRServiceModel.HttpAddressingNoneHeaderOnWire, 250WcfEventSource.Instance.MaxReceivedMessageSizeExceeded(string.Format(SRServiceModel.MaxReceivedMessageSizeExceeded, _factory.MaxReceivedMessageSize)); 253string message = string.Format(SRServiceModel.MaxReceivedMessageSizeExceeded, _factory.MaxReceivedMessageSize); 323throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new EndpointNotFoundException(string.Format(SRServiceModel.EndpointNotFound, _httpRequestMessage.RequestUri.AbsoluteUri))); 328throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ServerTooBusyException(string.Format(SRServiceModel.HttpServerTooBusy, _httpRequestMessage.RequestUri.AbsoluteUri))); 338throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(string.Format(SRServiceModel.MissingContentType, _httpRequestMessage.RequestUri))); 365string message = string.Format(SRServiceModel.HttpAuthorizationForbidden, _factory.AuthenticationScheme);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpsTransportBindingElement.cs (2)
98throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(SRServiceModel.HttpPipelineNotSupportedOnClientSide, "MessageHandlerFactory"))); 103throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("TChannel", string.Format(SRServiceModel.ChannelTypeNotSupported, typeof(TChannel)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpTransportBindingElement.cs (4)
251string.Format(SRServiceModel.HttpMaxPendingAcceptsTooLargeError, HttpTransportDefaults.MaxPendingAcceptsUpperLimit))); 468throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(SRServiceModel.HttpPipelineNotSupportedOnClientSide, "MessageHandlerFactory"))); 479throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", string.Format(SRServiceModel.HttpAuthSchemeCannotBeNone, 484throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", string.Format(SRServiceModel.HttpRequiresSingleAuthScheme,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IdlingCommunicationPool.cs (2)
332WcfEventSource.Instance.LeaseTimeout(string.Format(SRServiceModel.TraceCodeConnectionPoolLeaseTimeoutReached, _leaseTimeout), _parent.Key.ToString()); 340WcfEventSource.Instance.IdleTimeout(string.Format(SRServiceModel.TraceCodeConnectionPoolIdleTimeoutReached, _idleTimeout), _parent.Key.ToString());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\LifetimeManager.cs (3)
230throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(string.Format(SRServiceModel.SFxCloseTimedOut1, timeout))); 286throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(string.Format(SRServiceModel.SFxCloseTimedOut1, timeout))); 325this.Complete(false, new TimeoutException(string.Format(SRServiceModel.SFxCloseTimedOut1, _timeout)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MaxMessageSizeStream.cs (2)
66string message = string.Format(SRServiceModel.MaxReceivedMessageSizeExceeded, maxMessageSize); 79string message = string.Format(SRServiceModel.MaxSentMessageSizeExceeded, maxMessageSize);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Message.cs (1)
1178throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.MessageBodyReaderInvalidReadState, bodyReader.ReadState.ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageFault.cs (2)
84throw TraceUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.EnvelopeVersionUnknown, envelopeVersion.ToString())), message); 285throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.EnvelopeVersionUnknown, version.ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeader.cs (1)
393throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.EnvelopeVersionUnknown, messageVersion.Envelope.ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeaders.cs (10)
520throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.InvalidEnumValue, header.HeaderType))); 580throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.InvalidEnumValue, kind))); 723string.Format(SRServiceModel.MultipleRelatesToHeaders, relationshipType.AbsoluteUri), 947new InvalidOperationException(string.Format(SRServiceModel.HeadersCannotBeAddedToEnvelopeVersion, _version.Envelope))); 956new InvalidOperationException(string.Format(SRServiceModel.AddressingHeadersCannotBeAddedToAddressingVersion, _version.Addressing))); 983throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.InvalidEnumValue, _headers[headerIndex].HeaderType))); 1081throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.InvalidEnumValue, _headers[index].HeaderType))); 1303new InvalidOperationException(string.Format(SRServiceModel.AddressingHeadersCannotBeAddedToAddressingVersion, _version.Addressing))); 1595throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.InvalidEnumValue, _headers[headerIndex].HeaderType))); 1627throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.InvalidEnumValue, _headers[headerIndex].HeaderType)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (3)
53throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(string.Empty, string.Format(SRServiceModel.ObjectDisposed, this.GetType().ToString()))); 67throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.MessagePropertyNotFound, name))); 636throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.DuplicateMessageProperty, name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageVersion.cs (4)
66string.Format(SRServiceModel.AddressingVersionNotSupported, addressingVersion)); 82string.Format(SRServiceModel.AddressingVersionNotSupported, addressingVersion)); 94string.Format(SRServiceModel.AddressingVersionNotSupported, addressingVersion)); 100string.Format(SRServiceModel.EnvelopeVersionNotSupported, envelopeVersion));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MtomMessageEncodingBindingElement.cs (2)
36throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.MtomEncoderBadMessageVersion, messageVersion.ToString()), "messageVersion")); 153throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.MtomEncoderBadMessageVersion, value.ToString()), "value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ReliableSessionBindingElementImporter.cs (6)
72string.Format(SRServiceModel.MultipleVersionsFoundInPolicy, 266throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidChannelBindingException(string.Format(SRServiceModel.RequiredMillisecondsAttributeIncorrect, wsrmNode.LocalName), innerException)); 278throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidChannelBindingException(string.Format(SRServiceModel.MillisecondsNotConvertibleToBindingRange, wsrmNode.LocalName), exception)); 297throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidChannelBindingException(string.Format(SRServiceModel.MillisecondsNotConvertibleToBindingRange, localName), exception)); 309throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidChannelBindingException(string.Format(SRServiceModel.MillisecondsNotConvertibleToBindingRange, localName), exception)); 507string exceptionString = string.Format(SRServiceModel.DeliveryAssuranceRequiredNothingFound, wsrmNs);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestChannel.cs (2)
284throw TraceUtility.ThrowHelperError(new TimeoutException(string.Format(SRServiceModel.RequestChannelSendTimedOut, savedTimeout), 296throw TraceUtility.ThrowHelperError(new TimeoutException(string.Format(SRServiceModel.RequestChannelWaitForReplyTimedOut, savedTimeout),
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (7)
566throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxNonInitiatingOperation1, operation.Name))); 703ServiceModelActivity.Start(serviceModelActivity, string.Format(SRServiceModel.ActivityProcessAction, action), ActivityType.ProcessAction); 739ServiceModelActivity.Start(rpc.Activity, string.Format(SRServiceModel.ActivityProcessAction, action), ActivityType.ProcessAction); 886return new TimeoutException(string.Format(SRServiceModel.TimeoutServiceChannelConcurrentOpen1, timeout)); 1084string text = string.Format(SRServiceModel.SFxServiceChannelIdleAborted, operation.Name); 1104string text = string.Format(SRServiceModel.SFxInitializationUINotCalled, example.GetType().ToString()); 1123string text = string.Format(SRServiceModel.SFxInitializationUIDisallowed, example.GetType().ToString());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (5)
34throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.FailedToCreateTypedProxy, typeof(TChannel)))); 82throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.SFxMethodNotSupported1, method.Name))); 84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.SFxMethodNotSupportedOnCallback1, method.Name))); 131throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.InvalidTypedProxyMethodHandle, _proxiedType.Name))); 328activityName = string.Format(SRServiceModel.ActivityClose, _serviceChannel.GetType().FullName);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SocketConnection.cs (9)
79thisPtr.Abort(string.Format(SRServiceModel.SocketAbortedReceiveTimedOut, thisPtr._receiveTimeout), TransferOperation.Read); 86string.Format(SRServiceModel.SocketAbortedSendTimedOut, thisPtr._sendTimeout), TransferOperation.Write); 222TimeoutException timeoutException = new TimeoutException(string.Format(SRServiceModel.TcpConnectionTimedOut, timeout), originalException); 236CommunicationException communicationException = new CommunicationException(string.Format(SRServiceModel.TcpConnectionResetError, timeout), originalException); 242TimeoutException timeoutException = new TimeoutException(string.Format(SRServiceModel.TcpConnectionTimedOut, timeout), originalException); 500new EndpointNotFoundException(string.Format(SRServiceModel.UnableToResolveHost, uri.Host), socketException)); 506new EndpointNotFoundException(string.Format(SRServiceModel.UnableToResolveHost, uri.Host))); 574new EndpointNotFoundException(string.Format(SRServiceModel.NoIPEndpointsFoundForHost, uri.Host))); 626new EndpointNotFoundException(string.Format(SRServiceModel.NoIPEndpointsFoundForHost, uri.Host)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (5)
170throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("upgradeInitiator", string.Format(SRServiceModel.UnsupportedUpgradeInitiator, upgradeInitiator.GetType())); 192throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("upgradeAcceptor", string.Format(SRServiceModel.UnsupportedUpgradeAcceptor, upgradeAcceptor.GetType())); 366string.Format(SRServiceModel.NegotiationFailedIO, ioException.Message), ioException)); 481throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ClientCredentialsUnableToCreateLocalTokenProvider, clientCertRequirement))); 616string.Format(SRServiceModel.NegotiationFailedIO, ioException.Message), ioException));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SynchronizedMessageSource.cs (4)
34new TimeoutException(string.Format(SRServiceModel.WaitForMessageTimedOut, timeout), 58new TimeoutException(string.Format(SRServiceModel.WaitForMessageTimedOut, timeout), 83new TimeoutException(string.Format(SRServiceModel.ReceiveTimedOut2, timeout), 108new TimeoutException(string.Format(SRServiceModel.ReceiveTimedOut2, timeout),
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TcpTransportBindingElement.cs (1)
66throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("TChannel", string.Format(SRServiceModel.ChannelTypeNotSupported, typeof(TChannel)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TextMessageEncoder.cs (3)
87string.Format(SRServiceModel.EnvelopeVersionNotSupported, version.Envelope))); 226throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(string.Format(SRServiceModel.EncoderUnrecognizedCharSet, charSet))); 305string.Format(SRServiceModel.EnvelopeVersionNotSupported, version.Envelope)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransactionFlowBindingElement.cs (2)
45throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.ConfigInvalidTransactionFlowProtocolValue, transactionProtocol.ToString())); 59throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.ConfigInvalidTransactionFlowProtocolValue, elementToBeCloned._transactionProtocol.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportDefaults.cs (1)
79throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.MessageTextEncodingNotSupported, charSet), "encoding"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (4)
288WcfEventSource.Instance.CloseTimeout(string.Format(SRServiceModel.CloseTimedOut, timeout)); 292string.Format(SRServiceModel.CloseTimedOut, timeout), 343WcfEventSource.Instance.CloseTimeout(string.Format(SRServiceModel.CloseTimedOut, timeout)); 347string.Format(SRServiceModel.CloseTimedOut, timeout),
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\UdpRetransmissionSettings.cs (10)
40string.Format(SRServiceModel.ArgumentOutOfMinRange, 0)); 46string.Format(SRServiceModel.ArgumentOutOfMinRange, 0)); 52throw FxTrace.Exception.ArgumentOutOfRange("delayLowerBound", delayLowerBound, string.Format(SRServiceModel.ArgumentOutOfMinRange, TimeSpan.Zero)); 57throw FxTrace.Exception.ArgumentOutOfRange("delayUpperBound", delayUpperBound, string.Format(SRServiceModel.ArgumentOutOfMinRange, TimeSpan.Zero)); 63string.Format(SRServiceModel.ArgumentOutOfMinRange, TimeSpan.Zero)); 96throw FxTrace.Exception.ArgumentOutOfRange("value", value, string.Format(SRServiceModel.ArgumentOutOfMinRange, min)); 114throw FxTrace.Exception.ArgumentOutOfRange("value", value, string.Format(SRServiceModel.ArgumentOutOfMinRange, min)); 130throw FxTrace.Exception.ArgumentOutOfRange("value", value, string.Format(SRServiceModel.ArgumentOutOfMinRange, TimeSpan.Zero)); 148throw FxTrace.Exception.ArgumentOutOfRange("value", value, string.Format(SRServiceModel.ArgumentOutOfMinRange, TimeSpan.Zero)); 166throw FxTrace.Exception.ArgumentOutOfRange("value", value, string.Format(SRServiceModel.ArgumentOutOfMinRange, TimeSpan.Zero));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\UdpTransportBindingElement.cs (3)
62string.Format(SRServiceModel.ArgumentOutOfMinRange, min)); 82string.Format(SRServiceModel.ArgumentOutOfMinRange, min)); 123string.Format(SRServiceModel.ArgumentOutOfMinRange, UdpConstants.MinReceiveBufferSize));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketHelper.cs (3)
223errorMsg = string.Format(SRServiceModel.CloseTimedOut, timeout); 226errorMsg = string.Format(SRServiceModel.WebSocketSendTimedOut, timeout); 229errorMsg = string.Format(SRServiceModel.WebSocketReceiveTimedOut, timeout);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (4)
524string.Format(SRServiceModel.WaitForMessageTimedOut, timeout), 547string.Format(SRServiceModel.WaitForMessageTimedOut, timeout), 592_pendingException = FxTrace.Exception.AsError(new QuotaExceededException(string.Format(SRServiceModel.MaxReceivedMessageSizeExceeded, _maxBufferSize))); 685WcfEventSource.Instance.ReceiveTimeout(string.Format(SRServiceModel.WaitForMessageTimedOut, timeout));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportSettings.cs (1)
105throw FxTrace.Exception.Argument("value", string.Format(SRServiceModel.WebSocketInvalidProtocolContainsMultipleSubProtocolString, value));
FrameworkFork\System.ServiceModel\System\ServiceModel\ClientBase.cs (3)
97ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityOpenClientBase, typeof(TChannel).FullName), ActivityType.OpenClient); 206ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityCloseClientBase, typeof(TChannel).FullName), ActivityType.Close); 577throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.SFxMethodNotSupported1, methodName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientCredentials.cs (2)
150throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.MultipleSecurityCredentialsManagersInChannelBindingParameters, otherCredentialsManager))); 158string.Format(SRServiceModel.SFXEndpointBehaviorUsedOnWrongSide, typeof(ClientCredentials).Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ContractDescription.cs (3)
221string.Format(SRServiceModel.SFxContractHasZeroOperations, this.Name))); 234string.Format(SRServiceModel.ContractIsNotSelfConsistentItHasOneOrMore2, this.Name))); 240string.Format(SRServiceModel.SFxContractHasZeroInitiatingOperations, this.Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
210throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxWrapperTypeHasMultipleNamespaces, messageName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (12)
453AddError(string.Format(SRServiceModel.SFxInconsistentWsdlOperationStyleInMessageParts, operationName)); 1175throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxSchemaNotFound, ns))); 1669throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxDataContractSerializerDoesNotSupportEncoded, part.Name))); 1700throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxDataContractSerializerDoesNotSupportBareArray, part.Name))); 1865throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxDataContractSerializerDoesNotSupportEncoded, operationName))); 1887throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxDataContractSerializerDoesNotSupportEncoded, operation.Name))); 2060throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxDocEncodedNotSupported, part.Name))); 2110throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxDocEncodedNotSupported, operationName))); 2184string reason = string.Format(SRServiceModel.XsdMissingRequiredAttribute1, "message"); 2192string reason = string.Format(SRServiceModel.XsdMissingRequiredAttribute1, "part"); 2204string reason = string.Format(SRServiceModel.XsdMissingRequiredAttribute1, "name"); 2217string reason = string.Format(SRServiceModel.XsdMissingRequiredAttribute1, "name");
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (11)
141throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", string.Format(SRServiceModel.SFxMaximumResolvedReferencesOutOfRange, value))); 203throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("scheme", string.Format(SRServiceModel.SFxMetadataExchangeClientCouldNotCreateChannelFactoryBadScheme, scheme)); 217throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("address", string.Format(SRServiceModel.SFxCannotGetMetadataFromRelativeAddress, address)); 222throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("address", string.Format(SRServiceModel.SFxCannotHttpGetMetadataFromAddress, address)); 637string.Format(SRServiceModel.SFxBadMetadataReference, this.SourceUrl), e)); 728throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("location", string.Format(SRServiceModel.SFxCannotGetMetadataFromLocation, location.ToString())); 817string.Format(SRServiceModel.SFxBadMetadataReference, this.SourceUrl), e)); 834string.Format(SRServiceModel.SFxBadMetadataReference, this.SourceUrl), e)); 979string.Format(SRServiceModel.SFxBadMetadataReference, this.SourceUrl), e)); 1068string.Format(SRServiceModel.SFxBadMetadataReference, this.SourceUrl), e)); 1136throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxBadMetadataReference,
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataLocation.cs (1)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.SFxMetadataReferenceInvalidLocation, value));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationDescription.cs (1)
249throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new System.InvalidOperationException(string.Format(SRServiceModel.SFxOperationMustHaveOneOrTwoMessages, this.Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (11)
183_method.Comments.Add(new CodeCommentStatement(string.Format(SRServiceModel.SFxCodeGenWarning, SRServiceModel.SFxCannotImportAsParameters_OutputParameterAndTask))); 221method.Comments.Add(new CodeCommentStatement(string.Format(SRServiceModel.SFxCodeGenWarning, ex.Message))); 243throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_Message, _context.Operation.CodeName))); 744throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SfxNoTypeSpecifiedForParameter, setting.Name))); 889throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_MessageHasProtectionLevel, parent._request.Action == null ? "" : parent._request.Action))); 893throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_MessageHasProtectionLevel, parent._response.Action == null ? "" : parent._response.Action))); 900throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_Bare, parent._context.Operation.CodeName))); 925parent._context.Contract.ServiceContractGenerator.Errors.Add(new MetadataConversionError(string.Format(SRServiceModel.SFxCannotImportAsParameters_HeadersAreIgnoredInEncoded, parent._request.MessageName), true/*isWarning*/)); 928throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_HeadersAreUnsupported, parent._request.MessageName))); 934parent._context.Contract.ServiceContractGenerator.Errors.Add(new MetadataConversionError(string.Format(SRServiceModel.SFxCannotImportAsParameters_HeadersAreIgnoredInEncoded, parent._response.MessageName), true/*isWarning*/)); 936throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_HeadersAreUnsupported, parent._response.MessageName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\PolicyReader.cs (2)
106string warningMsg = string.Format(SRServiceModel.PolicyReferenceMissingURI, MetadataStrings.WSPolicy.Attributes.URI); 120string warningMsg = string.Format(SRServiceModel.UnableToFindPolicyWithId, idRef);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\SchemaHelper.cs (1)
152warning = new MetadataConversionError(string.Format(SRServiceModel.GeneralSchemaValidationError, args.Message));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (4)
164throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(paramName, string.Format(SRServiceModel.SFXUnvalidNamespaceParam, ns)); 507string.Format(SRServiceModel.SFxErrorReflectionOnUnknown1, attrType.Name), e)); 603throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.AttemptedToGetContractTypeForButThatTypeIs1, interfaceType.Name))); 624string.Format(SRServiceModel.SFxNoMostDerivedContract, interfaceType.Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (6)
386throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxKnownTypeAttributeInvalid1, provider.ToString()))); 705throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.SFxInvalidCallbackContractType, callbackType.Name))); 1062throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.OneWayOperationShouldNotSpecifyAReplyAction1, operationName))); 1216throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInvalidMessageContractSignature, methodName))); 1221throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInvalidMessageContractSignature, methodName))); 1471throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxStaticMessageHeaderPropertiesNotAllowed, defaultName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlExporter.cs (4)
148throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.EndpointsMustHaveAValidBinding1, endpoint.Name))); 617new InvalidOperationException(string.Format(SRServiceModel.AddressingVersionNotSupported, addressing))); 664throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SupportedAddressingModeNotSupported, mode))); 700new InvalidOperationException(string.Format(SRServiceModel.AddressingVersionNotSupported, addressVersion)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (14)
826WsdlImportException wie = WsdlImportException.Create(item, new InvalidOperationException(string.Format(SRServiceModel.UnknownWSDLExtensionIgnored, extension.GetType().AssemblyQualifiedName))); 877throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInvalidWsdlBindingOpNoName, wsdlOperationBinding.Binding.Name))); 1686stringBuilder.AppendLine(string.Format(SRServiceModel.UnImportedAssertionList, CreateXPathString(item))); 1903string warningMsg = string.Format(SRServiceModel.WsdlItemAlreadyFaulted, GetElementName(item)); 2021warningMsg.AppendLine(string.Format(SRServiceModel.XPathPointer, xPath)); 2028warningMsg.AppendLine(string.Format(SRServiceModel.XPathPointer, SRServiceModel.XPathUnavailable)); 2089warningMsg.AppendLine(string.Format(SRServiceModel.UnableToFindPolicyWithId, policyRef)); 2090warningMsg.AppendLine(string.Format(SRServiceModel.XPathPointer, xPath)); 2127string warningMsg = string.Format(SRServiceModel.PolicyReferenceMissingURI, MetadataStrings.WSPolicy.Attributes.URI); 2326string warningMsg = string.Format(SRServiceModel.PolicyInWsdlMustHaveFragmentId, xPath); 2340string warningMsg = string.Format(SRServiceModel.DuplicatePolicyInWsdlSkipped, xPath); 2354string warningMsg = string.Format(SRServiceModel.UnrecognizedPolicyDocumentNamespace, policyDocument.Value.NamespaceURI); 2361string warningMsg = string.Format(SRServiceModel.UnsupportedPolicyDocumentRoot, policyDocument.Value.Name); 2369string warningMsg = string.Format(SRServiceModel.DuplicatePolicyDocumentSkipped, key);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
344throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxKnownTypeNull, Operation.Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\TraceUtility.cs (1)
485ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityProcessAction, message.Headers.Action), ActivityType.ProcessAction);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
491return new InvalidOperationException(string.Format(SRServiceModel.SFxChannelDispatcherUnableToOpen1, _listener.Uri), e);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelHandler.cs (3)
826string reason = string.Format(SRServiceModel.SFxNoEndpointMatchingAddress, request.RequestMessage.Headers.To); 840string.Format(SRServiceModel.SFxMissingActionHeader, addressingVersion.Namespace), AddressingStrings.Action, addressingVersion.Namespace)); 848string reason = string.Format(SRServiceModel.SFxNoEndpointMatchingContract, request.RequestMessage.Headers.Action);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
86throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxKnownTypeNull, description.Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (2)
66throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.DispatchRuntimeRequiresFormatter0, _name))); 308string message = string.Format(SRServiceModel.SFxDispatchRuntimeMessageCannotBeNull, _name);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DispatchRuntime.cs (1)
377string reasonText = string.Format(SRServiceModel.SFxNoEndpointMatchingContract, action);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (1)
254return new TimeoutException(string.Format(SRServiceModel.SFxRequestTimedOut1, timeout));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ListenerBinder.cs (1)
38throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnknownListenerType1, listener.Uri.AbsoluteUri)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\MessageRpc.cs (1)
592string text = string.Format(SRServiceModel.SFxMultipleCallbackFromAsyncOperation,
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationFormatter.cs (7)
167throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxMessageContractRequiresDefaultConstructor, messageContractType.FullName), mme)); 504throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxDocEncodedNotSupported, operation.Name))); 518throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxTypedMessageCannotBeRpcLiteral, operation.Name))); 528throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxTypedOrUntypedMessageCannotBeMixedWithParameters, operation.Name))); 530throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxTypedOrUntypedMessageCannotBeMixedWithVoidInRpc, operation.Name))); 554reason = string.Format(SRServiceModel.SFxDeserializationFailed1, reason); 579throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(string.Format(SRServiceModel.SFxTypedMessageCannotBeNull, description.Action)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (2)
179new InvalidOperationException(string.Format(SRServiceModel.AddressingVersionNotSupported, addressing))); 201new InvalidOperationException(string.Format(SRServiceModel.AddressingVersionNotSupported, addressing)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (2)
84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ClientRuntimeRequiresFormatter0, _name))); 255throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxProxyRuntimeMessageCannotBeNull, _name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\StreamFormatter.cs (4)
177throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInvalidStreamInTypedMessage, messageDescription.MessageName))); 179throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInvalidStreamInRequest, operationName))); 181throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInvalidStreamInResponse, operationName))); 251throw TraceUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.SFxInvalidStreamOffsetLength, offset + count)), _message);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (1)
83throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInputParametersToServiceNull, _inputParameterCount)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
140new InvalidOperationException(string.Format(SRServiceModel.SFxInputParametersToServiceNull, _inputParameterCount)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ThreadBehavior.cs (1)
121string text = string.Format(SRServiceModel.SFxMultipleCallbackFromSynchronizationContext, _context.GetType().ToString());
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (4)
240string.Format(SRServiceModel.SFxErrorDeserializingHeader, messageDescription.MessageName), e)); 281throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxBodyCannotBeNull, messageDescription.MessageName))); 387string.Format(resourceKey, OperationName), e)); 404string.Format(SRServiceModel.EnvelopeVersionNotSupported, version));
FrameworkFork\System.ServiceModel\System\ServiceModel\DuplexChannelFactory.cs (6)
67ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct); 93ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct); 129ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct); 154ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct); 230throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxCreateDuplexChannel1, this.Endpoint.Contract.Name))); 237throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (5)
323new ProtocolException(string.Format(SRServiceModel.AddressingVersionNotSupported, message.Version.Addressing))); 567"reader", string.Format(SRServiceModel.AddressingVersionNotSupported, reader.NamespaceURI)); 605"reader", string.Format(SRServiceModel.AddressingVersionNotSupported, reader.NamespaceURI)); 680string.Format(SRServiceModel.AddressingVersionNotSupported, addressingVersion)); 1031string.Format(SRServiceModel.AddressingVersionNotSupported, addressingVersion));
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointIdentity.cs (1)
182throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnrecognizedIdentityPropertyType, this.IdentityClaim.GetType().ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\EnvelopeVersion.cs (1)
167return string.Format(_toStringFormat, Namespace);
FrameworkFork\System.ServiceModel\System\ServiceModel\FaultException.cs (1)
227return string.Format(SRServiceModel.SFxUnknownFaultNoMatchingTranslation1, reason.Translations[0].Text);
FrameworkFork\System.ServiceModel\System\ServiceModel\KeyedByTypeCollection.cs (1)
107throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("item", string.Format(SRServiceModel.DuplicateBehavior1, item.GetType().FullName));
FrameworkFork\System.ServiceModel\System\ServiceModel\NetHttpBinding.cs (1)
118throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(SRServiceModel.HttpClientCredentialTypeInvalid, this.BasicHttpSecurity.Transport.ClientCredentialType)));
FrameworkFork\System.ServiceModel\System\ServiceModel\NetHttpsBinding.cs (1)
75throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(SRServiceModel.HttpClientCredentialTypeInvalid, BasicHttpSecurity.Transport.ClientCredentialType)));
FrameworkFork\System.ServiceModel\System\ServiceModel\ProtocolException.cs (6)
24string text = string.Format(SRServiceModel.ReceiveShutdownReturnedFault, reason.Text); 29string text = string.Format(SRServiceModel.ReceiveShutdownReturnedLargeFault, message.Headers.Action); 35string text = string.Format(SRServiceModel.ReceiveShutdownReturnedMessage, message.Headers.Action); 48string text = string.Format(SRServiceModel.OneWayOperationReturnedFault, reason.Text); 53string text = string.Format(SRServiceModel.OneWayOperationReturnedLargeFault, message.Headers.Action); 59string text = string.Format(SRServiceModel.OneWayOperationReturnedMessage, message.Headers.Action);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\BinaryNegotiation.cs (1)
53throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityNegotiationException(string.Format(SRServiceModel.IncorrectBinaryNegotiationValueType, _valueTypeUri)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (4)
42throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.TokenRequirementDoesNotSpecifyTargetAddress, initiatorRequirement)); 67throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("authScheme", string.Format(SRServiceModel.HttpRequiresSingleAuthScheme, authScheme)); 170throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.SecurityTokenManagerCannotCreateProviderForRequirement, tokenRequirement))); 256throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.SecurityTokenManagerCannotCreateAuthenticatorForRequirement, tokenRequirement)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\IdentityVerifier.cs (2)
118result = new MessageSecurityException(string.Format(SRServiceModel.DnsIdentityCheckFailedForIncomingMessageLackOfDnsClaim, expectedDnsName)); 129result = new MessageSecurityException(string.Format(SRServiceModel.DnsIdentityCheckFailedForOutgoingMessageLackOfDnsClaim, expectedDnsName));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ReferenceList.cs (2)
79new SecurityMessageSerializationException(string.Format(SR_IdentityModel.InvalidDataReferenceInReferenceList, "#" + id))); 125new SecurityMessageSerializationException(string.Format(SR_IdentityModel.InvalidDataReferenceInReferenceList, uri)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\RequestSecurityToken.cs (6)
244throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemNotAvailableInDeserializedRST, "RequestProperties"))); 322throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemAvailableInDeserializedRSTOnly, "RequestSecurityTokenXml"))); 360throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemNotAvailableInDeserializedRST, "AppliesTo"))); 372throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemNotAvailableInDeserializedRST, "AppliesToSerializer"))); 384throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemNotAvailableInDeserializedRST, "AppliesToType"))); 451throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemAvailableInDeserializedRSTOnly, "MatchesAppliesTo")));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\RequestSecurityTokenResponse.cs (9)
319throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemNotAvailableInDeserializedRSTR, "EntropyToken"))); 331throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemNotAvailableInDeserializedRSTR, "IssuedToken"))); 349throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemNotAvailableInDeserializedRSTR, "ProofToken"))); 367throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemAvailableInDeserializedRSTROnly, "RequestSecurityTokenXml"))); 379throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemNotAvailableInDeserializedRST, "AppliesTo"))); 391throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemNotAvailableInDeserializedRST, "AppliesToSerializer"))); 403throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemNotAvailableInDeserializedRST, "AppliesToType"))); 415throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemNotAvailableInDeserializedRSTR, "IsLifetimeSet"))); 461throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemAvailableInDeserializedRSTOnly, "MatchesAppliesTo")));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityAlgorithmSuite.cs (3)
266throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.Psha1KeyLengthInvalid, this.DefaultEncryptionKeyDerivationLength))); 296throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SigningTokenHasNoKeys, token))); 341throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.Psha1KeyLengthInvalid, this.DefaultSignatureKeyDerivationLength)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocolFactory.cs (3)
749throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.MultipleSupportingAuthenticatorsOfSameType, spec.TokenParameters.GetType()))); 756throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.MultipleSupportingAuthenticatorsOfSameType, spec.TokenParameters.GetType()))); 1019throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("DetectReplays", string.Format(SRServiceModel.SecurityProtocolCannotDoReplayDetection, this));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (2)
404throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(string.Format(SRServiceModel.CannotDetermineSPNBasedOnAddress, target))); 444throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new QuotaExceededException(string.Format(SRServiceModel.BufferQuotaExceededReadingBase64, maxBufferSize)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\TimeBoundedCache.cs (1)
410string message = string.Format(SRServiceModel.CacheQuotaReached, _maxCacheItems);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SecurityTokenParameters.cs (1)
84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SecurityTokenParametersCloneInvalidResult, this.GetType().ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecureConversation.cs (3)
169throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.DerivedKeyInvalidGenerationSpecified, generation))); 179throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.DerivedKeyInvalidOffsetSpecified, offset))); 256throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(string.Format(SRServiceModel.UnsupportedKeyDerivationAlgorithm, derivedKeyToken.KeyDerivationAlgorithm)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityJan2004.cs (3)
362throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.UnsupportedPasswordType, type))); 435throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.CantInferReferenceForToken, EncryptedKey.ElementName.Value))); 480throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.CantInferReferenceForToken, ValueTypeAbsoluteUri)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (6)
1059throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 1071throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 1083throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 1192throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 1256throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 2963importer.Errors.Add(new MetadataConversionError(string.Format(SRServiceModel.MultipleIssuerEndpointsFound, mexAddress)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy12.cs (5)
460throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 472throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 484throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 496throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 611throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSTrust.cs (1)
704throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnableToCreateKeyTypeElementForUnknownKeyType, keyType.ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\XmlHelper.cs (6)
119throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.CouldNotFindNamespaceForPrefix, prefix))); 180throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.EmptyXmlElementError, r.Name))); 185throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.EmptyXmlElementError, e.Name))); 195throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.CouldNotFindNamespaceForPrefix, prefix))); 313throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("idPrefix", string.Format(SRServiceModel.InValidateIdPrefix, idPrefix[0]))); 321throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("idPrefix", string.Format(SRServiceModel.InValidateId, idPrefix[i])));
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (1)
311throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.SynchronizedCollectionWrongType1, value.GetType().FullName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\TcpTransportSecurity.cs (1)
73throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
FrameworkFork\System.ServiceModel\System\ServiceModel\UriSchemeKeyedCollection.cs (2)
36throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("item", string.Format(SRServiceModel.BaseAddressDuplicateScheme, item.Scheme)); 47throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("item", string.Format(SRServiceModel.BaseAddressDuplicateScheme, item.Scheme));
FrameworkFork\System.ServiceModel\System\ServiceModel\WSFederationHttpSecurity.cs (2)
25Fx.Assert(WSFederationHttpSecurityModeHelper.IsDefined(mode), string.Format("Invalid WSFederationHttpSecurityMode value: {0}", mode.ToString())); 78Fx.Assert(WSFederationHttpSecurityModeHelper.IsDefined(mode), string.Format("Invalid WSFederationHttpSecurityMode value: {0}", mode.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\WSHttpBinding.cs (1)
84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.HttpClientCredentialTypeInvalid, _security.Transport.ClientCredentialType)));
FrameworkFork\System.ServiceModel\System\ServiceModel\WSHttpSecurity.cs (2)
115Fx.Assert(SecurityModeHelper.IsDefined(securityMode), string.Format("Invalid SecurityMode value: {0}.", mode.ToString())); 126Fx.Assert(SecurityModeHelper.IsDefined(securityMode), string.Format("Invalid SecurityMode value: {0}.", securityMode.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\XmlUtil.cs (2)
115throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.InvalidXmlQualifiedName, qname))); 121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.UnboundPrefixInQName, qname)));
FrameworkFork\System.Web.Services\Configuration\WebServicesSection.cs (2)
61throw new ArgumentException(string.Format(ResWebServices.RequiredXmlFormatExtensionAttributeIsMissing1, extensionType.FullName), "extensionTypes"); 113throw new ArgumentException(string.Format(ResWebServices.TheSyntaxOfTypeMayNotBeExtended1, type.FullName), "type");
FrameworkFork\System.Web.Services\Services\Description\MimeFormatExtensions.cs (3)
184if (value < 0) throw new ArgumentException(string.Format(ResWebServices.WebNegativeValue, "group")); 196if (value < 0) throw new ArgumentException(string.Format(ResWebServices.WebNegativeValue, "capture")); 208if (value < 0) throw new ArgumentException(string.Format(ResWebServices.WebNegativeValue, "repeats"));
FrameworkFork\System.Web.Services\Services\Description\ServiceDescription.cs (13)
3215message = string.Format(ResWebServices.WebDuplicateFormatExtension, elemName); 3217message = string.Format(ResWebServices.WebDuplicateOperationMessage, elemName); 3219message = string.Format(ResWebServices.WebDuplicateImport, elemName); 3221message = string.Format(ResWebServices.WebDuplicateMessage, elemName); 3223message = string.Format(ResWebServices.WebDuplicatePort, elemName); 3225message = string.Format(ResWebServices.WebDuplicatePortType, elemName); 3227message = string.Format(ResWebServices.WebDuplicateBinding, elemName); 3229message = string.Format(ResWebServices.WebDuplicateService, elemName); 3231message = string.Format(ResWebServices.WebDuplicateMessagePart, elemName); 3233message = string.Format(ResWebServices.WebDuplicateOperationBinding, elemName); 3235message = string.Format(ResWebServices.WebDuplicateFaultBinding, elemName); 3237message = string.Format(ResWebServices.WebDuplicateOperation, elemName); 3239message = string.Format(ResWebServices.WebDuplicateOperationFault, elemName);
HelpGenerator.cs (23)
49ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.OutputDirectory.Name, SR.ParametersDirectory, string.Format(SR.HelpDirectoryFormat, CommandProcessorOptions.Switches.OutputDirectory.Abbreviation)), 50ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.NoLogo.Name, string.Format(SR.HelpNologoFormat, CommandProcessorOptions.Switches.NoLogo.Abbreviation)), 52ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.Help.Name, string.Format(SR.HelpHelpFormat, CommandProcessorOptions.Switches.Help.Abbreviation)), 53ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.ProjectFile.Name, SR.ParametersProjectFile, string.Format(SR.HelpProjectFileFormat, CommandProcessorOptions.Switches.ProjectFile.Abbreviation)), 54ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.OutputFile.Name, SR.ParametersOut, string.Format(SR.HelpOutFormat, CommandProcessorOptions.Switches.OutputFile.Abbreviation)), 55ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.Namespace.Name, SR.ParametersNamespace, string.Format(SR.HelpNamespaceFormat, CommandProcessorOptions.Switches.Namespace.Abbreviation), true), 56ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.MessageContract.Name, string.Format(SR.HelpMessageContractFormat, CommandProcessorOptions.Switches.MessageContract.Abbreviation), true), 57ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.EnableDataBinding.Name, string.Format(SR.HelpEnableDataBindingFormat, CommandProcessorOptions.Switches.EnableDataBinding.Abbreviation)), 58ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.Internal.Name, string.Format(SR.HelpInternalFormat, CommandProcessorOptions.Switches.Internal.Abbreviation)), 59ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.Reference.Name, SR.ParametersReference, string.Format(SR.HelpReferenceCodeGenerationFormat, CommandProcessorOptions.Switches.Reference.Abbreviation), true), 61ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.CollectionType.Name, SR.ParametersCollectionType, string.Format(SR.HelpCollectionTypeFormat, CommandProcessorOptions.Switches.CollectionType.Abbreviation)), 62ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.ExcludeType.Name, SR.ParametersExcludeType, string.Format(SR.HelpExcludeTypeCodeGenerationFormat, CommandProcessorOptions.Switches.ExcludeType.Abbreviation)), 63ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.NoStdlib.Name, string.Format(SR.HelpNostdlibFormat, CommandProcessorOptions.Switches.NoStdlib.Abbreviation)), 64ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.Serializer.Name, SerializerMode.Auto.ToString(), string.Format(SR.HelpAutoSerializerFormat, CommandProcessorOptions.Switches.Serializer.Abbreviation), true), 67ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.Sync.Name, string.Format(SR.HelpSyncFormat, CommandProcessorOptions.Switches.Sync.Abbreviation)), 68ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.SyncOnly.Name, string.Format(SR.HelpSyncOnlyFormat, CommandProcessorOptions.Switches.SyncOnly.Abbreviation)), 69ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.Wrapped.Name, string.Format(SR.HelpWrappedFormat, CommandProcessorOptions.Switches.Wrapped.Abbreviation)), 70ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.Update.Name, SR.ParametersWebServiceReferenceName, string.Format(SR.HelpUpdateWebServiceReferenceFormat, CommandProcessorOptions.Switches.Update.Abbreviation)), 71ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.RuntimeIdentifier.Name, SR.ParametersRuntimeIdentifier, string.Format(SR.HelpRuntimeIdentifierFormat, CommandProcessorOptions.Switches.RuntimeIdentifier.Abbreviation)), 72ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.TargetFramework.Name, SR.ParametersTargetFramework, string.Format(SR.HelpTargetFrameworkFormat, CommandProcessorOptions.Switches.TargetFramework.Abbreviation)), 73ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.AcceptCertificate.Name, string.Format(SR.HelpAcceptCertificateFormat, CommandProcessorOptions.Switches.AcceptCertificate.Abbreviation)), 74ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.ServiceContract.Name, string.Format(SR.HelpServiceContractFormat, CommandProcessorOptions.Switches.ServiceContract.Abbreviation)), 75ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.Language.Name, string.Format(SR.HelpLanguage, CommandProcessorOptions.Switches.Language.Abbreviation))
OutputPathHelper.cs (1)
80throw new ToolRuntimeException(string.Format(SR.ErrCannotCreateDirectoryFormat, directoryPath), e);
Tool.cs (2)
213ToolConsole.WriteLine(string.Format(SR.RetreivingMetadataMsgFormat, serviceDescriptor.MetadataUrl.AbsoluteUri)); 218ToolConsole.WriteLine(string.Format(SR.ReadingMetadataMessageFormat, displayUri));
ToolConsole.cs (2)
45toolError.AppendLine(string.Format(SR.WrnWSMExFailedFormat, me.ServiceUri?.AbsoluteUri)); 53toolError.AppendLine(string.Format(SR.MoreHelpFormat, CommandProcessorOptions.Switches.Help.Abbreviation));
TypeLoader.cs (2)
71warning = string.Format(SR.ErrCouldNotLoadTypesFromAssemblyAtFormat, assembly.Location); 80warning = string.Format(SR.WrnCouldNotLoadTypesFromReferenceAssemblyAtFormat, assembly.Location);
dotnet-svcutil-lib.Tests (2)
TestInit.cs (2)
431failureMessage += string.Format(g_NoBaselineErrorFormat, expected); 604var globalConfig = string.Format(globalConfigFormat, sdkVersion);
Extensibility.WebSockets.IntegrationTests (16)
WebSocketTests.4.1.0.cs (16)
78String.Format("Test case timeout was reached while waiting for the stream response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 90String.Format("Test case timeout was reached while waiting for the stream response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 96String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 153String.Format("Test case timeout was reached while waiting for the buffered response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 158String.Format("Test case timeout was reached while waiting for the buffered response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 164String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 225String.Format("Test case timeout was reached while waiting for the buffered response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 230String.Format("Test case timeout was reached while waiting for the buffered response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 236String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 319String.Format("Test case timeout was reached while waiting for the stream response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 331String.Format("Test case timeout was reached while waiting for the stream response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 337String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 398String.Format("Test case timeout was reached while waiting for the buffered response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 403String.Format("Test case timeout was reached while waiting for the buffered response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 409String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 885Assert.True(responseFromService, String.Format("Response from the service was not expected. Expected: 'True' but got {0}", responseFromService));
GenerateDocumentationAndConfigFiles (20)
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
127failureReason = string.Format(CompilerExtensionsResources.Missing_prefix_colon_0, Prefix); 133failureReason = string.Format(CompilerExtensionsResources.Missing_suffix_colon_0, Suffix); 154? string.Format(CompilerExtensionsResources.Prefix_0_is_not_expected, prefix) 226reason = string.Format(resourceId, string.Join(", ", violations)); 266reason = string.Format(firstResourceId, Substring(name, wordSpan)); 282var restString = string.Format(restResourceId, string.Join(", ", violations));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.RepeatMatcher.cs (1)
23=> string.Format("({0}*)", matcher);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.SequenceMatcher.cs (1)
29=> string.Format("({0})", string.Join(",", (object[])matchers));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\FixAllHelper.cs (4)
19FixAllScope.Custom => string.Format(WorkspaceExtensionsResources.Fix_all_0, title), 22FixAllScope.Solution => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Solution, title), 23FixAllScope.ContainingMember => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_member, title), 24FixAllScope.ContainingType => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_type, title),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
39return semanticModel ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 63return syntaxTree ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 80return root ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (1)
44throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Project_of_ID_0_is_required_to_accomplish_the_task_but_is_not_available_from_the_solution, projectId));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (1)
99throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Compilation_is_required_to_accomplish_the_task_but_is_not_supported_by_project_0, project.Name));
illink (4)
Infrastructure.Common (18)
ServiceUtilHelper.cs (10)
125String.Format("Failed to find a root certificate matching thumbprint '{0}'", thumbprint); 218String.Format("Failed to find a client certificate matching thumbprint '{0}'", thumbprint); 331String.Format("Failed to find a server certificate matching thumbprint '{0}'", thumbprint); 399String.Format("The root certificate could not be installed: {0}", s_rootCertInstallErrorMessage)); 408String.Format("The client certificate could not be installed: {0}", s_clientCertInstallErrorMessage)); 417String.Format("The peer certificate could not be installed: {0}", s_peerCertInstallErrorMessage)); 426String.Format("The OSX local Keychain certificate could not be installed: {0}", s_osXKeychainCertInstallErrorMessage)); 550Console.WriteLine(String.Format("Invoking {0} ...", requestUri)); 569Console.WriteLine(String.Format("Invoking {0} ...", requestUri)); 588Console.WriteLine(String.Format("Invoking {0} ...", requestUri));
xunit\ConditionAttribute.cs (1)
101return String.Format("{0}", String.Join(", ", falseConditions));
xunit\IssueAttribute.cs (2)
81return String.Format("{0}", 123Console.WriteLine(String.Format("Warning: The number '{0}' in IncludeTestsWithIssues is not a valid integer and will be ignored.", issue));
xunit\WcfTestCase.cs (3)
73etwOutput.AppendLine(string.Format("---ETW Trace for Test {0} Begins---", DisplayName)); 88etwOutput.AppendLine(string.Format("ETW message: {0}, payload below was received", item.Message)); 98etwOutput.AppendLine(string.Format("---ETW Trace for Test {0} Ends---", DisplayName));
xunit\WcfTestDiscoverer.cs (2)
48string skippedReason = string.Format("Active issue(s): {0}", string.Join(", ", issueSkipList)); 77string skippedReason = string.Format("Condition(s) not met: {0}", string.Join(", ", skipReasons));
Infrastructure.IntegrationTests (3)
OSAndFrameworkTests.4.1.1.cs (3)
17String.Format("FrameworkID was not properly detected from: RuntimeInformation.FrameworkDescription = \'{0}\"", 41String.Format("FrameworkID.Name should have contained NetCore and NetNative, but actual was \"{0}\"", formatted)); 52String.Format("FrameworkID.Name should have contained Windows_7 and Ubuntu, but actual was \"{0}\"", formatted));
InteractiveHost.UnitTests (3)
AbstractInteractiveHostTests.cs (1)
90string.Format(CSharpScriptingResources.LogoLine1, CommonCompiler.GetProductVersion(typeof(CSharpReplServiceProvider)))
InteractiveHostCoreInitTests.cs (1)
50(1,1): error CS0006: {string.Format(CSharpResources.ERR_NoMetadataFile, scriptingAssemblyName)}", error);
InteractiveHostDesktopTests.cs (1)
749@$"{initFile.Path}(1,1): error CS0006: {string.Format(CSharpResources.ERR_NoMetadataFile, "Assembly.dll")}", error);
Metrics (11)
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
127failureReason = string.Format(CompilerExtensionsResources.Missing_prefix_colon_0, Prefix); 133failureReason = string.Format(CompilerExtensionsResources.Missing_suffix_colon_0, Suffix); 154? string.Format(CompilerExtensionsResources.Prefix_0_is_not_expected, prefix) 226reason = string.Format(resourceId, string.Join(", ", violations)); 266reason = string.Format(firstResourceId, Substring(name, wordSpan)); 282var restString = string.Format(restResourceId, string.Join(", ", violations));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.RepeatMatcher.cs (1)
23=> string.Format("({0}*)", matcher);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.SequenceMatcher.cs (1)
29=> string.Format("({0})", string.Join(",", (object[])matchers));
Metrics.Legacy (11)
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
127failureReason = string.Format(CompilerExtensionsResources.Missing_prefix_colon_0, Prefix); 133failureReason = string.Format(CompilerExtensionsResources.Missing_suffix_colon_0, Suffix); 154? string.Format(CompilerExtensionsResources.Prefix_0_is_not_expected, prefix) 226reason = string.Format(resourceId, string.Join(", ", violations)); 266reason = string.Format(firstResourceId, Substring(name, wordSpan)); 282var restString = string.Format(restResourceId, string.Join(", ", violations));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.RepeatMatcher.cs (1)
23=> string.Format("({0}*)", matcher);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.SequenceMatcher.cs (1)
29=> string.Format("({0})", string.Join(",", (object[])matchers));
Microsoft.Analyzers.Extra (1)
DiagDescriptors.cs (1)
142string.Format(DiagnosticIds.UrlFormat, id),
Microsoft.Arcade.Test.Common (2)
AssertEx.cs (2)
278Assert.True(any, string.Format("No expected item was found.\nExisting items: {0}", ToString(actual))); 286Assert.True(all, string.Format(
Microsoft.AspNetCore.Authentication.BearerToken (1)
BearerTokenJsonSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Authentication.Twitter (1)
TwitterJsonContext.g.cs (1)
82throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Components.Endpoints (3)
ImportMapSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
PrerenderComponentApplicationStoreSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
ResourceCollectionSerializerContext.g.cs (1)
86throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Components.Server (3)
CircuitPersistenceManagerSerializerContext.g.cs (1)
82throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
PrerenderComponentApplicationStoreSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackReader.cs (1)
631throw new MessagePackSerializationException(string.Format("Extension TypeCode is invalid. typeCode: {0}", header.TypeCode));
Microsoft.AspNetCore.Components.Web (1)
WebRendererSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Components.WebAssembly (2)
PrerenderComponentApplicationStoreSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
WebAssemblyJsonSerializerContext.g.cs (1)
85throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Components.WebView (1)
SourceGenerationContext.g.cs (1)
84throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Diagnostics (1)
ExtensionsExceptionJsonContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Hosting (1)
SourceGenerationContext.g.cs (1)
84throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Http.Extensions (1)
ProblemDetailsJsonContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Http.Microbenchmarks (1)
SharedTestJsonContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Http.Results.Tests (3)
ObjectJsonContext.g.cs (1)
82throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
StringJsonContext.g.cs (1)
82throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
TestJsonContext.g.cs (1)
82throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Identity (2)
IdentityEndpointsJsonSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
IdentityJsonSerializerContext.g.cs (1)
84throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Mvc.Core.Test (1)
TestJsonContext.g.cs (1)
82throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Mvc.Testing (1)
CustomJsonSerializerContext.g.cs (1)
82throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.OpenApi (1)
OpenApiJsonSchemaContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.SignalR.Tests (1)
AppJsonSerializerContext.g.cs (1)
82throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsManifestJsonContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.Cci.Extensions (15)
Extensions\CSharp\CSharpCciExtensions.cs (1)
122throw new InvalidOperationException(String.Format("All delegates should have an Invoke method, but {0} doesn't have one.", type.FullName()));
Extensions\DocIdExtensions.cs (3)
52return string.Format("A:{0}", assembly.Name.Value); 60return string.Format("{0}", platformInvoke.ImportName.Value); 83Contract.Assert(false, string.Format("Fell through cases in TypeExtensions.RefDocId() Type of reference: {0}", reference.GetType()));
Extensions\TypeExtensions.cs (3)
151throw new NotSupportedException(string.Format("Unknown IReference '{0}' so we cannot get assembly reference!", reference.GetType().FullName)); 263Contract.Assert(false, String.Format("Fell through cases in TypeExtensions.FullName() Type of reference: {0}", reference.GetType())); 418string.Format("Unexpected type reference that we may need to unwrap {0}", (reference != null ? reference.GetType().FullName : "null")));
HostEnvironment.cs (2)
485throw new InvalidOperationException(string.Format("Could not find core assembly '{0}' in the list of contracts.", coreAssemblySimpleName)); 672throw new InvalidOperationException(String.Format("Could not find core assembly '{0}' in the list of identities.", coreAssemblySimpleName));
Writers\CSharp\CSDeclarationWriter.Attributes.cs (2)
268Write(String.Format("'{0}'", EscapeChar((char)value, false))); 369return String.Format("\\u{0:X4}", (int)c);
Writers\CSharp\CSDeclarationWriter.Types.cs (3)
30string layoutKind = string.Format("System.Runtime.InteropServices.LayoutKind.{0}", type.Layout.ToString()); 40string sizeOf = string.Format("Size={0}", type.SizeOf); 46string pack = string.Format("Pack={0}", type.Alignment);
Writers\Syntax\OpenXmlSyntaxWriter.cs (1)
128WriteCore(string.Format("<w:rStyle w:val='{0}' />", styleId));
Microsoft.CodeAnalysis (47)
CommandLine\CommonCompiler.cs (2)
609consoleOutput.WriteLine(string.Format(CodeAnalysisResources.InternalsVisibleToCurrentAssembly, currentAssembly.Identity.GetDisplayName(fullKey: true))); 633consoleOutput.WriteLine(string.Format(CodeAnalysisResources.InternalsVisibleToReferencedAssemblyDetails, simpleName));
CommandLine\ReportAnalyzerUtil.cs (5)
48string.Format("{0,5}", percentage < 1 ? "<1" : percentage.ToString(culture)); 52var time = string.Format("{0,8}", CodeAnalysisResources.AnalyzerExecutionTimeColumnHeader); 53var percent = string.Format("{0,5}", "%"); 74consoleOutput.WriteLine(string.Format(CodeAnalysisResources.AnalyzerTotalExecutionTime, totalAnalyzerExecutionTime.ToString("##0.000", culture))); 120consoleOutput.WriteLine(string.Format(CodeAnalysisResources.GeneratorTotalExecutionTime, totalTime.ToString("##0.000", culture)));
Compilation\Compilation.cs (4)
685throw new ArgumentException(string.Format(CodeAnalysisResources.ReferenceOfTypeIsInvalid1, reference.GetType()), 845throw new ArgumentException(string.Format(CodeAnalysisResources.MetadataRefNotFoundToRemove1, r), 1643throw new ArgumentException(string.Format(CodeAnalysisResources.IsSymbolAccessibleBadWithin, nameof(within)), nameof(within)); 1659throw new ArgumentException(string.Format(CodeAnalysisResources.IsSymbolAccessibleWrongAssembly, parameterName), parameterName);
ConstantValueSpecialized.cs (1)
212return (_value == null) ? "null" : string.Format("\"{0}\"", _value);
CvtRes.cs (1)
78throw new ResourceException(String.Format("Resource header beginning at offset 0x{0:x} is malformed.", stream.Position - 8));
Diagnostic\CustomObsoleteDiagnosticInfo.cs (1)
76helpLinkUri = string.Format(urlFormat, id);
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
1419string.Format(CodeAnalysisResources.ExceptionContext, info?.GetContext()), e.CreateDiagnosticDescription()); 1446return string.Format(CodeAnalysisResources.DisableAnalyzerDiagnosticsMessage, string.Join(", ", diagnosticIds));
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
620string.Format(CodeAnalysisResources.AssemblyReferencesNetFramework, typeName),
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (2)
307throw new ArgumentException(string.Format(CodeAnalysisResources.SupportedDiagnosticsHasNullDescriptor, analyzer.ToString()), nameof(DiagnosticAnalyzer.SupportedDiagnostics)); 387throw new ArgumentException(string.Format(CodeAnalysisResources.SupportedSuppressionsHasNullDescriptor, analyzer.ToString()), nameof(DiagnosticSuppressor.SupportedSuppressions));
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (2)
1940var message = string.Format(CodeAnalysisResources.NonReportedDiagnosticCannotBeSuppressed, suppression.SuppressedDiagnostic.Id); 1947var message = string.Format(CodeAnalysisResources.UnsupportedSuppressionReported, suppression.Descriptor.Id);
DiagnosticAnalyzer\DiagnosticAnalysisContextHelpers.cs (2)
63throw new ArgumentException(string.Format(CodeAnalysisResources.UnsupportedDiagnosticReported, diagnostic.Id), nameof(diagnostic)); 71throw new ArgumentException(string.Format(CodeAnalysisResources.InvalidDiagnosticIdReported, diagnostic.Id), nameof(diagnostic));
Emit\EditAndContinue\DeletedMethodBody.cs (1)
77message = string.Format(CodeAnalysisResources.EncLambdaRudeEdit, rudeEdit.Value.Message);
Emit\SemanticEdit.cs (1)
186throw new ArgumentOutOfRangeException(nameof(MethodInstrumentation.Kinds), string.Format(CodeAnalysisResources.InvalidInstrumentationKind, instrumentationKind));
MetadataReader\MetadataReaderExtensions.cs (2)
106throw new BadImageFormatException(string.Format(CodeAnalysisResources.InvalidAssemblyName, nameStr)); 112throw new BadImageFormatException(string.Format(CodeAnalysisResources.InvalidCultureName, cultureName));
MetadataReference\AssemblyIdentity.cs (2)
113throw new ArgumentException(string.Format(CodeAnalysisResources.InvalidAssemblyName, name), nameof(name)); 118throw new ArgumentException(string.Format(CodeAnalysisResources.InvalidCultureName, cultureName), nameof(cultureName));
NativePdbWriter\PdbWriter.cs (2)
551throw new SymUnmanagedWriterException(string.Format(message, e.ImplementationModuleName)); 767throw new SymUnmanagedWriterException(string.Format(CodeAnalysisResources.SymWriterDoesNotSupportSourceLink, e.ImplementationModuleName));
SourceGeneration\AdditionalSourcesCollection.cs (3)
78throw new ArgumentException(string.Format(CodeAnalysisResources.HintNameUniquePerGenerator, hintName), nameof(hintName)); 83throw new ArgumentException(string.Format(CodeAnalysisResources.SourceTextRequiresEncoding, hintName), nameof(source)); 129throw new ArgumentException(string.Format(CodeAnalysisResources.HintNameUniquePerGenerator, source.HintName), "hintName");
SourceGeneration\GeneratorContexts.cs (1)
213throw new InvalidOperationException(string.Format(CodeAnalysisResources.Single_type_per_generator_0, typeName ?? typeof(T).Name));
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (8)
364throw new InvalidOperationException(string.Format("Expected at most one Using record for method {0}", FormatMethodToken(methodToken))); 373throw new InvalidOperationException(string.Format("Did not expect both Forward and ForwardToModule records for method {0}", FormatMethodToken(methodToken))); 391throw new InvalidOperationException(string.Format("Expected at most one ForwardToModule record for method {0}", FormatMethodToken(methodToken))); 433throw new InvalidOperationException(string.Format("Group size indicates more imports than there are import strings (method {0}).", FormatMethodToken(methodToken))); 439throw new InvalidOperationException(string.Format("Encountered extern alias info before all import strings were consumed (method {0}).", FormatMethodToken(methodToken))); 459throw new InvalidOperationException(string.Format("Expected only extern alias info strings after consuming the indicated number of imports (method {0}).", FormatMethodToken(methodToken))); 473throw new InvalidOperationException(string.Format("Group size indicates fewer imports than there are import strings (method {0}).", FormatMethodToken(methodToken))); 846return string.Format("0x{0:x8}", methodToken);
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
TreeDumper.cs (1)
227return string.Format("{{{0}}}", string.Join(", ", seq.Cast<object>().Select(DumperString).ToArray()));
Microsoft.CodeAnalysis.Analyzers (20)
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
127failureReason = string.Format(CompilerExtensionsResources.Missing_prefix_colon_0, Prefix); 133failureReason = string.Format(CompilerExtensionsResources.Missing_suffix_colon_0, Suffix); 154? string.Format(CompilerExtensionsResources.Prefix_0_is_not_expected, prefix) 226reason = string.Format(resourceId, string.Join(", ", violations)); 266reason = string.Format(firstResourceId, Substring(name, wordSpan)); 282var restString = string.Format(restResourceId, string.Join(", ", violations));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.RepeatMatcher.cs (1)
23=> string.Format("({0}*)", matcher);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.SequenceMatcher.cs (1)
29=> string.Format("({0})", string.Join(",", (object[])matchers));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\FixAllHelper.cs (4)
19FixAllScope.Custom => string.Format(WorkspaceExtensionsResources.Fix_all_0, title), 22FixAllScope.Solution => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Solution, title), 23FixAllScope.ContainingMember => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_member, title), 24FixAllScope.ContainingType => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_type, title),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
39return semanticModel ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 63return syntaxTree ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 80return root ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (1)
44throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Project_of_ID_0_is_required_to_accomplish_the_task_but_is_not_available_from_the_solution, projectId));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (1)
99throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Compilation_is_required_to_accomplish_the_task_but_is_not_supported_by_project_0, project.Name));
Microsoft.CodeAnalysis.Analyzers.UnitTests (46)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzerTests.cs (44)
1929additionalFileText: string.Format(additionalFileTextFormat, "My Analyzer Title."), 1930fixedAdditionalFileText: string.Format(additionalFileTextFormat, "My Analyzer Title"), 1964additionalFileText: string.Format(additionalFileTextFormat, "My Analyzer Title."), 1965fixedAdditionalFileText: string.Format(additionalFileTextFormat, "My Analyzer Title"), 2165additionalFileText: string.Format(additionalFileTextFormat, title), 2166fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedTitle), 2200additionalFileText: string.Format(additionalFileTextFormat, title), 2201fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedTitle), 2381additionalFileText: string.Format(additionalFileTextFormat, "MyDiagnostic. Title."), 2382fixedAdditionalFileText: string.Format(additionalFileTextFormat, "MyDiagnostic"), 2420additionalFileText: string.Format(additionalFileTextFormat, "MyDiagnostic. Title."), 2421fixedAdditionalFileText: string.Format(additionalFileTextFormat, "MyDiagnostic"), 2619additionalFileText: string.Format(additionalFileTextFormat, title), 2620fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedTitle), 2654additionalFileText: string.Format(additionalFileTextFormat, title), 2655fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedTitle), 2788source: string.Format(csharpSourceFormat, $"{{|#0:{csharpTitleExpression}|}}"), 2789fixedSource: string.Format(csharpSourceFormat, csharpTitleExpression), 2791additionalFileText: string.Format(additionalFileTextFormat, title), 2792fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedTitle), 2823source: string.Format(basicSourceFormat, $"{{|#0:{basicTitleExpression}|}}"), 2824fixedSource: string.Format(basicSourceFormat, basicTitleExpression), 2826additionalFileText: string.Format(additionalFileTextFormat, title), 2827fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedTitle), 3032additionalFileText: string.Format(additionalFileTextFormat, message), 3033fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedMessage), 3067additionalFileText: string.Format(additionalFileTextFormat, message), 3068fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedMessage), 3371additionalFileText: string.Format(additionalFileTextFormat, message), 3372fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedMessage), 3406additionalFileText: string.Format(additionalFileTextFormat, message), 3407fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedMessage), 3563additionalFileText: string.Format(additionalFileTextFormat, message), 3564fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedMessage), 3598additionalFileText: string.Format(additionalFileTextFormat, message), 3599fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedMessage), 3800additionalFileText: string.Format(additionalFileTextFormat, description), 3801fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedDescription), 3835additionalFileText: string.Format(additionalFileTextFormat, description), 3836fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedDescription), 3992additionalFileText: string.Format(additionalFileTextFormat, description), 3993fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedDescription), 4027additionalFileText: string.Format(additionalFileTextFormat, description), 4028fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedDescription),
MetaAnalyzers\MissingDiagnosticAnalyzerAttributeRuleTests.cs (2)
83CodeActionEquivalenceKey = string.Format(CodeAnalysisDiagnosticsResources.ApplyDiagnosticAnalyzerAttribute_1, LanguageNames.CSharp), 177CodeActionEquivalenceKey = string.Format(CodeAnalysisDiagnosticsResources.ApplyDiagnosticAnalyzerAttribute_1, LanguageNames.VisualBasic),
Microsoft.CodeAnalysis.AnalyzerUtilities (11)
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
127failureReason = string.Format(CompilerExtensionsResources.Missing_prefix_colon_0, Prefix); 133failureReason = string.Format(CompilerExtensionsResources.Missing_suffix_colon_0, Suffix); 154? string.Format(CompilerExtensionsResources.Prefix_0_is_not_expected, prefix) 226reason = string.Format(resourceId, string.Join(", ", violations)); 266reason = string.Format(firstResourceId, Substring(name, wordSpan)); 282var restString = string.Format(restResourceId, string.Join(", ", violations));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.RepeatMatcher.cs (1)
23=> string.Format("({0}*)", matcher);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.SequenceMatcher.cs (1)
29=> string.Format("({0})", string.Join(",", (object[])matchers));
Microsoft.CodeAnalysis.BannedApiAnalyzers (20)
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
127failureReason = string.Format(CompilerExtensionsResources.Missing_prefix_colon_0, Prefix); 133failureReason = string.Format(CompilerExtensionsResources.Missing_suffix_colon_0, Suffix); 154? string.Format(CompilerExtensionsResources.Prefix_0_is_not_expected, prefix) 226reason = string.Format(resourceId, string.Join(", ", violations)); 266reason = string.Format(firstResourceId, Substring(name, wordSpan)); 282var restString = string.Format(restResourceId, string.Join(", ", violations));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.RepeatMatcher.cs (1)
23=> string.Format("({0}*)", matcher);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.SequenceMatcher.cs (1)
29=> string.Format("({0})", string.Join(",", (object[])matchers));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\FixAllHelper.cs (4)
19FixAllScope.Custom => string.Format(WorkspaceExtensionsResources.Fix_all_0, title), 22FixAllScope.Solution => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Solution, title), 23FixAllScope.ContainingMember => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_member, title), 24FixAllScope.ContainingType => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_type, title),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
39return semanticModel ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 63return syntaxTree ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 80return root ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (1)
44throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Project_of_ID_0_is_required_to_accomplish_the_task_but_is_not_available_from_the_solution, projectId));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (1)
99throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Compilation_is_required_to_accomplish_the_task_but_is_not_supported_by_project_0, project.Name));
Microsoft.CodeAnalysis.CodeStyle (11)
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
127failureReason = string.Format(CompilerExtensionsResources.Missing_prefix_colon_0, Prefix); 133failureReason = string.Format(CompilerExtensionsResources.Missing_suffix_colon_0, Suffix); 154? string.Format(CompilerExtensionsResources.Prefix_0_is_not_expected, prefix) 226reason = string.Format(resourceId, string.Join(", ", violations)); 266reason = string.Format(firstResourceId, Substring(name, wordSpan)); 282var restString = string.Format(restResourceId, string.Join(", ", violations));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.RepeatMatcher.cs (1)
23=> string.Format("({0}*)", matcher);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.SequenceMatcher.cs (1)
29=> string.Format("({0})", string.Join(",", (object[])matchers));
Microsoft.CodeAnalysis.CodeStyle.Fixes (31)
src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (1)
164return string.Format(
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (1)
370var title = string.Format(resourceString, signature);
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
70string.Format(CodeFixesResources.Alias_ambiguous_type_0, diagnosticNode.ToString()),
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (2)
273: string.Format(CodeFixesResources.Take_0, topText); 278: string.Format(CodeFixesResources.Take_0, bottomText);
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (3)
97string.Format(CodeFixesResources.Generate_constructor_in_0_with_fields, state.TypeToGenerateIn.Name), 106string.Format(CodeFixesResources.Generate_constructor_in_0_with_properties, state.TypeToGenerateIn.Name), 113string.Format(CodeFixesResources.Generate_constructor_in_0, state.TypeToGenerateIn.Name),
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.CodeAction.cs (1)
56return string.Format(
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.CodeAction.cs (1)
52return string.Format(text, name);
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.CodeAction.cs (1)
187return string.Format(
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (1)
74string.Format(CodeFixesResources.Generate_variable_0, state.IdentifierToken.ValueText),
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.GenerateLocalCodeAction.cs (1)
30return string.Format(
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.GenerateParameterCodeAction.cs (1)
36return string.Format(
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\AbstractImplementAbstractClassCodeFixProvider.cs (1)
61string.Format(AnalyzersResources.Implement_through_0, through.Name),
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceService.cs (1)
243return string.Format(CodeFixesResources.Implement_interface_through_0, options.ThroughMember.Name);
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (1)
194string.Format(CodeFixesResources.Do_not_change_this_code_Put_cleanup_code_in_0_method, disposeMethodDisplayString),
src\Analyzers\Core\CodeFixes\NamingStyle\NamingStyleCodeFixProvider.cs (1)
96string.Format(CodeFixesResources.Fix_name_violation_colon_0, fixedName),
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
46var title = string.Format(TitleFormat, type.Name);
src\Analyzers\Core\CodeFixes\UpgradeProject\AbstractUpgradeProjectCodeFixProvider.cs (2)
56var fixOneProjectTitle = string.Format(UpgradeThisProjectResource, newVersion); 64var fixAllProjectsTitle = string.Format(UpgradeAllProjectsResource, newVersion);
src\Analyzers\Core\CodeFixes\UseCollectionExpression\AbstractUseCollectionExpressionCodeFixProvider.cs (1)
17private readonly string _titleChangesSemantics = string.Format(CodeFixesResources._0_may_change_semantics, title);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\FixAllHelper.cs (4)
19FixAllScope.Custom => string.Format(WorkspaceExtensionsResources.Fix_all_0, title), 22FixAllScope.Solution => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Solution, title), 23FixAllScope.ContainingMember => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_member, title), 24FixAllScope.ContainingType => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_type, title),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
39return semanticModel ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 63return syntaxTree ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 80return root ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (1)
44throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Project_of_ID_0_is_required_to_accomplish_the_task_but_is_not_available_from_the_solution, projectId));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (1)
99throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Compilation_is_required_to_accomplish_the_task_but_is_not_supported_by_project_0, project.Name));
Microsoft.CodeAnalysis.Collections.Package (3)
Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
Microsoft.CodeAnalysis.CSharp (20)
CommandLine\CSharpCommandLineParser.cs (1)
1447AddDiagnostic(diagnostics, ErrorCode.ERR_BadBaseNumber, string.Format("0x{0:X}", baseAddress));
Compilation\CSharpCompilation.cs (7)
4236throw new ArgumentException(string.Format(CSharpResources.CallingConventionTypeIsInvalid, type.ToDisplayString())); 4358throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps1, name), nameof(name)); 4362throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps3, name), nameof(name)); 4557throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps2, $"{csharpReturnType.ToDisplayString()} operator {name}({csharpLeftType.ToDisplayString()}, {csharpRightType.ToDisplayString()})")); 4584throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps1, name), nameof(name)); 4588throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps3, name), nameof(name)); 4639throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps2, $"{csharpReturnType.ToDisplayString()} operator {name}({csharpOperandType.ToDisplayString()})"));
Compilation\CSharpSemanticModel.cs (1)
1306string.Format(CSharpResources.PositionIsNotWithinSyntax, Root.FullSpan));
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (1)
409commentMessage = string.Format(ErrorFacts.GetMessage(MessageID.IDS_XMLIGNORED2, CultureInfo.CurrentUICulture), resolvedFilePath);
CSharpExtensions.cs (4)
797throw new ArgumentException(string.Format(CSharpResources.IConversionExpressionIsNotCSharpConversion, 823throw new ArgumentException(string.Format(CSharpResources.ICompoundAssignmentOperationIsNotCSharpCompoundAssignment, 849throw new ArgumentException(string.Format(CSharpResources.ICompoundAssignmentOperationIsNotCSharpCompoundAssignment, 874throw new ArgumentException(string.Format(CSharpResources.ISpreadOperationIsNotCSharpSpread, nameof(spread)), nameof(spread));
Emitter\EditAndContinue\EmitHelpers.cs (1)
175string.Format(CodeAnalysisResources.Type0DoesNotHaveExpectedConstructor, type.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat)));
Emitter\Model\PEModuleBuilder.cs (1)
1282throw new InvalidOperationException(string.Format(CSharpResources.GenericParameterDefinition, param.Name));
Syntax\InternalSyntax\SyntaxToken.cs (2)
76throw new ArgumentException(string.Format(CSharpResources.ThisMethodCanOnlyBeUsedToCreateTokens, kind), nameof(kind)); 91throw new ArgumentException(string.Format(CSharpResources.ThisMethodCanOnlyBeUsedToCreateTokens, kind), nameof(kind));
Syntax\SyntaxFactory.cs (2)
263throw new ArgumentException(string.Format(CSharpResources.ThisMethodCanOnlyBeUsedToCreateTokens, kind), nameof(kind)); 1649string commentText = string.Format(@"/// <see cref=""{0}""/>", text);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SymbolDisplayPartExtensions.cs (1)
23return new SymbolDisplayPart(SymbolDisplayPartKind.ErrorTypeName, null, string.Format("@{0}", text));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (8)
src\Analyzers\CSharp\CodeFixes\ConvertToAsync\CSharpConvertToAsyncMethodCodeFixProvider.cs (1)
42return string.Format(CSharpCodeFixesResources.Make_0_return_Task_instead_of_void, methodNode!.WithBody(null));
src\Analyzers\CSharp\CodeFixes\DisambiguateSameVariable\CSharpDisambiguateSameVariableCodeFixProvider.cs (1)
123title = string.Format(titleFormat, $"{memberContainer}.{matchingMember.Name}");
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateConversionService.cs (2)
218=> string.Format(CodeFixesResources.Generate_implicit_conversion_operator_in_0, state.TypeToGenerateIn.Name); 221=> string.Format(CodeFixesResources.Generate_explicit_conversion_operator_in_0, state.TypeToGenerateIn.Name);
src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (2)
107string.Format(CodeFixesResources.Do_not_change_this_code_Put_cleanup_code_in_0_method, disposeMethodDisplayString), 115string.Format(CodeFixesResources.TODO_colon_override_finalizer_only_if_0_has_code_to_free_unmanaged_resources, disposeMethodDisplayString),
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
56string.Format(CSharpCodeFixesResources.Use_0, displayText),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\OperatorGenerator.cs (1)
85throw new ArgumentException(string.Format(WorkspaceExtensionsResources.Cannot_generate_code_for_unsupported_operator_0, method.Name), nameof(method));
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (48)
src\Analyzers\CSharp\Tests\AddExplicitCast\AddExplicitCastTests.cs (9)
2455new(title: string.Format(CodeFixesResources.Convert_type_to_0, "Derived"))); 2472new(title: string.Format(CodeFixesResources.Convert_type_to_0, "Derived2"))); 2518new(title: string.Format(CodeFixesResources.Convert_type_to_0, "Derived"))); 2535new(title: string.Format(CodeFixesResources.Convert_type_to_0, "Derived2"))); 2661new(title: string.Format(CodeFixesResources.Convert_type_to_0, "Derived"))); 2681new(title: string.Format(CodeFixesResources.Convert_type_to_0, "Derived2"))); 2738new(title: string.Format(CodeFixesResources.Convert_type_to_0, "string"))); 2761new(title: string.Format(CodeFixesResources.Convert_type_to_0, "Derived"))); 2784new(title: string.Format(CodeFixesResources.Convert_type_to_0, "Derived2")));
src\Analyzers\CSharp\Tests\ConditionalExpressionInStringInterpolation\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProviderTests.cs (2)
39string.Format(template, initialMethodBody), 40string.Format(template, expectedMethodBody)).ConfigureAwait(false);
src\Analyzers\CSharp\Tests\ImplementAbstractClass\ImplementAbstractClassTests_ThroughMember.cs (22)
117""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 148""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 176""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 209""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 269""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 300""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 325string.Format(AnalyzersResources.Implement_through_0, "Inner"), 326string.Format(AnalyzersResources.Implement_through_0, "IInterface.Inner"), 373""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 401""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 472""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 559""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 594""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 640""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 671""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 702""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 748""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 779""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 875""", [AnalyzersResources.Implement_abstract_class, string.Format(AnalyzersResources.Implement_through_0, "_base")]); 890""", [AnalyzersResources.Implement_abstract_class, string.Format(AnalyzersResources.Implement_through_0, "_base")]); 905""", [AnalyzersResources.Implement_abstract_class, string.Format(AnalyzersResources.Implement_through_0, "B")]); 920""", [AnalyzersResources.Implement_abstract_class, string.Format(AnalyzersResources.Implement_through_0, "B")]);
src\Analyzers\CSharp\Tests\ImplementInterface\ImplementInterfaceCodeFixTests.cs (3)
7392// // {{string.Format(CodeFixesResources.TODO_colon_override_finalizer_only_if_0_has_code_to_free_unmanaged_resources, "Dispose(bool disposing)")}} 7395// // {{string.Format(CodeFixesResources.Do_not_change_this_code_Put_cleanup_code_in_0_method, "Dispose(bool disposing)")}} 7401// {{string.Format(CodeFixesResources.Do_not_change_this_code_Put_cleanup_code_in_0_method, "Dispose(bool disposing)")}}
src\Analyzers\CSharp\Tests\RemoveUnusedMembers\RemoveUnusedMembersTests.cs (1)
1575.WithMessage(string.Format(AnalyzersResources.Private_property_0_can_be_converted_to_a_method_as_its_get_accessor_is_never_invoked, "MyClass.P"))
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (11)
464string.Format(CSharpCodeFixesResources.Upgrade_this_project_to_csharp_language_version_0, "7.0"), 465string.Format(CSharpCodeFixesResources.Upgrade_all_csharp_projects_to_language_version_0, "7.0") 492string.Format(CSharpCodeFixesResources.Upgrade_this_project_to_csharp_language_version_0, "8.0"), 493string.Format(CSharpCodeFixesResources.Upgrade_all_csharp_projects_to_language_version_0, "8.0") 519string.Format(CSharpCodeFixesResources.Upgrade_this_project_to_csharp_language_version_0, "7.0") 546string.Format(CSharpCodeFixesResources.Upgrade_this_project_to_csharp_language_version_0, "7.0") 575string.Format(CSharpCodeFixesResources.Upgrade_this_project_to_csharp_language_version_0, defaultVersion), 576string.Format(CSharpCodeFixesResources.Upgrade_all_csharp_projects_to_language_version_0, defaultVersion) 599[string.Format(CSharpCodeFixesResources.Upgrade_this_project_to_csharp_language_version_0, "8.0")]); 626string.Format(CSharpCodeFixesResources.Upgrade_this_project_to_csharp_language_version_0, defaultEffectiveVersion), 627string.Format(CSharpCodeFixesResources.Upgrade_all_csharp_projects_to_language_version_0, defaultEffectiveVersion)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (14)
CommandLineTests.cs (10)
7798string.Format("/target:{0}", target), 7799string.Format("/out:{0}", outputFileName), 7808string.Format("/target:{0}", target), 7809string.Format("/out:{0}", outputFileName), 7810string.Format("/win32manifest:{0}", Path.GetFileName(manifestFile.Path)), 9147var expectedOutput = string.Format("error CS0016: Could not write to output file '{0}' -- 'I/O error occurred.'", xmlPath); 9283string aWrnString = String.Format(cs2002, "a.cs"); 9295string AWrnString = String.Format(cs2002, "A.cs"); 9307string tmpDiraString = String.Format(cs2002, @"tmpDir\a.cs"); 11367var output = ProcessUtilities.RunAndGetOutput(s_CSharpCompilerExecutable, String.Format("/nologo /doc:doc.xml /out:out.exe /resource:doc.xml \"{0}\"", src.ToString()), startFolder: dir.ToString());
SarifV1ErrorLoggerTests.cs (2)
42var expectedIssues = string.Format(@" 117var expectedIssues = string.Format(@"
TouchedFileLoggingTests.cs (2)
43string.Format(@"/touchedfiles:""{0}""", touchedBase) }); 178Assert.Equal(string.Format(@"
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (100)
CodeActions\AddUsing\AddUsingNuGetTests.cs (2)
246string.Format(FeaturesResources.Use_local_version_0, "1.0"), 256string.Format(FeaturesResources.Use_local_version_0, "2.0"),
CodeActions\InitializeParameter\AddParameterCheckTests.cs (24)
548throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(a)}").Replace(""" 557throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(b)}").Replace(""" 566throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(c)}").Replace(""" 638throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(a)}").Replace(""" 647throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(b)}").Replace(""" 699throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(a)}").Replace(""" 708throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(c)}").Replace(""" 743throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(a)}").Replace(""" 752throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(c)}").Replace(""" 788throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(a)}").Replace(""" 802throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(c)}").Replace(""" 1872throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace(""" 1908throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_whitespace, "{nameof(s)}").Replace(""" 1975throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace(""" 2029throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(bar)}").Replace(""" 2594throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace(""" 2634throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace(""" 2675throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace(""" 2715if (string.IsNullOrEmpty(s)) throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace(""" 2754if (string.IsNullOrEmpty(s)) throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace(""" 2795throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace(""" 3491throw new ArgumentOutOfRangeException(nameof(num), num, $"{{string.Format(FeaturesResources._0_cannot_be_negative, "{nameof(num)}").Replace("\"", "\\\"")}}"); 3512throw new ArgumentOutOfRangeException(nameof(num), num, $"{{string.Format(FeaturesResources._0_cannot_be_negative_or_zero, "{nameof(num)}").Replace("\"", "\\\"")}}"); 3727throw new ArgumentOutOfRangeException(nameof(i), i, $"{{string.Format(FeaturesResources._0_cannot_be_negative, "{nameof(i)}").Replace("\"", "\\\"")}}");
Completion\CompletionProviders\AwaitCompletionProviderTests.cs (2)
53expectedDescription = string.Format(FeaturesResources.Await_the_preceding_expression_and_add_ConfigureAwait_0, "false"); 62=> $"{string.Format(FeaturesResources._0_Keyword, keyword)}\r\n{tooltip}";
Completion\CompletionProviders\OperatorCompletionProviderTests.cs (13)
631await VerifyItemExistsAsync(string.Format(template, $"public static S operator {operatorSign}(S _)"), operatorSign, inlineDescription: inlineDescription); 632await VerifyItemExistsAsync(string.Format(template, $"public static bool operator {operatorSign}(S _)"), operatorSign, inlineDescription: inlineDescription); 633await VerifyNoItemsExistAsync(string.Format(template, $"public static object operator {operatorSign}(S _)")); 634await VerifyNoItemsExistAsync(string.Format(template, $"public static S operator {operatorSign}(S a, S b, S c)")); 657await VerifyItemExistsAsync(string.Format(template, $"public static S operator {operatorSign}(S a, S b)"), operatorSign, inlineDescription: inlineDescription); 658await VerifyItemExistsAsync(string.Format(template, $"public static int operator {operatorSign}(S a, S b)"), operatorSign, inlineDescription: inlineDescription); 659await VerifyNoItemsExistAsync(string.Format(template, $"public static object operator {operatorSign}(S a, S b)")); 660await VerifyNoItemsExistAsync(string.Format(template, $"public static S operator {operatorSign}(S a, object b)")); 661await VerifyNoItemsExistAsync(string.Format(template, $"public static S operator {operatorSign}(S a, S b, S c)")); 683await VerifyItemExistsAsync(string.Format(template, $"public static bool operator {operatorSign}(S a, S b)"), operatorSign, inlineDescription: $"x {operatorSign} y"); 684await VerifyNoItemsExistAsync(string.Format(template, $"public static int operator {operatorSign}(S a, S b)")); 685await VerifyNoItemsExistAsync(string.Format(template, $"public static bool operator {operatorSign}(S a, S b, S c)")); 686await VerifyNoItemsExistAsync(string.Format(template, $"public static bool operator {operatorSign}(S a, object b)"));
Completion\CompletionProviders\SnippetCompletionProviderTests.cs (1)
41=> await VerifyItemExistsAsync(@"$$", MockSnippetInfoService.SnippetShortcut, MockSnippetInfoService.SnippetTitle + Environment.NewLine + MockSnippetInfoService.SnippetDescription + Environment.NewLine + string.Format(FeaturesResources.Note_colon_Tab_twice_to_insert_the_0_snippet, MockSnippetInfoService.SnippetShortcut), SourceCodeKind.Regular);
ConvertNamespace\ConvertNamespaceCommandHandlerTests.cs (1)
37=> XElement.Parse(string.Format("""
EventHookup\EventHookupTestState.cs (1)
56=> XElement.Parse(string.Format("""
QuickInfo\SemanticQuickInfoSourceTests.cs (40)
96var xmlString = string.Format(""" 113var xmlString = string.Format(""" 1645""", MainDescription(string.Format(FeaturesResources.Awaited_task_returns_0, "struct System.Int32"))); 1659""", MainDescription(string.Format(FeaturesResources.Awaited_task_returns_0, "struct System.Int32"))); 1705""", MainDescription(string.Format(FeaturesResources.Awaited_task_returns_0, $"({CSharpFeaturesResources.awaitable}) class System.Threading.Tasks.Task<TResult>")), 1742""", MainDescription(string.Format(FeaturesResources.Awaited_task_returns_0, "struct System.Int32"))); 5825""", MainDescription(string.Format(FeaturesResources.Awaited_task_returns_0, "int[]"))); 5840""", MainDescription(string.Format(FeaturesResources.Awaited_task_returns_0, "dynamic"))); 7036NullabilityAnalysis(string.Format(FeaturesResources._0_may_be_null_here, "s"))); 7053NullabilityAnalysis(string.Format(FeaturesResources._0_may_be_null_here, "s"))); 7070NullabilityAnalysis(string.Format(FeaturesResources._0_may_be_null_here, "s"))); 7100NullabilityAnalysis(string.Format(FeaturesResources._0_is_not_null_here, "user"))); 7133? string.Format(FeaturesResources._0_may_be_null_here, "user") 7134: string.Format(FeaturesResources._0_is_not_null_here, "user"))); 7152NullabilityAnalysis(string.Format(FeaturesResources._0_is_not_null_here, "s"))); 7168NullabilityAnalysis(string.Format(FeaturesResources._0_is_not_nullable_aware, "s"))); 7185NullabilityAnalysis(string.Format(FeaturesResources._0_is_not_null_here, "s2"))); 7204NullabilityAnalysis(string.Format(FeaturesResources._0_may_be_null_here, "s"))); 7224NullabilityAnalysis(string.Format(FeaturesResources._0_is_not_null_here, "s"))); 7243NullabilityAnalysis(string.Format(FeaturesResources._0_is_not_nullable_aware, "s"))); 7260NullabilityAnalysis(string.Format(FeaturesResources._0_may_be_null_here, "P.field"))); 7277NullabilityAnalysis(string.Format(FeaturesResources._0_is_not_null_here, "P.field"))); 7293NullabilityAnalysis(string.Format(FeaturesResources._0_is_not_nullable_aware, "P.field"))); 7312NullabilityAnalysis(string.Format(FeaturesResources._0_may_be_null_here, "S"))); 7332NullabilityAnalysis(string.Format(FeaturesResources._0_is_not_null_here, "S"))); 7354NullabilityAnalysis(string.Format(FeaturesResources._0_is_not_nullable_aware, "S"))); 7378NullabilityAnalysis(string.Format(FeaturesResources._0_may_be_null_here, "s"))); 7402NullabilityAnalysis(string.Format(FeaturesResources._0_is_not_null_here, "s"))); 7423NullabilityAnalysis(string.Format(FeaturesResources._0_is_not_nullable_aware, "s"))); 7443NullabilityAnalysis(string.Format(FeaturesResources._0_may_be_null_here, "s"))); 7463NullabilityAnalysis(string.Format(FeaturesResources._0_is_not_null_here, "s"))); 7480NullabilityAnalysis(string.Format(FeaturesResources._0_is_not_nullable_aware, "s"))); 7550NullabilityAnalysis(string.Format(FeaturesResources._0_is_not_nullable_aware, "M"))); 7642NullabilityAnalysis(string.Format(FeaturesResources._0_is_not_null_here, "s"))); 10120NullabilityAnalysis(string.Format(FeaturesResources._0_may_be_null_here, "second"))); 10142NullabilityAnalysis(string.Format(FeaturesResources._0_may_be_null_here, "second"))); 10164NullabilityAnalysis(string.Format(FeaturesResources._0_is_not_null_here, "second"))); 10186NullabilityAnalysis(string.Format(FeaturesResources._0_is_not_null_here, "second"))); 10208NullabilityAnalysis(string.Format(FeaturesResources._0_may_be_null_here, "second"))); 10230NullabilityAnalysis(string.Format(FeaturesResources._0_may_be_null_here, "second")));
Workspaces\WorkspaceTests_EditorFeatures.cs (16)
836string.Format("event for 'RegisterDocumentOpenedHandler' was not fired within {0} minutes.", 840string.Format("event for 'RegisterDocumentClosedHandler' was not fired within {0} minutes.", 855string.Format("event for 'RegisterDocumentOpenedHandler' was called within {0} seconds though it was removed from the list.", 859string.Format("event for 'RegisterDocumentClosedHandler' was called within {0} seconds though it was removed from the list.", 907string.Format("event for 'RegisterDocumentOpenedHandler' was not fired within {0} minutes.", 911string.Format("event for 'RegisterDocumentClosedHandler' was not fired within {0} minutes.", 926string.Format("event for 'RegisterDocumentOpenedHandler' was called within {0} seconds though it was removed from the list.", 930string.Format("event for 'RegisterDocumentClosedHandler' was called within {0} seconds though it was removed from the list.", 968string.Format("event for 'RegisterTextDocumentOpenedHandler' was not fired within {0} minutes.", 972string.Format("event for 'RegisterTextDocumentClosedHandler' was not fired within {0} minutes.", 987string.Format("event for 'RegisterTextDocumentOpenedHandler' was called within {0} seconds though it was removed from the list.", 991string.Format("event for 'RegisterTextDocumentClosedHandler' was called within {0} seconds though it was removed from the list.", 1029string.Format("event for 'RegisterTextDocumentOpenedHandler' was not fired within {0} minutes.", 1033string.Format("event for 'RegisterTextDocumentClosedHandler' was not fired within {0} minutes.", 1048string.Format("event for 'RegisterTextDocumentOpenedHandler' was called within {0} seconds though it was removed from the list.", 1052string.Format("event for 'RegisterTextDocumentClosedHandler' was called within {0} seconds though it was removed from the list.",
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (146)
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests_BasicTests.cs (89)
474<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[10..11)" Text="?" /> 505<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[10..11)" Text="?" /> 539<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[10..11)" Text="?" /> 574<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[10..11)" Text="?" /> 2309<Diagnostic Message="{{string.Format(FeaturesResources.Quantifier_0_following_nothing, '{')}}" Span="[10..11)" Text="{" /> 2335<Diagnostic Message="{{string.Format(FeaturesResources.Quantifier_0_following_nothing, '{')}}" Span="[10..11)" Text="{" /> 2416<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '*')}" Span="[9..10)" Text="*" /> 2445<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '*')}" Span="[10..11)" Text="*" /> 2475<Diagnostic Message="{string.Format(FeaturesResources.Nested_quantifier_0, "*")}" Span="[11..12)" Text="*" /> 2498<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '+')}" Span="[9..10)" Text="+" /> 2527<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '+')}" Span="[10..11)" Text="+" /> 2557<Diagnostic Message="{string.Format(FeaturesResources.Nested_quantifier_0, "+")}" Span="[11..12)" Text="+" /> 2580<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[9..10)" Text="?" /> 2609<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[10..11)" Text="?" /> 2641<Diagnostic Message="{string.Format(FeaturesResources.Nested_quantifier_0, "?")}" Span="[12..13)" Text="?" /> 2667<Diagnostic Message="{{string.Format(FeaturesResources.Quantifier_0_following_nothing, '{')}}" Span="[9..10)" Text="{" /> 2699<Diagnostic Message="{{string.Format(FeaturesResources.Quantifier_0_following_nothing, '{')}}" Span="[10..11)" Text="{" /> 2732<Diagnostic Message="{{string.Format(FeaturesResources.Nested_quantifier_0, "{")}}" Span="[11..12)" Text="{" /> 3441<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "m")}" Span="[11..12)" Text="m" /> 3765<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "m")}" Span="[11..12)" Text="m" /> 4203<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 7)}" Span="[11..12)" Text="7" /> 4251<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 8)}" Span="[11..12)" Text="8" /> 4467<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "k")}" Span="[11..12)" Text="k" /> 4494<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "k")}" Span="[11..12)" Text="k" /> 4521<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "k")}" Span="[11..12)" Text="k" /> 4629<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_name_0, "a")}" Span="[13..14)" Text="a" /> 4922<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "k")}" Span="[11..12)" Text="k" /> 4949<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "k")}" Span="[11..12)" Text="k" /> 4976<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "k")}" Span="[11..12)" Text="k" /> 5084<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_name_0, "a")}" Span="[13..14)" Text="a" /> 5149<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "k")}" Span="[11..12)" Text="k" /> 5176<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "k")}" Span="[11..12)" Text="k" /> 5418<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_name_0, "a")}" Span="[12..13)" Text="a" /> 5839<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_name_0, "a")}" Span="[12..13)" Text="a" /> 6071<Diagnostic Message="{{string.Format(FeaturesResources.Unknown_property_0, "xxx")}}" Span="[13..16)" Text="xxx" /> 8199<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[13..14)" Text="1" /> 8556<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 3)}" Span="[38..39)" Text="3" /> 8636<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 3)}" Span="[42..43)" Text="3" /> 8717<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 3)}" Span="[42..43)" Text="3" /> 8802<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 3)}" Span="[46..47)" Text="3" /> 8880<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 3)}" Span="[34..35)" Text="3" /> 8960<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[27..28)" Text="2" /> 8961<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 3)}" Span="[34..35)" Text="3" /> 8963<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[40..41)" Text="?" /> 9043<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 3)}" Span="[34..35)" Text="3" /> 9124<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 3)}" Span="[34..35)" Text="3" /> 9209<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[27..28)" Text="2" /> 9210<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 3)}" Span="[34..35)" Text="3" /> 9212<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[44..45)" Text="?" /> 9297<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 3)}" Span="[34..35)" Text="3" /> 9635<Diagnostic Message="{string.Format(FeaturesResources.Conditional_alternation_is_missing_a_closing_parenthesis_after_the_group_number_0, 0)}" Span="[12..13)" Text="0" /> 9919<Diagnostic Message="{string.Format(FeaturesResources.Conditional_alternation_is_missing_a_closing_parenthesis_after_the_group_number_0, 0)}" Span="[12..13)" Text="0" /> 9948<Diagnostic Message="{string.Format(FeaturesResources.Conditional_alternation_refers_to_an_undefined_group_number_0, 1)}" Span="[12..13)" Text="1" /> 10471<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[12..13)" Text="?" /> 10513<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[12..13)" Text="?" /> 10555<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[12..13)" Text="?" /> 10823<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[11..12)" Text="1" /> 10850<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[11..12)" Text="1" /> 11790<Diagnostic Message="{string.Format(FeaturesResources.Cannot_include_class_0_in_character_range, "w")}" Span="[13..15)" Text="\w" /> 11829<Diagnostic Message="{{string.Format(FeaturesResources.Unknown_property_0, "llll")}}" Span="[14..18)" Text="llll" /> 11907<Diagnostic Message="{{string.Format(FeaturesResources.Cannot_include_class_0_in_character_range, "p")}}" Span="[13..15)" Text="\p" /> 15081<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[13..14)" Text="2" /> 15144<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[13..14)" Text="1" /> 15173<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[13..14)" Text="2" /> 15207<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[15..16)" Text="2" /> 15294<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[21..22)" Text="2" /> 15339<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[19..20)" Text="1" /> 15340<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[21..22)" Text="2" /> 15384<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[19..20)" Text="1" /> 15385<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[21..22)" Text="2" /> 15429<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[19..20)" Text="1" /> 15430<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[21..22)" Text="2" /> 15474<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[19..20)" Text="1" /> 15475<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[21..22)" Text="2" /> 15648<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[20..21)" Text="1" /> 15649<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[22..23)" Text="2" /> 15693<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[22..23)" Text="2" /> 15830<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[19..20)" Text="1" /> 15831<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[21..22)" Text="2" /> 15924<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[20..21)" Text="1" /> 15925<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[22..23)" Text="2" /> 16016<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[20..21)" Text="1" /> 16017<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[22..23)" Text="2" /> 16108<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[21..22)" Text="1" /> 16109<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[23..24)" Text="2" /> 16257<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[24..25)" Text="1" /> 16258<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[26..27)" Text="2" /> 16308<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[24..25)" Text="1" /> 16309<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[26..27)" Text="2" />
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests_DotnetNegativeTests.cs (55)
59<Diagnostic Message="{string.Format(FeaturesResources.Cannot_include_class_0_in_character_range, "d")}" Span="[17..19)" Text="\d" /> 87<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "k")}" Span="[11..12)" Text="k" /> 162<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, "1")}" Span="[11..12)" Text="1" /> 249<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[11..12)" Text="?" /> 734<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "k")}" Span="[11..12)" Text="k" /> 761<Diagnostic Message="{{string.Format(FeaturesResources.Unknown_property_0, "cat")}}" Span="[13..16)" Text="cat" /> 815<Diagnostic Message="{{string.Format(FeaturesResources.Unknown_property_0, "cat")}}" Span="[13..16)" Text="cat" /> 871<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[11..12)" Text="?" /> 987<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "k")}" Span="[11..12)" Text="k" /> 1093<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[10..11)" Text="?" /> 1132<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[10..11)" Text="?" /> 1176<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[10..11)" Text="?" /> 1224<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[10..11)" Text="?" /> 1276<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[10..11)" Text="?" /> 1350<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[10..11)" Text="?" /> 1724<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[10..11)" Text="?" /> 1761<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[13..14)" Text="?" /> 2073<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[11..12)" Text="?" /> 2109<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[11..12)" Text="?" /> 2241<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[13..14)" Text="?" /> 2280<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[13..14)" Text="?" /> 2314<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[11..12)" Text="?" /> 2500<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[16..17)" Text="?" /> 2639<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[16..17)" Text="?" /> 2762<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_name_0, "catdog")}" Span="[31..37)" Text="catdog" /> 2880<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, "16")}" Span="[31..33)" Text="16" /> 3279<Diagnostic Message="{string.Format(FeaturesResources.Cannot_include_class_0_in_character_range, "D")}" Span="[14..16)" Text="\D" /> 3331<Diagnostic Message="{string.Format(FeaturesResources.Cannot_include_class_0_in_character_range, "s")}" Span="[17..19)" Text="\s" /> 3380<Diagnostic Message="{string.Format(FeaturesResources.Cannot_include_class_0_in_character_range, "S")}" Span="[17..19)" Text="\S" /> 3429<Diagnostic Message="{string.Format(FeaturesResources.Cannot_include_class_0_in_character_range, "w")}" Span="[17..19)" Text="\w" /> 3481<Diagnostic Message="{string.Format(FeaturesResources.Cannot_include_class_0_in_character_range, "W")}" Span="[17..19)" Text="\W" /> 3564<Diagnostic Message="{{string.Format(FeaturesResources.Cannot_include_class_0_in_character_range, "p")}}" Span="[14..16)" Text="\p" /> 3719<Diagnostic Message="{{string.Format(FeaturesResources.Cannot_include_class_0_in_character_range, "P")}}" Span="[14..16)" Text="\P" /> 3958<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "o")}" Span="[18..19)" Text="o" /> 4115<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_name_0, "cat2")}" Span="[38..42)" Text="cat2" /> 4182<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, "8")}" Span="[38..39)" Text="8" /> 4232<Diagnostic Message="{{string.Format(FeaturesResources.Nested_quantifier_0, "*")}}" Span="[21..22)" Text="*" /> 4273<Diagnostic Message="{string.Format(FeaturesResources.Nested_quantifier_0, "+")}" Span="[18..19)" Text="+" /> 4314<Diagnostic Message="{string.Format(FeaturesResources.Nested_quantifier_0, "*")}" Span="[18..19)" Text="*" /> 4355<Diagnostic Message="{string.Format(FeaturesResources.Nested_quantifier_0, "*")}" Span="[18..19)" Text="*" /> 4399<Diagnostic Message="{string.Format(FeaturesResources.Nested_quantifier_0, "+")}" Span="[19..20)" Text="+" /> 4443<Diagnostic Message="{string.Format(FeaturesResources.Nested_quantifier_0, "*")}" Span="[19..20)" Text="*" /> 4490<Diagnostic Message="{{string.Format(FeaturesResources.Nested_quantifier_0, "*")}}" Span="[22..23)" Text="*" /> 4534<Diagnostic Message="{string.Format(FeaturesResources.Nested_quantifier_0, "*")}" Span="[19..20)" Text="*" /> 4578<Diagnostic Message="{{string.Format(FeaturesResources.Nested_quantifier_0, "{")}}" Span="[18..19)" Text="{" /> 4622<Diagnostic Message="{{string.Format(FeaturesResources.Nested_quantifier_0, "{")}}" Span="[18..19)" Text="{" /> 4766<Diagnostic Message="{{string.Format(FeaturesResources.Nested_quantifier_0, "{")}}" Span="[18..19)" Text="{" /> 4839<Diagnostic Message="{{string.Format(FeaturesResources.Nested_quantifier_0, "*")}}" Span="[24..25)" Text="*" /> 4883<Diagnostic Message="{{string.Format(FeaturesResources.Nested_quantifier_0, "*")}}" Span="[21..22)" Text="*" /> 4946<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, "8")}" Span="[38..39)" Text="8" /> 5117<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, "7")}" Span="[17..18)" Text="7" /> 5264<Diagnostic Message="{{string.Format(FeaturesResources.Nested_quantifier_0, "*")}}" Span="[20..21)" Text="*" /> 5433<Diagnostic Message="{string.Format(FeaturesResources.Nested_quantifier_0, "*")}" Span="[19..20)" Text="*" /> 5551<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '*')}" Span="[20..21)" Text="*" /> 5651<Diagnostic Message="{{string.Format(FeaturesResources.Nested_quantifier_0, "*")}}" Span="[23..24)" Text="*" />
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests_ReferenceTests.cs (2)
1252<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_name_0, "Open")}" Span="[20..24)" Text="Open" /> 1916<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_name_0, "Open")}" Span="[19..23)" Text="Open" />
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (34)
CodeGen\CodeGenCapturing.cs (1)
441=> new StringBuilder(string.Format(ClassFmt,
CodeGen\CodeGenDynamicTests.cs (1)
143string source = string.Format(CSharpBinderTemplate, sb.ToString());
CodeGen\CodeGenIncrementTests.cs (1)
1007Assert.True(type.IsPrimitive || type == typeof(decimal), string.Format("Type {0} is neither primitive nor decimal", type));
CodeGen\CodeGenTupleTest.cs (2)
25316var corlibWithoutVT = CreateEmptyCompilation(new[] { Parse(String.Format(versionTemplate, "1") + corlib_cs, options: parseOptions) }, assemblyName: "corlib"); 25320var corlibWithVT = CreateEmptyCompilation(new[] { Parse(String.Format(versionTemplate, "2") + corlib_cs + valuetuple_cs, options: parseOptions) }, assemblyName: "corlib");
CodeGen\EventTests.cs (4)
150compVerifier.VerifyIL("C.E.add", string.Format(accessorBodyFormat, "Combine")); 151compVerifier.VerifyIL("C.E.remove", string.Format(accessorBodyFormat, "Remove")); 200compVerifier.VerifyIL("C.E.add", string.Format(accessorBodyFormat, "Combine")); 201compVerifier.VerifyIL("C.E.remove", string.Format(accessorBodyFormat, "Remove"));
CodeGen\UnsafeTests.cs (23)
6261CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL); 6262CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL); 6312CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL); 6313CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL); 6760CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", expectedIL); 6761CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", expectedIL); 6823CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", expectedIL); 6824CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", expectedIL); 6930CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeDebugExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL, sequencePointDisplay: SequencePointDisplayMode.Minimal); 6931CompileAndVerify(string.Format(template, "checked "), options: TestOptions.UnsafeDebugExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL, sequencePointDisplay: SequencePointDisplayMode.Minimal); 6987CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL); 6988CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL); 7029CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).VerifyIL("C.M", expectedIL); 7030CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).VerifyIL("C.M", expectedIL); 7098CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).VerifyIL("C.M", expectedIL); 7099CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).VerifyIL("C.M", expectedIL); 9065string.Format(casesTemplate, pointedAtType), 11161CompileAndVerify(string.Format(template, "int"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes); 11162CompileAndVerify(string.Format(template, "int*"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes); 11163CompileAndVerify(string.Format(template, "int**"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes); 11164CompileAndVerify(string.Format(template, "int[]"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes); 11165CompileAndVerify(string.Format(template, "int[][]"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes); 11166CompileAndVerify(string.Format(template, "int*[]"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes);
Emit\EmitErrorTests.cs (1)
293builder.AppendLine(string.Format(" int i{0} = {0};", i));
Emit\ResourceTests.cs (1)
848Assert.True(lib != IntPtr.Zero, String.Format("LoadLibrary failed with HResult: {0:X}", +Marshal.GetLastWin32Error()));
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (6)
Emit\EditAndContinue\EditAndContinueTests.cs (3)
13743var compilation0 = CreateCompilation(String.Format(source, 1), options: TestOptions.DebugDll); 13752var compilation1 = compilation0.WithSource(String.Format(source, i)); 17517.WithArguments("TestAssembly", string.Format(CodeAnalysisResources.Type0DoesNotHaveExpectedConstructor, "System.Runtime.CompilerServices.HotReloadException"))
PDB\PDBSourceLinkTests.cs (1)
165Diagnostic(ErrorCode.FTL_DebugEmitFailure).WithArguments(string.Format(CodeAnalysisResources.SymWriterDoesNotSupportSourceLink, "<lib name>")));
PDB\PDBTests.cs (2)
302Diagnostic(ErrorCode.FTL_DebugEmitFailure).WithArguments(string.Format(CodeAnalysisResources.SymWriterOlderVersionThanRequired, "<lib name>"))); 334Diagnostic(ErrorCode.FTL_DebugEmitFailure).WithArguments(string.Format(CodeAnalysisResources.SymWriterNotDeterministic, "<lib name>")));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (39)
Attributes\AttributeTests_MarshalAs.cs (2)
493string fldName = string.Format("_{0:X}", i); 636string fldName = string.Format("_{0:X}", i);
Diagnostics\DiagnosticAnalyzerTests.cs (28)
740var message = string.Format("'{0}' must have a non-null non-empty 'Category'", descriptor.Id); 855string message = new ArgumentException(string.Format(CodeAnalysisResources.UnsupportedDiagnosticReported, AnalyzerReportingUnsupportedDiagnostic.UnsupportedDescriptor.Id), "diagnostic").Message; 856IFormattable context = $@"{string.Format(CodeAnalysisResources.ExceptionContext, $@"Compilation: {compilation.AssemblyName}")} 861{string.Format(CodeAnalysisResources.DisableAnalyzerDiagnosticsMessage, "ID_1")}"; 913string message = new ArgumentException(string.Format(CodeAnalysisResources.InvalidDiagnosticIdReported, AnalyzerWithInvalidDiagnosticId.Descriptor.Id), "diagnostic").Message; 915IFormattable context = $@"{string.Format(CodeAnalysisResources.ExceptionContext, $@"Compilation: {compilation.AssemblyName}")} 920{string.Format(CodeAnalysisResources.DisableAnalyzerDiagnosticsMessage, "Invalid ID")}"; 953string message = new ArgumentException(string.Format(CodeAnalysisResources.SupportedDiagnosticsHasNullDescriptor, analyzerFullName), "SupportedDiagnostics").Message; 1065IFormattable context = $@"{string.Format(CodeAnalysisResources.ExceptionContext, contextDetail)} 1070{string.Format(CodeAnalysisResources.DisableAnalyzerDiagnosticsMessage, "ID")}"; 1110IFormattable context = $@"{string.Format(CodeAnalysisResources.ExceptionContext, $@"Compilation: {compilation.AssemblyName} 1116{string.Format(CodeAnalysisResources.DisableAnalyzerDiagnosticsMessage, "ID")}"; 1479var tree = CSharpSyntaxTree.ParseText(string.Format(source, treeNum++), path: "SourceFileRegular.cs"); 1481tree = CSharpSyntaxTree.ParseText(string.Format(source, treeNum++), path: "AssemblyInfo.cs"); 1487tree = CSharpSyntaxTree.ParseText(string.Format(source, treeNum++), path: fileName); 1497tree = CSharpSyntaxTree.ParseText(string.Format(autoGeneratedPrefix + source, treeNum++), path: $"SourceFileWithAutoGeneratedComment{i++}.cs"); 1507tree = CSharpSyntaxTree.ParseText(string.Format(source, treeNum++), path: myGeneratedFileTrueName); 1515tree = CSharpSyntaxTree.ParseText(string.Format(source, treeNum++), path: myGeneratedFileCaseInsensitiveTrueName); 1521tree = CSharpSyntaxTree.ParseText(string.Format(source, treeNum++), path: "MyGeneratedFileFalse.cs"); 1527tree = CSharpSyntaxTree.ParseText(string.Format(source, treeNum++), path: "MyGeneratedFileAuto.cs"); 1730var squiggledText = string.Format("GeneratedCode{0}", i); 1738squiggledText = string.Format("Nested{0}", i); 1746squiggledText = string.Format("NonGeneratedCode{0}", i); 1754squiggledText = string.Format("NestedGeneratedCode{0}", i); 1777names.Add(string.Format("GeneratedCode{0}(IsGeneratedCode:True)", i)); 1778names.Add(string.Format("Nested{0}(IsGeneratedCode:True)", i)); 1780names.Add(string.Format("NestedGeneratedCode{0}(IsGeneratedCode:True)", i)); 1788addNames = names => names.Add(string.Format("NonGeneratedCode{0}(IsGeneratedCode:False)", i));
Diagnostics\DiagnosticSuppressorTests.cs (6)
449IFormattable context = $@"{string.Format(CodeAnalysisResources.ExceptionContext, $@"Compilation: {compilation.AssemblyName}")} 484var exceptionMessage = string.Format(CodeAnalysisResources.UnsupportedSuppressionReported, unsupportedSuppressionId); 501IFormattable context = $@"{string.Format(CodeAnalysisResources.ExceptionContext, $@"Compilation: {compilation.AssemblyName}")} 554IFormattable context = $@"{string.Format(CodeAnalysisResources.ExceptionContext, $@"Compilation: {compilation.AssemblyName}")} 590var exceptionMessage = string.Format(CodeAnalysisResources.NonReportedDiagnosticCannotBeSuppressed, nonReportedDiagnosticId); 607IFormattable context = $@"{string.Format(CodeAnalysisResources.ExceptionContext, $@"Compilation: {compilation.AssemblyName}")}
Semantics\OutVarTests.cs (2)
20343var source2 = string.Format(source2Template, fillIn); 20527var source2 = string.Format(source2Template, fillIn);
Semantics\PatternMatchingTests3.cs (1)
2617var source = string.Format(@"
Microsoft.CodeAnalysis.CSharp.Features (31)
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (1)
65var titleComment = Comment(string.Format(" // {0}", title)).WithAdditionalAnnotations(Formatter.Annotation);
ConvertToExtension\ConvertToExtensionCodeRefactoringProvider.cs (2)
167string.Format(CSharpFeaturesResources.Convert_0_extension_methods_to_extension, specificExtension.Value.FirstParameter.Type.ToDisplayString()), 184string.Format(CSharpFeaturesResources.Convert_all_extension_methods_in_0_to_extension, classDeclaration.Identifier.ValueText),
ImplementInterface\AbstractChangeImplementationCodeRefactoringProvider.cs (2)
80string.Format(Implement_0, firstImplName), 112string.Format(Implement_0, string.Join(", ", interfaceNames)),
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider.cs (3)
80string.Format(fieldOrProperty.Kind == SymbolKind.Field ? FeaturesResources.Initialize_field_0 : FeaturesResources.Initialize_property_0, fieldOrProperty.Name), 154string.Format(FeaturesResources.Create_and_assign_field_0, field.Name), 157string.Format(FeaturesResources.Create_and_assign_property_0, property.Name),
QuickInfo\CSharpSemanticQuickInfoProvider.cs (3)
151(NullableAnnotation.None, _) => string.Format(FeaturesResources._0_is_not_nullable_aware, symbol.ToDisplayString(s_nullableDisplayFormat)), 152(_, NullableFlowState.MaybeNull) => string.Format(FeaturesResources._0_may_be_null_here, symbol.ToDisplayString(s_nullableDisplayFormat)), 153(_, NullableFlowState.NotNull) => string.Format(FeaturesResources._0_is_not_null_here, symbol.ToDisplayString(s_nullableDisplayFormat)),
SimplifyTypeNames\SimplifyTypeNamesCodeFixProvider.cs (2)
33return string.Format(FeaturesResources.Simplify_name_0, nodeText); 36return string.Format(FeaturesResources.Simplify_member_access_0, nodeText);
src\Analyzers\CSharp\CodeFixes\ConvertToAsync\CSharpConvertToAsyncMethodCodeFixProvider.cs (1)
42return string.Format(CSharpCodeFixesResources.Make_0_return_Task_instead_of_void, methodNode!.WithBody(null));
src\Analyzers\CSharp\CodeFixes\DisambiguateSameVariable\CSharpDisambiguateSameVariableCodeFixProvider.cs (1)
123title = string.Format(titleFormat, $"{memberContainer}.{matchingMember.Name}");
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateConversionService.cs (2)
218=> string.Format(CodeFixesResources.Generate_implicit_conversion_operator_in_0, state.TypeToGenerateIn.Name); 221=> string.Format(CodeFixesResources.Generate_explicit_conversion_operator_in_0, state.TypeToGenerateIn.Name);
src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (2)
107string.Format(CodeFixesResources.Do_not_change_this_code_Put_cleanup_code_in_0_method, disposeMethodDisplayString), 115string.Format(CodeFixesResources.TODO_colon_override_finalizer_only_if_0_has_code_to_free_unmanaged_resources, disposeMethodDisplayString),
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
56string.Format(CSharpCodeFixesResources.Use_0, displayText),
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (8)
166reportError(sourceFile, directive.Info.Span, string.Format(FileBasedProgramsResources.DuplicateDirective, typeAndName)); 312context.ReportError(context.SourceFile, context.Info.Span, string.Format(FileBasedProgramsResources.UnrecognizedDirective, context.DirectiveKind)); 325context.ReportError(context.SourceFile, context.Info.Span, string.Format(FileBasedProgramsResources.MissingDirectiveName, directiveKind)); 418context.ReportError(context.SourceFile, context.Info.Span, string.Format(FileBasedProgramsResources.PropertyDirectiveInvalidName, ex.Message)); 498context.ReportError(context.SourceFile, context.Info.Span, string.Format(FileBasedProgramsResources.MissingDirectiveName, directiveKind)); 557reportError(sourceFile, Info.Span, string.Format(FileBasedProgramsResources.InvalidProjectDirective, error)); 563string.Format(FileBasedProgramsResources.InvalidProjectDirective, string.Format(FileBasedProgramsResources.CouldNotFindProjectOrDirectory, resolvedProjectPath)));
SyncedSource\FileBasedPrograms\ProjectLocator.cs (3)
33error = string.Format(FileBasedProgramsResources.CouldNotFindProjectOrDirectory, projectDirectory); 40error = string.Format(FileBasedProgramsResources.CouldNotFindAnyProjectInDirectory, projectDirectory); 46error = string.Format(FileBasedProgramsResources.MoreThanOneProjectInDirectory, projectDirectory);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (151)
EditAndContinue\ActiveStatementTests.cs (1)
13948Diagnostic(RudeEditKind.UpdateAroundActiveStatement, "B();", string.Format(FeaturesResources._0_directive, "line")));
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (1)
761? $"ENC0089: {string.Format(FeaturesResources.Modifying_source_file_0_requires_restarting_the_application_because_the_file_is_too_big, filePath)}"
EmbeddedLanguages\ValidateJsonStringTests.cs (10)
46diagnosticMessage: string.Format(FeaturesResources.JSON_issue_0, FeaturesResources.Constructors_not_allowed)); 62diagnosticMessage: string.Format(FeaturesResources.JSON_issue_0, FeaturesResources.Constructors_not_allowed)); 78diagnosticMessage: string.Format(FeaturesResources.JSON_issue_0, 79string.Format(FeaturesResources._0_unexpected, '}'))); 103diagnosticMessage: string.Format(FeaturesResources.JSON_issue_0, 128diagnosticMessage: string.Format(FeaturesResources.JSON_issue_0, 193diagnosticMessage: string.Format(FeaturesResources.JSON_issue_0, 218diagnosticMessage: string.Format(FeaturesResources.JSON_issue_0, 289diagnosticMessage: string.Format(FeaturesResources.JSON_issue_0, 320diagnosticMessage: string.Format(FeaturesResources.JSON_issue_0,
EmbeddedLanguages\ValidateRegexStringTests.cs (2)
48diagnosticMessage: string.Format(FeaturesResources.Regex_issue_0, FeaturesResources.Too_many_close_parens)); 66diagnosticMessage: string.Format(FeaturesResources.Regex_issue_0, FeaturesResources.Too_many_close_parens));
GenerateFromMembers\AddConstructorParametersFromMembers\AddConstructorParametersFromMembersTests.cs (33)
92CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 132CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 179CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i, string s)"), codeAction.Title) 224CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i, string s)"), codeAction.Title) 269CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i, string s)"), codeAction.Title) 309CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_optional_parameters_to_0, "Program(int i)"), codeAction.Title) 361CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "Program(int i, string s)"), codeAction.Title) 413CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "Program(int i, string s)"), codeAction.Title) 451CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(bool b)"), codeAction.Title) 490CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_optional_parameters_to_0, "Program(bool b)"), codeAction.Title) 1140CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i)"), codeAction.Title) 1179CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i, int j)"), codeAction.Title) 1218CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i, int j, int k)"), codeAction.Title) 1257CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i)"), codeAction.Title) 1296CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i, int j)"), codeAction.Title) 1335CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i, int j, int k)"), codeAction.Title) 1390CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i, double j, int k)"), codeAction.Title) 1441CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i, double j)"), codeAction.Title) 1481CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i)"), codeAction.Title) 1520CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int l, double m, int n)"), codeAction.Title) 1778CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 1816CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 1854CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 1892CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 1930CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 1968CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 2007CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 2046CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 2084CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 2122CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 2160CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 2198CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 2493CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "C(int original, int original2)"), codeAction.Title)
GenerateVariable\GenerateVariableTests.cs (49)
88string.Format(CodeFixesResources.Generate_field_0, "goo"), 89string.Format(CodeFixesResources.Generate_read_only_field_0, "goo"), 90string.Format(CodeFixesResources.Generate_property_0, "goo"), 91string.Format(CodeFixesResources.Generate_local_0, "goo"), 92string.Format(CodeFixesResources.Generate_parameter_0, "goo"), 108string.Format(CodeFixesResources.Generate_field_0, "_goo"), 109string.Format(CodeFixesResources.Generate_read_only_field_0, "_goo"), 332[string.Format(CodeFixesResources.Generate_field_0, "goo"), string.Format(CodeFixesResources.Generate_property_0, "goo"), string.Format(CodeFixesResources.Generate_local_0, "goo"), string.Format(CodeFixesResources.Generate_parameter_0, "goo")]); 351[string.Format(CodeFixesResources.Generate_field_0, "goo"), string.Format(CodeFixesResources.Generate_property_0, "goo"), string.Format(CodeFixesResources.Generate_local_0, "goo"), string.Format(CodeFixesResources.Generate_parameter_0, "goo"), string.Format(CodeFixesResources.Generate_parameter_0_and_overrides_implementations, "goo")]); 514[string.Format(CodeFixesResources.Generate_field_0, "goo"), string.Format(CodeFixesResources.Generate_local_0, "goo"), string.Format(CodeFixesResources.Generate_parameter_0, "goo")]); 2272[string.Format(CodeFixesResources.Generate_field_0, "p"), string.Format(CodeFixesResources.Generate_property_0, "p"), string.Format(CodeFixesResources.Generate_local_0, "p"), string.Format(CodeFixesResources.Generate_parameter_0, "p")]); 4973await TestExactActionSetOfferedAsync(code, [string.Format(CodeFixesResources.Generate_local_0, "Bar"), string.Format(CodeFixesResources.Generate_parameter_0, "Bar")]); 9867string.Format(CodeFixesResources.Generate_property_0, "Field"), 9868string.Format(CodeFixesResources.Generate_field_0, "Field"), 9889string.Format(CodeFixesResources.Generate_property_0, "Field"), 9890string.Format(CodeFixesResources.Generate_field_0, "Field"), 10558""", [string.Format(CodeFixesResources.Generate_field_0, "ev"), string.Format(CodeFixesResources.Generate_property_0, "ev"), string.Format(CodeFixesResources.Generate_local_0, "ev")]); 10572""", [string.Format(CodeFixesResources.Generate_field_0, "ev"), string.Format(CodeFixesResources.Generate_property_0, "ev"), string.Format(CodeFixesResources.Generate_local_0, "ev")]); 10586""", [string.Format(CodeFixesResources.Generate_field_0, "x"), string.Format(CodeFixesResources.Generate_read_only_field_0, "x"), string.Format(CodeFixesResources.Generate_property_0, "x"), string.Format(CodeFixesResources.Generate_local_0, "x")]); 10600""", [string.Format(CodeFixesResources.Generate_field_0, "x"), string.Format(CodeFixesResources.Generate_property_0, "x"), string.Format(CodeFixesResources.Generate_local_0, "x")]); 10614""", [string.Format(CodeFixesResources.Generate_field_0, "x"), string.Format(CodeFixesResources.Generate_read_only_field_0, "x"), string.Format(CodeFixesResources.Generate_property_0, "x"), string.Format(CodeFixesResources.Generate_local_0, "x")]); 10628""", [string.Format(CodeFixesResources.Generate_field_0, "x"), string.Format(CodeFixesResources.Generate_property_0, "x"), string.Format(CodeFixesResources.Generate_local_0, "x")]);
IntroduceVariable\IntroduceVariableTests.cs (5)
1973await TestExactActionSetOfferedAsync(code, [string.Format(FeaturesResources.Introduce_local_constant_for_0, "5")]); 2011[string.Format(FeaturesResources.Introduce_local_constant_for_0, "5"), string.Format(FeaturesResources.Introduce_local_constant_for_all_occurrences_of_0, "5")]); 3306string.Format(FeaturesResources.Introduce_local_constant_for_0, """ 3326string.Format(FeaturesResources.Introduce_constant_for_0, """
src\Analyzers\CSharp\Tests\AddExplicitCast\AddExplicitCastTests.cs (9)
2455new(title: string.Format(CodeFixesResources.Convert_type_to_0, "Derived"))); 2472new(title: string.Format(CodeFixesResources.Convert_type_to_0, "Derived2"))); 2518new(title: string.Format(CodeFixesResources.Convert_type_to_0, "Derived"))); 2535new(title: string.Format(CodeFixesResources.Convert_type_to_0, "Derived2"))); 2661new(title: string.Format(CodeFixesResources.Convert_type_to_0, "Derived"))); 2681new(title: string.Format(CodeFixesResources.Convert_type_to_0, "Derived2"))); 2738new(title: string.Format(CodeFixesResources.Convert_type_to_0, "string"))); 2761new(title: string.Format(CodeFixesResources.Convert_type_to_0, "Derived"))); 2784new(title: string.Format(CodeFixesResources.Convert_type_to_0, "Derived2")));
src\Analyzers\CSharp\Tests\ConditionalExpressionInStringInterpolation\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProviderTests.cs (2)
39string.Format(template, initialMethodBody), 40string.Format(template, expectedMethodBody)).ConfigureAwait(false);
src\Analyzers\CSharp\Tests\ImplementAbstractClass\ImplementAbstractClassTests_ThroughMember.cs (22)
117""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 148""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 176""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 209""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 269""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 300""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 325string.Format(AnalyzersResources.Implement_through_0, "Inner"), 326string.Format(AnalyzersResources.Implement_through_0, "IInterface.Inner"), 373""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 401""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 472""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 559""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 594""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 640""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 671""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 702""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 748""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 779""", index: 1, new(title: string.Format(AnalyzersResources.Implement_through_0, "inner"))); 875""", [AnalyzersResources.Implement_abstract_class, string.Format(AnalyzersResources.Implement_through_0, "_base")]); 890""", [AnalyzersResources.Implement_abstract_class, string.Format(AnalyzersResources.Implement_through_0, "_base")]); 905""", [AnalyzersResources.Implement_abstract_class, string.Format(AnalyzersResources.Implement_through_0, "B")]); 920""", [AnalyzersResources.Implement_abstract_class, string.Format(AnalyzersResources.Implement_through_0, "B")]);
src\Analyzers\CSharp\Tests\ImplementInterface\ImplementInterfaceCodeFixTests.cs (3)
7392// // {{string.Format(CodeFixesResources.TODO_colon_override_finalizer_only_if_0_has_code_to_free_unmanaged_resources, "Dispose(bool disposing)")}} 7395// // {{string.Format(CodeFixesResources.Do_not_change_this_code_Put_cleanup_code_in_0_method, "Dispose(bool disposing)")}} 7401// {{string.Format(CodeFixesResources.Do_not_change_this_code_Put_cleanup_code_in_0_method, "Dispose(bool disposing)")}}
src\Analyzers\CSharp\Tests\RemoveUnusedMembers\RemoveUnusedMembersTests.cs (1)
1575.WithMessage(string.Format(AnalyzersResources.Private_property_0_can_be_converted_to_a_method_as_its_get_accessor_is_never_invoked, "MyClass.P"))
src\Analyzers\CSharp\Tests\UpgradeProject\UpgradeProjectTests.cs (11)
464string.Format(CSharpCodeFixesResources.Upgrade_this_project_to_csharp_language_version_0, "7.0"), 465string.Format(CSharpCodeFixesResources.Upgrade_all_csharp_projects_to_language_version_0, "7.0") 492string.Format(CSharpCodeFixesResources.Upgrade_this_project_to_csharp_language_version_0, "8.0"), 493string.Format(CSharpCodeFixesResources.Upgrade_all_csharp_projects_to_language_version_0, "8.0") 519string.Format(CSharpCodeFixesResources.Upgrade_this_project_to_csharp_language_version_0, "7.0") 546string.Format(CSharpCodeFixesResources.Upgrade_this_project_to_csharp_language_version_0, "7.0") 575string.Format(CSharpCodeFixesResources.Upgrade_this_project_to_csharp_language_version_0, defaultVersion), 576string.Format(CSharpCodeFixesResources.Upgrade_all_csharp_projects_to_language_version_0, defaultVersion) 599[string.Format(CSharpCodeFixesResources.Upgrade_this_project_to_csharp_language_version_0, "8.0")]); 626string.Format(CSharpCodeFixesResources.Upgrade_this_project_to_csharp_language_version_0, defaultEffectiveVersion), 627string.Format(CSharpCodeFixesResources.Upgrade_all_csharp_projects_to_language_version_0, defaultEffectiveVersion)
UseNamedArguments\UseNamedArgumentsTests.cs (2)
90ExactActionSetOffered = [string.Format(FeaturesResources.Add_argument_name_0, "arg2")], 552ExactActionSetOffered = [string.Format(FeaturesResources.Add_argument_name_0, "arg2")],
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Hosting\CSharpReplServiceProvider.cs (1)
24=> string.Format(CSharpScriptingResources.LogoLine1, CommonCompiler.GetProductVersion(typeof(CSharpReplServiceProvider)));
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (2)
CsiTests.cs (2)
61{string.Format(CSharpScriptingResources.LogoLine1, s_compilerVersion)} 77(1,1): error CS0006: {string.Format(CSharpResources.ERR_NoMetadataFile, "C.dll")}
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (10)
CommandLineRunnerTests.cs (10)
27private string LogoAndHelpPrompt => $@"{string.Format(CSharpScriptingResources.LogoLine1, s_compilerVersion)} 71var logoOutput = $@"{string.Format(CSharpScriptingResources.LogoLine1, s_compilerVersion)} 104var logoOutput = $@"{string.Format(CSharpScriptingResources.LogoLine1, s_compilerVersion)} 249var error = $@"error CS2001: {string.Format(CSharpResources.ERR_FileNotFound, Path.Combine(AppContext.BaseDirectory, "@arg1"))}"; 396var error = $@"error CS2001: {string.Format(CSharpResources.ERR_FileNotFound, Path.Combine(AppContext.BaseDirectory, "a + b"))}"; 409$@"{string.Format(CSharpScriptingResources.LogoLine1, s_compilerVersion)} 450var error = $@"error CS0246: {string.Format(CSharpResources.ERR_SingleTypeNameNotFound, "Alpha")}"; 643(1,1): error CS0006: {string.Format(CSharpResources.ERR_NoMetadataFile, "C.dll")} 653$@"(1,1): error CS0006: {string.Format(CSharpResources.ERR_NoMetadataFile, "C.dll")}", 908$@"{string.Format(CSharpScriptingResources.LogoLine1, s_compilerVersion)}
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (19)
Semantics\ImplicitObjectCreationTests.cs (2)
4378var libBv1 = CreateCompilation(string.Format(libBTemplate, "1"), assemblyName: "B", options: signedDll); 4379var libBv2 = CreateCompilation(string.Format(libBTemplate, "2"), assemblyName: "B", options: signedDll);
Semantics\InteractiveUsingTests.cs (2)
322var lib1 = CreateCompilation(string.Format(libSourceTemplate, 1), assemblyName: "Lib1").EmitToImageReference(); 323var lib2 = CreateCompilation(string.Format(libSourceTemplate, 2), assemblyName: "Lib2").EmitToImageReference();
Semantics\NameLengthTests.cs (11)
69var source = string.Format(sourceTemplate, s_longSymbolName); 187var source = string.Format(sourceTemplate, s_longSymbolName); 312var source = string.Format(sourceTemplate, s_longSymbolName); 339var source = string.Format(sourceTemplate, s_longSymbolName); 373var source = string.Format(sourceTemplate, s_longSymbolName); 403var source = string.Format(sourceTemplate, s_longLocalName); 428var source = string.Format(sourceTemplate, s_longLocalName); 459var source = string.Format(sourceTemplate, longName); 482var source = string.Format(sourceTemplate, longName); 530var source = string.Format(sourceTemplate, longName); 554var source = string.Format(sourceTemplate, longName);
Semantics\SemanticErrorTests.cs (1)
22075var comp = CreateCompilationWithMscorlib40AndDocumentationComments(string.Format(sourceTemplate, xmlFile.Path));
Semantics\UnsafeTests.cs (3)
4882var expected = string.Format(@" 5083var expected = string.Format(@" 5151var expected = string.Format(@"
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (156)
Compilation\ReferenceManagerTests.cs (12)
1547var il = string.Format(ilTemplate, ""); 1555var il = string.Format(ilTemplate, " .publickeytoken = (31 BF 38 56 AD 36 4E 35 ) // 1.8V.6N5"); 1562var il = string.Format(ilTemplate, " .ver 4:0:0:0"); 1569var il = string.Format(ilTemplate, " .locale = (65 00 6E 00 2D 00 63 00 61 00 00 00 ) // e.n.-.c.a..."); 1913var libBv1 = CreateCompilation(string.Format(libBTemplate, "1"), assemblyName: "B", options: s_signedDll); 1914var libBv2 = CreateCompilation(string.Format(libBTemplate, "2"), assemblyName: "B", options: s_signedDll); 1957var libBv1 = CreateCompilation(string.Format(libBTemplate, "1"), assemblyName: "B", options: s_signedDll); 1958var libBv2 = CreateCompilation(string.Format(libBTemplate, "2"), assemblyName: "B", options: s_signedDll); 2001var libBv1 = CreateCompilation(string.Format(libBTemplate, "1"), assemblyName: "B", options: s_signedDll); 2002var libBv2 = CreateCompilation(string.Format(libBTemplate, "2"), assemblyName: "B", options: s_signedDll); 2060var libBv1 = CreateCompilationWithMscorlib40AndSystemCore(string.Format(libBTemplate, "1"), assemblyName: "B", options: s_signedDll); 2061var libBv2 = CreateCompilationWithMscorlib40AndSystemCore(string.Format(libBTemplate, "2"), assemblyName: "B", options: s_signedDll);
Compilation\SemanticModelGetSemanticInfoTests.cs (1)
6302var semanticInfo = GetSemanticInfoForTest(string.Format(template, sourceType));
DocumentationComments\DocumentationCommentCompilerTests.cs (89)
4416var source = string.Format(sourceTemplate, xml); 4472var source = string.Format(sourceTemplate, '\u1680'); 4504var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath)); 4520Assert.Equal(string.Format(expectedTemplate, xmlFilePath), actual); 4539var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath)); 4555Assert.Equal(string.Format(expectedTemplate, xmlFilePath), actual); 4577var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath)); 4593Assert.Equal(string.Format(expectedTemplate, xmlFilePath), actual); 4614var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath)); 4630Assert.Equal(string.Format(expectedTemplate, xmlFilePath), actual); 4650var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath)); 4668Assert.Equal(string.Format(expectedTemplate, xmlFilePath), actual); 4795var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFile.Path)); 4866var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFile.Path)); 4895var includeElement = string.Format(includeTemplate, xmlFilePath); 4903var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 4907Diagnostic(ErrorCode.WRN_FailedInclude, includeElement).WithArguments(xmlFilePath, "path", string.Format("The process cannot access the file '{0}' because it is being used by another process.", xmlFilePath))); 4921Assert.Equal(string.Format(expectedTemplate, xmlFilePath), actual); 4931var xmlFile2 = Temp.CreateFile(extension: ".xml").WriteAllText(string.Format("<include file='{0}' path='path'/>", xmlFilePath1)); 4940var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath2)); 4943Diagnostic(ErrorCode.WRN_FailedInclude).WithArguments(xmlFilePath1, "path", string.Format("The process cannot access the file '{0}' because it is being used by another process.", xmlFilePath1))); 4957Assert.Equal(string.Format(expectedTemplate, xmlFilePath1), actual); 4968var includeElement = string.Format(includeTemplate, xmlFilePath); 4974var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 4992Assert.Equal(string.Format(expectedTemplate, xmlFilePath), actual); 5001var xmlFile2 = Temp.CreateFile(extension: ".xml").WriteAllText(string.Format("<include file='{0}' path=':'/>", xmlFilePath1)); 5008var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath2)); 5025Assert.Equal(string.Format(expectedTemplate, xmlFilePath1), actual); 5035var includeElement = string.Format(includeTemplate, xmlFilePath); 5041var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 5058Assert.Equal(string.Format(expectedTemplate, TestHelpers.AsXmlCommentText(xmlFilePath)), actual); 5068var xmlFile2 = Temp.CreateFile(extension: ".xml").WriteAllText(string.Format("<include file='{0}' path='path'/>", xmlFilePath1)); 5075var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath2)); 5092Assert.Equal(string.Format(expectedTemplate, xmlFilePath2), actual); 5101xmlFile.WriteAllText(string.Format(@"<include file=""{0}"" path=""//include""/>", xmlFilePath)); //Includes itself. 5107var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath)); 5124Assert.Equal(string.Format(expectedTemplate, xmlFilePath), actual); 5133xmlFile.WriteAllText(string.Format(@"<parent><include file=""{0}"" path=""//parent""/></parent>", xmlFilePath)); //Includes its parent. 5139var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath)); 5158Assert.Equal(string.Format(expectedTemplate, xmlFilePath), actual); 5167xmlFile.WriteAllText(string.Format(@" 5176var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath)); 5211Assert.Equal(string.Format(expectedTemplate, xmlFilePath), actual); 5226xmlFile.WriteAllText(string.Format(xmlTemplate, xmlFilePath)); 5233var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath)); 5266xmlFile1.WriteAllText(string.Format(xmlTemplate1, xmlFilePath2)); 5273var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath1)); 5289Assert.Equal(string.Format(expectedTemplate, xmlFilePath1), actual); 5321var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath)); 5326Diagnostic(ErrorCode.WRN_FailedInclude, string.Format(@"<include file=""{0}"" path=""/""/>", xmlFilePath)).WithArguments(xmlFilePath, "/", "The XPath expression evaluated to unexpected type System.Xml.Linq.XDocument."), 5329Diagnostic(ErrorCode.WRN_FailedInclude, string.Format(@"<include file=""{0}"" path="".""/>", xmlFilePath)).WithArguments(xmlFilePath, ".", "The XPath expression evaluated to unexpected type System.Xml.Linq.XDocument.")); 5377var includeElement = string.Format(includeElementTemplate, xmlFilePath); 5386var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 5412var includeElement = string.Format(includeElementTemplate, xmlFilePath); 5421var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 5447var includeElement = string.Format(includeElementTemplate, xmlFilePath); 5464var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 5494var includeElement = string.Format(includeElementTemplate, xmlFilePath); 5500var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 5535var includeElement = string.Format(includeElementTemplate, xmlFilePath); 5541var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 5589var includeElement = string.Format(includeElementTemplate, xmlFilePath); 5634var includeElement = string.Format(includeElementTemplate, xmlFilePath); 5791string includeElement = string.Format(includeElementTemplate, xmlFilePath); 5805var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 5862string includeElement = string.Format(includeElementTemplate, xmlFilePath); 5874var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 5906var includeElement = string.Format(includeElementTemplate, xmlFilePath); 5912var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 5944var includeElement = string.Format(includeElementTemplate, xmlFilePath); 5953var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 5985var includeElement = string.Format(includeElementTemplate, xmlFilePath); 5994var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 6021var includeElement = string.Format(includeElementTemplate, xmlFilePath); 6030var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 6048Assert.Equal(string.Format(expectedTemplate, TestHelpers.AsXmlCommentText(xmlFilePath)), actual); 6063var includeElement = string.Format(includeElementTemplate, xmlFilePath); 6080var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 6097Assert.Equal(string.Format(expectedTemplate, TestHelpers.AsXmlCommentText(xmlFilePath)), actual); 6133string includeElement = string.Format(includeElementTemplate, xmlFilePath); 6148var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement)); 6313var source = string.Format(sourceTemplate, xmlFilePath); 6346Assert.Equal(string.Format(expectedTextTemplate, xmlFilePath), actualText); 7019var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFile.Path)); 7037Assert.Equal(string.Format(expectedTemplate, TestHelpers.AsXmlCommentText(xmlFile.Path)), actual); 8284var comp = CreateCompilationUtil(string.Format(sourceTemplate, xmlFilePath)); 8501xmlFile.WriteAllText(string.Format(xmlTemplate, xmlFilePath)); 8504var includeElement = string.Format(includeElementTemplate, xmlFilePath); 8514var comp = CreateCompilationUtil(string.Format(sourceTemplate, includeElement));
DocumentationComments\DocumentationModeTests.cs (3)
352Parse(string.Format(sourceTemplate, xml, mode), string.Format("{0}.cs", mode), GetOptions(mode))); 381Parse(string.Format(sourceTemplate, includeElement, mode), string.Format("{0}.cs", mode), GetOptions(mode))); 391var expectedText = string.Format(expectedTextTemplate, TestHelpers.AsXmlCommentText(xmlFilePath));
Symbols\AnonymousTypesSymbolTests.cs (5)
1009genericParameters[i] = String.Format("<{0}>j__TPar", typeDescr.FieldNames[i]); 1058String.Format("{0}.Equals(object)", typeViewName), 1065String.Format("{0}.GetHashCode()", typeViewName), 1072String.Format("{0}.ToString()", typeViewName), 1654Assert.False(m.Locations.IsEmpty, String.Format("No Location: {0}", m));
Symbols\CompilationCreationTests.cs (2)
30var text = string.Format("public partial class {0} {{ }}", className); 31var path = string.Format("{0}.cs", className);
Symbols\DefaultInterfaceImplementationTests.cs (4)
68398return " + string.Format(returnTemplate, "x") + @"; 68403return " + string.Format(returnTemplate, "x") + @"; 68433" + string.Format(extraOpTemplate, "T2") + @" 68438" + string.Format(extraOpTemplate, "T4") + @"
Symbols\EnumTests.cs (4)
261var source = GenerateEnum(10000, (i, n) => (i == 0) ? string.Format("M{0} + 1", n - 1) : ""); 274var source = GenerateEnum(10000, (i, n) => string.Format("M{0} + 1", (i == 0) ? (n - 1) : (i - 1))); 287var source = GenerateEnum(10000, (i, n) => (i < n - 1) ? string.Format("M{0} - 1", i + 1) : i.ToString()); 301builder.Append(string.Format(" M{0}", i));
Symbols\FunctionPointerTypeSymbolTests.cs (1)
1550var expectedMessage = "error CS8806: " + string.Format(CSharpResources.ERR_UnsupportedCallingConvention, "delegate* unmanaged[]<string>");
Symbols\IndexerTests.cs (1)
2533AssertEx.Equal(expected, actual, itemInspector: s => string.Format("\"{0}\"", s));
Symbols\LookupSymbolsInfoTests.cs (2)
31get { return string.Format("T{0}", _current.ToString()); } 78return string.Format("<{0}>", string.Join(",", TemplateArgEnumerable.Instance.Take(arity)));
Symbols\MissingSpecialMember.cs (8)
208ValidateSourceAndMetadata(string.Format(sourceTemplate, "public"), validatePresent); 209ValidateSourceAndMetadata(string.Format(sourceTemplate, "internal"), validateMissing); 351validatePresent(CreateEmptyCompilation(string.Format(sourceTemplate, "public"))); 352validatePresent(CreateEmptyCompilation(string.Format(sourceTemplate, "internal"))); 436ValidateSourceAndMetadata(string.Format(sourceTemplate, ""), validate); 437ValidateSourceAndMetadata(string.Format(sourceTemplate, " where T : new()"), validate); 492var publicLibRef = CreateEmptyCompilation(string.Format(libSourceTemplate, "public"), new[] { corlibRef }, parseOptions: parseOptions).EmitToImageReference(); 493var internalLibRef = CreateEmptyCompilation(string.Format(libSourceTemplate, "internal"), new[] { corlibRef }, parseOptions: parseOptions).EmitToImageReference();
Symbols\Source\ClsComplianceTests.cs (6)
2967CreateCompilation(string.Format(sourceTemplate, "")).VerifyDiagnostics( 2973CreateCompilation(string.Format(sourceTemplate, "void M();")).VerifyDiagnostics( 2980CreateCompilation(string.Format(sourceTemplate, "void m();")).VerifyDiagnostics( 3178var source = string.Format(sourceTemplate, qualifiedName); 3497var tree1 = SyntaxFactory.ParseSyntaxTree(string.Format(sourceTemplate, 1), parseOptions, path: "a.cs"); 3498var tree2 = SyntaxFactory.ParseSyntaxTree(string.Format(sourceTemplate, 2), parseOptions, path: "b.cs");
Symbols\Source\EnumTests.cs (1)
1032Assert.True(currentSymbol is NamespaceOrTypeSymbol, string.Format("{0} does not have members", currentSymbol.ToTestDisplayString()));
Symbols\SymbolErrorTests.cs (17)
19941CreateCompilation(string.Format(template, "int Item;")).VerifyDiagnostics( 19949CreateCompilation(string.Format(template, "int get_Item;")).VerifyDiagnostics( 19956CreateCompilation(string.Format(template, "int set_Item;")).VerifyDiagnostics( 19964CreateCompilation(string.Format(template, "int Item() { return 0; }")).VerifyDiagnostics( 19969CreateCompilation(string.Format(template, "int set_Item() { return 0; }")).VerifyDiagnostics(); 19984CreateCompilation(string.Format(template, "int P;")).VerifyDiagnostics( 19992CreateCompilation(string.Format(template, "int get_P;")).VerifyDiagnostics( 19999CreateCompilation(string.Format(template, "int set_P;")).VerifyDiagnostics( 20007CreateCompilation(string.Format(template, "int P() { return 0; }")).VerifyDiagnostics( 20012CreateCompilation(string.Format(template, "int set_P() { return 0; }")).VerifyDiagnostics(); 20015CreateCompilation(string.Format(template, "int Item;")).VerifyDiagnostics( 20019CreateCompilation(string.Format(template, "int get_Item;")).VerifyDiagnostics( 20023CreateCompilation(string.Format(template, "int set_Item;")).VerifyDiagnostics( 20027CreateCompilation(string.Format(template, "int Item() { return 0; }")).VerifyDiagnostics(); 20028CreateCompilation(string.Format(template, "int set_Item() { return 0; }")).VerifyDiagnostics(); 22007var comp2 = CreateCompilation(new[] { string.Format(source2, "TypeForwarded_2"), string.Format(source2, "TypeForwardedTo"), source3 }, references: new[] { comp1.ToMetadataReference() });
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (9)
LexicalAndXml\LexicalTests.cs (1)
3805return string.Join("", decimal.GetBits(d).Select(word => string.Format("{0:x8}", word)));
LexicalAndXml\PreprocessorTests.cs (3)
286Assert.True(false, String.Format("You are expecting some text in the directive, but this method doesn't know how to verify it for `{0}`.", exp.Kind)); 3190VerifyErrorSpecial(node, new DirectiveInfo { Number = (int)ErrorCode.ERR_ErrorDirective, Text = string.Format("#error: '{0}'", errorText) }); 4162var text = string.Format(@"#pragma checksum ""{0}""", file);
Parsing\CrefParsingTests.cs (1)
29var commentText = string.Format(@"/// <see cref=""{0}""/>", text);
Parsing\NameAttributeValueParsingTests.cs (1)
29var commentText = string.Format(@"/// <param name=""{0}""/>", text);
Parsing\ParserErrorMessageTests.cs (1)
6536var line = string.Format("Action a{0} = delegate d{0} {{", i);
Parsing\VerbatimCrefParsingTests.cs (1)
28var commentText = string.Format(@"/// <see cref=""{0}""/>", text);
Syntax\SyntaxFactoryTests.cs (1)
111SyntaxFactory.ParseToken(string.Format("\"{0}\"", value)).WithLeadingTrivia(SyntaxFactory.ElasticMarker).WithTrailingTrivia(SyntaxFactory.ElasticMarker);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (8)
CSharpTestBase.cs (5)
2239var start = String.Format(bindStartFmt, i); 2240var end = String.Format(bindEndFmt, i); 2252var start2 = String.Format(bindStartFmt, which); 2253var end2 = String.Format(bindEndFmt, which); 2567return string.Format("\"{0}\"", (reference is Symbol symbol) ? symbol.ToDisplayString(SymbolDisplayFormat.ILVisualizationFormat) : (object)reference);
SemanticModelTestBase.cs (3)
59var tagName = string.Format("bind{0}", index == 0 ? String.Empty : index.ToString()); 60var startComment = string.Format("/*<{0}>*/", tagName); 61var endComment = string.Format("/*</{0}>*/", tagName);
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SymbolDisplayPartExtensions.cs (1)
23return new SymbolDisplayPart(SymbolDisplayPartKind.ErrorTypeName, null, string.Format("@{0}", text));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\OperatorGenerator.cs (1)
85throw new ArgumentException(string.Format(WorkspaceExtensionsResources.Cannot_generate_code_for_unsupported_operator_0, method.Name), nameof(method));
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
Formatting\FormattingTests.cs (2)
9927expected = string.Format(pattern, transform(expected)); 9928input = string.Format(pattern, transform(input));
Microsoft.CodeAnalysis.Debugging.Package (8)
CustomDebugInfoReader.cs (8)
364throw new InvalidOperationException(string.Format("Expected at most one Using record for method {0}", FormatMethodToken(methodToken))); 373throw new InvalidOperationException(string.Format("Did not expect both Forward and ForwardToModule records for method {0}", FormatMethodToken(methodToken))); 391throw new InvalidOperationException(string.Format("Expected at most one ForwardToModule record for method {0}", FormatMethodToken(methodToken))); 433throw new InvalidOperationException(string.Format("Group size indicates more imports than there are import strings (method {0}).", FormatMethodToken(methodToken))); 439throw new InvalidOperationException(string.Format("Encountered extern alias info before all import strings were consumed (method {0}).", FormatMethodToken(methodToken))); 459throw new InvalidOperationException(string.Format("Expected only extern alias info strings after consuming the indicated number of imports (method {0}).", FormatMethodToken(methodToken))); 473throw new InvalidOperationException(string.Format("Group size indicates fewer imports than there are import strings (method {0}).", FormatMethodToken(methodToken))); 846return string.Format("0x{0:x8}", methodToken);
Microsoft.CodeAnalysis.EditorFeatures (18)
ChangeSignature\AbstractChangeSignatureCommandHandler.cs (1)
125string.Format(EditorFeaturesResources.Preview_Changes_0, EditorFeaturesResources.Change_Signature),
DocumentationComments\AbstractXmlTagCompletionCommandHandler.cs (1)
240InsertTextAndMoveCaret(textView, subjectBuffer, position, string.Format(formatString, elementName), finalCaretPosition);
Editor\EditorLayerExtensionManager.cs (1)
65message: string.Format(WorkspacesResources._0_encountered_an_error_and_has_been_disabled, providerType.Name),
EncapsulateField\AbstractEncapsulateFieldCommandHandler.cs (1)
112string.Format(EditorFeaturesResources.Preview_Changes_0, EditorFeaturesResources.Encapsulate_Field),
GoToDefinition\GoToDefinitionHelpers.cs (1)
38var title = string.Format(EditorFeaturesResources._0_declarations,
InlineRename\CommandHandlers\RenameCommandHandler.cs (1)
94message: string.Format(EditorFeaturesWpfResources.Error_performing_rename_0, ex.Message),
InlineRename\InlineRenameSession.cs (1)
813string.Format(EditorFeaturesResources.Preview_Changes_0, EditorFeaturesResources.Rename),
InlineRename\UI\Adornment\RenameFlyoutViewModel.cs (3)
385StatusText = string.Format(EditorFeaturesResources._0_unresolvable_conflict_s, unresolvedConflicts); 392StatusText = string.Format(EditorFeaturesResources._0_conflict_s_will_be_resolved, resolvableConflicts); 414SearchText = string.Format(EditorFeaturesResources.Rename_will_update_0_references_in_1_file, referenceCount);
Navigation\AbstractDefinitionLocationService.cs (4)
100? string.Format(EditorFeaturesResources._0_declarations, symbolDisplayName) 101: string.Format(EditorFeaturesResources._0_declarations_and_interceptors, symbolDisplayName); 156var title = string.Format(EditorFeaturesResources._0_implemented_members, 215var title = string.Format(EditorFeaturesResources._0_intercepted_locations,
Preview\AbstractPreviewFactoryService.cs (3)
203string.Format(EditorFeaturesResources.Adding_project_0, project.Name))); 210string.Format(EditorFeaturesResources.Removing_project_0, project.Name))); 217string.Format(EditorFeaturesResources.Changing_project_references_for_0, projectChanges.OldProject.Name)));
Suggestions\FixAll\FixAllGetFixesService.cs (1)
23string.Format(EditorFeaturesResources.Preview_Changes_0, fixAllPreviewChangesTitle),
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (486)
CodeGeneration\CodeGenerationTests.cs (1)
259var expectedMessage = string.Format(WorkspaceExtensionsResources.Cannot_generate_code_for_unsupported_operator_0, method.Name);
EditAndContinue\EditAndContinueLanguageServiceTests.cs (3)
234$"Error ENC0033: {project.FilePath}(0, 0, 0, 0): {string.Format(FeaturesResources.Deleting_0_requires_restarting_the_application, "<deleted>")}", 246$"RestartRequired ENC0033: {document.FilePath}(0, 2, 0, 3): {string.Format(FeaturesResources.Deleting_0_requires_restarting_the_application, "x")}", 247$"RestartRequired ENC0033: {project.FilePath}(0, 0, 0, 0): {string.Format(FeaturesResources.Deleting_0_requires_restarting_the_application, "<deleted>")}",
InheritanceMargin\InheritanceMarginTests.cs (4)
1457memberName: string.Format(FeaturesResources.Directives_from_0, "Test2.cs"), 1473memberName: string.Format(FeaturesResources.Directives_from_0, "Test2.cs"), 1494memberName: string.Format(FeaturesResources.Directives_from_0, "Test2.cs"), 1510memberName: string.Format(FeaturesResources.Directives_from_0, "Test2.cs"),
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
280xmlString = string.Concat(xmlString, string.Format(@"
MetadataAsSource\MetadataAsSourceTests.cs (404)
72{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 74{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 75{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 76{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 89{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 91{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 92{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 93{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 134{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 136{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 137{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 138{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 151{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 153{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 154{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 155{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 198{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 200{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 201{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 202{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 215{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 217{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 218{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 219{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 269{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 271{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 272{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 273{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 289{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 291{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 292{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 293{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 341{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 343{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 344{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 345{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 359{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 361{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 362{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 363{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 411{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 413{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 414{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 415{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 429{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 431{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 432{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 433{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 488{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 490{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 491{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 492{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 508{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 510{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 511{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 512{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 567{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 569{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 570{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 571{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 587{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 589{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 590{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 591{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 641{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 643{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 644{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 645{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 661{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 663{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 664{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 665{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 715{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 717{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 718{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 719{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 735{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 737{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 738{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 739{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 789{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 791{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 792{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 793{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 809{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 811{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 812{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 813{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 857{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 859{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 860{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 861{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 875{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 877{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 878{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 879{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 929{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 931{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 932{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 933{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 949{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 951{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 952{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 953{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1003{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 1005{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1006{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1007{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1022{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 1024{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1025{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1026{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1145{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 1147{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1148{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1149{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1163{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 1165{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1166{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1167{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1213{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 1215{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1216{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1217{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1231{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 1233{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1234{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1235{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1290{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 1292{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1293{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1294{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1310{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 1312{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1313{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1314{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1365{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 1367{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1368{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1369{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1386{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 1388{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1389{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1390{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1438{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 1440{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1441{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1442{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1456{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 1458{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1459{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1460{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1511{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 1513{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1514{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1515{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1531{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 1533{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1534{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1535{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1589{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 1591{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1592{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1593{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1607{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 1609{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1610{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1611{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1668{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 1670{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1671{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1672{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1686{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 1688{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1689{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1690{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1742{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 1744{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1745{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1746{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1762{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 1764{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1765{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1766{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 2112{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 2114{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2115{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2116{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 2202{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 2204{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2205{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2206{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 2399{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 2401{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2402{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2403{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 2480{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 2482{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2483{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2484{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 2578{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 2580{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2581{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2582{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 2584{{string.Format(FeaturesResources.Resolve_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2585{{string.Format(FeaturesResources.Found_single_assembly_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2586{{string.Format(FeaturesResources.Load_from_0, "System.v4_6_1038_0.dll")}} 2604{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 2606{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2607{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2608{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 2610{{string.Format(FeaturesResources.Resolve_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2611{{string.Format(FeaturesResources.Found_single_assembly_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2612{{string.Format(FeaturesResources.Load_from_0, "System.v4_6_1038_0.dll")}} 2681{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 2683{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2684{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2685{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 2703{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 2705{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2706{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2707{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 2773{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 2775{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2776{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2777{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 2796{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 2798{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2799{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2800{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 2968{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 2970{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2971{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2972{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3000{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 3002{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3003{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3004{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3092{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 3094{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3095{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3096{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3120{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 3122{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3123{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3124{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3193{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 3195{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3196{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3197{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3215{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 3217{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3218{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3219{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3339{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 3341{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3342{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3343{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3345{{string.Format(FeaturesResources.Resolve_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3346{{string.Format(FeaturesResources.Found_single_assembly_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3347{{string.Format(FeaturesResources.Load_from_0, "System.v4_6_1038_0.dll")}} 3365{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 3367{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3368{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3369{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3371{{string.Format(FeaturesResources.Resolve_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3372{{string.Format(FeaturesResources.Found_single_assembly_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3373{{string.Format(FeaturesResources.Load_from_0, "System.v4_6_1038_0.dll")}} 3611{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 3613{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3614{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3615{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3629{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 3631{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3632{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3633{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3684{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 3686{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3687{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3688{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3702{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 3704{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3705{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3706{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3760{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 3762{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3763{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3764{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3780{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 3782{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3783{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3784{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3837{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 3839{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3840{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3841{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3857{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 3859{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3860{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3861{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3917{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 3919{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3920{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3921{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3940{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 3942{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3943{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3944{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4002{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 4004{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4005{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4006{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4025{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 4027{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4028{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4029{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4080{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 4082{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4083{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4084{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4098{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 4100{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4101{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4102{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4153{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 4155{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4156{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4157{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4171{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 4173{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4174{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4175{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4233{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 4235{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4236{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4237{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4251{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 4253{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4254{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4255{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4308{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 4310{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4311{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4312{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4326{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 4328{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4329{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4330{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4393{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 4395{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4396{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4397{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4423{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 4425{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4426{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4427{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4490{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 4492{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4493{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4494{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4520{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 4522{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4523{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4524{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4587{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 4589{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4590{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4591{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4617{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 4619{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4620{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4621{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4681{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 4683{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4684{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4685{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4702{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 4704{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4705{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4706{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4775{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 4777{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4778{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4779{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4805{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 4807{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4808{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4809{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4876{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 4878{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4879{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4880{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4906{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 4908{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4909{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4910{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4978{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 4980{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4981{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4982{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 5008{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 5010{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 5011{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 5012{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}}
MetadataAsSource\MetadataAsSourceTests.CSharp.cs (58)
68{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 70{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 71{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 72{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 108{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 110{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 111{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 112{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 158{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 160{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 161{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 162{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 164{{string.Format(FeaturesResources.Resolve_0, "System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51")}} 165{{string.Format(FeaturesResources.Found_single_assembly_0, "System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51")}} 166{{string.Format(FeaturesResources.Load_from_0, "System.ValueTuple (net461)")}} 382{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 384{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 385{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 386{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 388{{string.Format(FeaturesResources.Resolve_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 389{{string.Format(FeaturesResources.Found_single_assembly_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 390{{string.Format(FeaturesResources.Load_from_0, "System.v4_6_1038_0.dll")}} 428{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 430{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 431{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 432{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 493{string.Format(FeaturesResources._0_items_in_cache, 6)} 495{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")} 496{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")} 497{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")} 573{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 575{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 576{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 577{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 677{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 679{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 680{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 681{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 739{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 741{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 742{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 743{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 798{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 800{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 801{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 802{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 848{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 850{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 851{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 852{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 917{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 919{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 920{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 921{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 963{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 965{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 966{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 967{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}}
MetadataAsSource\MetadataAsSourceTests.VisualBasic.cs (15)
52{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 54{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 55{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 56{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 58{{string.Format(FeaturesResources.Resolve_0, "Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")}} 59{{string.Format(FeaturesResources.Found_single_assembly_0, "Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")}} 60{{string.Format(FeaturesResources.Load_from_0, "Microsoft.VisualBasic (net461)")}} 175{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 409{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 411{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 412{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 413{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 415{{string.Format(FeaturesResources.Resolve_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 416{{string.Format(FeaturesResources.Found_single_assembly_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 417{{string.Format(FeaturesResources.Load_from_0, "System.v4_6_1038_0.dll")}}
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (3)
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\NativeViewExpansion.cs (1)
55var name = "(IUnknown*)0x" + string.Format(IntPtr.Size == 4 ? "{0:x8}" : "{0:x16}", comObject.NativeComPointer);
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\PointerDereferenceExpansion.cs (1)
68displayValue: wasExceptionThrown ? string.Format(Resources.InvalidPointerDereference, fullName ?? parent.Name) : null,
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.Values.cs (1)
172string.Format(_defaultFormat, value.EvaluateToString(inspectionContext) ?? inspectionContext.GetTypeName(value.Type, CustomTypeInfo: null, FormatSpecifiers: NoFormatSpecifiers)),
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (6)
Debugger\Engine\DkmClrValue.cs (3)
257throw new ArgumentException(string.Format("Nested braces in '{0}'", formatString)); 265throw new ArgumentException(string.Format("Unmatched closing brace in '{0}'", formatString)); 374throw new ArgumentException(string.Format("Unmatched open brace in '{0}'", formatString));
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\NativeViewExpansion.cs (1)
55var name = "(IUnknown*)0x" + string.Format(IntPtr.Size == 4 ? "{0:x8}" : "{0:x16}", comObject.NativeComPointer);
src\ExpressionEvaluator\Core\Source\ResultProvider\Expansion\PointerDereferenceExpansion.cs (1)
68displayValue: wasExceptionThrown ? string.Format(Resources.InvalidPointerDereference, fullName ?? parent.Name) : null,
src\ExpressionEvaluator\Core\Source\ResultProvider\Formatter.Values.cs (1)
172string.Format(_defaultFormat, value.EvaluateToString(inspectionContext) ?? inspectionContext.GetTypeName(value.Type, CustomTypeInfo: null, FormatSpecifiers: NoFormatSpecifiers)),
Microsoft.CodeAnalysis.Extensions.Package (3)
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
Microsoft.CodeAnalysis.ExternalAccess.Extensions (1)
Internal\ExtensionMessageHandlerFactory.cs (1)
69?? throw new InvalidOperationException(string.Format(ExternalAccessExtensionsResources.Cannot_create_0, candidateType.FullName));
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Internal\Diagnostics\FSharpDocumentDiagnosticAnalyzer.cs (1)
59dummyDescriptors.Add(new DiagnosticDescriptor(String.Format("FS{0:D4}", i), String.Empty, String.Empty, String.Empty, DiagnosticSeverity.Error, true, null, null));
Microsoft.CodeAnalysis.ExternalAccess.HotReload.UnitTests (7)
HotReloadServiceTests.cs (7)
98[$"P: {sourceFileA.Path}: (0,17)-(0,18): Error ENC0110: {string.Format(FeaturesResources.Changing_the_signature_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.method)}"], 131$"{sourceFileA.Path}: (0,21)-(0,28): Error CS0103: {string.Format(CSharpResources.ERR_NameNotInContext, "Unknown")}", 132$"{sourceFileA.Path}: (0,51)-(0,52): Warning CS0219: {string.Format(CSharpResources.WRN_UnreferencedVarAssg, "x")}", 246[$"A: {generatedDoc.FilePath}: (0,26)-(0,42): Error ENC0023: {string.Format(FeaturesResources.Adding_an_abstract_0_or_overriding_an_inherited_0_requires_restarting_the_application, FeaturesResources.method)}"], 292[$"A: {generatedDoc.FilePath}: (0,26)-(0,42): Error ENC0023: {string.Format(FeaturesResources.Adding_an_abstract_0_or_overriding_an_inherited_0_requires_restarting_the_application, FeaturesResources.method)}"], 331$"P: {sourceFileA.Path}: (0,0)-(0,0): Warning ENC1008: {string.Format(FeaturesResources.Changing_source_file_0_in_a_stale_project_has_no_effect_until_the_project_is_rebuit, sourceFileA.Path)}", 381[$"A: {generatedDoc.FilePath}: (0,26)-(0,42): Error ENC0023: {string.Format(FeaturesResources.Adding_an_abstract_0_or_overriding_an_inherited_0_requires_restarting_the_application, FeaturesResources.method)}"],
Microsoft.CodeAnalysis.Features (150)
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.AddConstructorParametersCodeAction.cs (3)
180return string.Format(CodeFixesResources.Add_to_0, signature); 183? string.Format(FeaturesResources.Add_optional_parameters_to_0, signature) 184: string.Format(FeaturesResources.Add_parameters_to_0, signature);
AddImport\AbstractAddImportCodeRefactoringProvider.cs (2)
110string.Format(AddImportTitle, namespaceDisplayString), 113string.Format(AddImportAndSimplifyAllOccurrencesTitle, namespaceDisplayString),
AddImport\References\AssemblyReference.cs (1)
31var title = $"{provider.GetDescription(SearchResult.NameParts)} ({string.Format(FeaturesResources.from_0, _referenceAssemblyWithType.AssemblyName)})";
AddImport\References\MetadataSymbolReference.cs (1)
46return (string.Format(FeaturesResources.Add_reference_to_0, Path.GetFileName(_reference.FilePath)),
AddImport\References\ProjectSymbolReference.cs (1)
95: string.Format(FeaturesResources.Add_reference_to_0, _project.Name);
AddMissingReference\AddMissingReferenceCodeAction.cs (2)
62string.Format(FeaturesResources.Add_project_reference_to_0, candidateProject.Name), 69var description = string.Format(FeaturesResources.Add_reference_to_0, missingAssemblyIdentity.GetDisplayName());
AddPackage\InstallPackageDirectlyCodeAction.cs (2)
30? string.Format(FeaturesResources.Use_local_version_0, versionOpt) 31: string.Format(FeaturesResources.Install_version_0, versionOpt);
AddPackage\InstallPackageDirectlyCodeActionOperation.cs (1)
60? string.Format(FeaturesResources.Find_and_install_latest_version_of_0, _packageName)
AddPackage\InstallPackageParentCodeAction.cs (1)
30Document document) : CodeAction.CodeActionWithNestedActions(string.Format(FeaturesResources.Install_package_0, packageName),
AddPackage\ParentInstallPackageCodeAction.cs (3)
59: base(string.Format(FeaturesResources.Install_package_0, fixData.PackageName), 117? string.Format(FeaturesResources.Use_local_version_0, version) 118: string.Format(FeaturesResources.Install_version_0, version);
CodeFixes\Configuration\ConfigureCodeStyle\ConfigureCodeStyleOptionCodeFixProvider.TopLevelConfigureCodeStyleOptionCodeAction.cs (1)
15: base(nestedActions, string.Format(FeaturesResources.Configure_0_code_style, diagnostic.Id))
CodeFixes\Configuration\ConfigureSeverity\ConfigureSeverityLevelCodeFixProvider.TopLevelBulkConfigureSeverityCodeAction.cs (1)
14? string.Format(FeaturesResources.Configure_severity_for_all_0_analyzers, category)
CodeFixes\Configuration\ConfigureSeverity\ConfigureSeverityLevelCodeFixProvider.TopLevelConfigureSeverityCodeAction.cs (1)
12private sealed class TopLevelConfigureSeverityCodeAction(Diagnostic diagnostic, ImmutableArray<CodeAction> nestedActions) : AbstractConfigurationActionWithNestedActions(nestedActions, string.Format(FeaturesResources.Configure_0_severity, diagnostic.Id))
CodeFixes\Service\CodeFixService.cs (2)
413? string.Format(FeaturesResources.Error_creating_instance_of_CodeFixProvider_0, lazyFixer.Metadata.Name) 895string.Format(
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (1)
76return string.Format(s_suppressionsFileCommentTemplate, SingleLineCommentStart);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction.cs (1)
52: base(fixer, title: string.Format(FeaturesResources.Remove_Suppression_0, diagnostic.Id))
CodeFixes\Suppression\TopLevelSuppressionCodeAction.cs (1)
10internal sealed class TopLevelSuppressionCodeAction(Diagnostic diagnostic, ImmutableArray<NestedSuppressionCodeAction> nestedActions) : AbstractConfigurationActionWithNestedActions(ImmutableArray<CodeAction>.CastUp(nestedActions), string.Format(FeaturesResources.Suppress_0, diagnostic.Id))
CodeLens\ReferenceCount.cs (1)
26var description = string.Format(referenceWord, GetCappedReferenceCountString());
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeCodeAction.cs (3)
41MoveTypeOperationKind.MoveType => string.Format(FeaturesResources.Move_type_to_0, _fileName), 42MoveTypeOperationKind.RenameType => string.Format(FeaturesResources.Rename_type_to_0, GetDocumentNameWithoutExtension(_document)), 43MoveTypeOperationKind.RenameFile => string.Format(FeaturesResources.Rename_file_to_0, _fileName),
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.cs (1)
83: string.Format(FeaturesResources.Change_namespace_to_0, state.TargetNamespace);
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (1)
33? string.Format(FeaturesResources.Move_file_to_0, string.Join(PathUtilities.DirectorySeparatorStr, _newfolders))
Completion\CommonCompletionProvider.cs (1)
88var note = string.Format(FeaturesResources.Note_colon_Tab_twice_to_insert_the_0_snippet, insertionText);
Completion\Providers\AbstractAwaitCompletionProvider.cs (1)
137string.Format(FeaturesResources.Await_the_preceding_expression_and_add_ConfigureAwait_0, _falseKeyword),
Completion\Providers\RecommendedKeyword.cs (1)
35textContentBuilder.AddText(string.Format(FeaturesResources._0_Keyword, keyword));
Completion\Providers\Snippets\AbstractSnippetCompletionProvider.cs (1)
95description: (snippetData.Description + Environment.NewLine + string.Format(FeaturesResources.Code_snippet_for_0, snippetData.Description)).ToSymbolDisplayParts(),
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
1522arguments: [string.Format(FeaturesResources._0_directive, LineDirectiveKeyword)]));
EmbeddedLanguages\Json\JsonParser.cs (9)
55private static readonly string s_closeBracketExpected = string.Format(FeaturesResources._0_expected, ']'); 56private static readonly string s_closeBraceExpected = string.Format(FeaturesResources._0_expected, '}'); 57private static readonly string s_openParenExpected = string.Format(FeaturesResources._0_expected, '('); 58private static readonly string s_closeParenExpected = string.Format(FeaturesResources._0_expected, ')'); 59private static readonly string s_commaExpected = string.Format(FeaturesResources._0_expected, ','); 184string.Format(FeaturesResources._0_unexpected, firstToken.VirtualChars[0]), 196string.Format(FeaturesResources._0_unexpected, ','), 203string.Format(FeaturesResources._0_unexpected, ':'), 496string.Format(FeaturesResources._0_unexpected, firstChar.ToString()),
EmbeddedLanguages\Json\JsonParser.JsonNetSyntaxChecks.cs (1)
168return new EmbeddedDiagnostic(string.Format(FeaturesResources._0_expected, ','), GetFirstToken(nextChild).GetSpan());
EmbeddedLanguages\Json\JsonParser.StrictSyntaxChecker.cs (4)
138return new EmbeddedDiagnostic(string.Format(FeaturesResources._0_unexpected, ","), child.GetSpan()); 143return new EmbeddedDiagnostic(string.Format(FeaturesResources._0_expected, ","), GetFirstToken(child).GetSpan()); 258=> new(string.Format(FeaturesResources._0_literal_not_allowed, literalToken.VirtualChars.CreateString()), literalToken.GetSpan()); 261=> new(string.Format(FeaturesResources._0_literal_not_allowed, "-Infinity"), node.GetSpan());
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexEmbeddedCompletionProvider.cs (1)
283: string.Format(Regex_unicode_general_category_0, name);
EmbeddedLanguages\RegularExpressions\RegexLexer.cs (1)
246string.Format(FeaturesResources.Unknown_property_0, category),
EmbeddedLanguages\RegularExpressions\RegexParser.cs (8)
829string.Format(FeaturesResources.Conditional_alternation_refers_to_an_undefined_group_number_0, capture.VirtualChars[0]), 837string.Format(FeaturesResources.Conditional_alternation_is_missing_a_closing_parenthesis_after_the_group_number_0, capture.VirtualChars[0]), 1129string.Format(FeaturesResources.Reference_to_undefined_group_number_0, val), 1139string.Format(FeaturesResources.Reference_to_undefined_group_name_0, val), 1514string.Format(FeaturesResources.Cannot_include_class_0_in_character_range, nextChar), 1868string.Format(FeaturesResources.Unrecognized_escape_sequence_0, ch), 2036string.Format(FeaturesResources.Quantifier_0_following_nothing, token.VirtualChars[0]), token.GetSpan())); 2041string.Format(FeaturesResources.Nested_quantifier_0, token.VirtualChars[0]), token.GetSpan()));
Emit\CompilationOutputs.cs (1)
124throw new InvalidOperationException(string.Format(FeaturesResources.MethodMustReturnStreamThatSupportsReadAndSeek, methodName));
EncapsulateField\AbstractEncapsulateFieldService.cs (2)
100string.Format(FeaturesResources.Encapsulate_field_colon_0_and_use_property, field.Name), 104string.Format(FeaturesResources.Encapsulate_field_colon_0_but_still_use_field, field.Name),
Extensions\ExtensionFolder.cs (3)
122throw new InvalidOperationException(string.Format(FeaturesResources.Extension_0_is_already_registered, assemblyFilePath)); 145throw new InvalidOperationException(string.Format(FeaturesResources.Extension_0_was_not_registered, assemblyFilePath)); 160throw new InvalidOperationException(string.Format(FeaturesResources.Extension_0_was_not_registered, assemblyFilePath));
Extensions\ExtensionMessageHandlerService.cs (5)
63?? throw new InvalidOperationException(string.Format(FeaturesResources.Unable_to_get_the_directory_name_for_0, assemblyFilePath)); 117throw new InvalidOperationException(string.Format(FeaturesResources.No_extension_registered_as_0, assemblyFolderPath)); 177throw new InvalidOperationException(string.Format(FeaturesResources.No_extensions_registered_at_0, assemblyFolderPath)); 222throw new InvalidOperationException(string.Format(FeaturesResources.No_handler_found_for_message_0, messageName)); 229throw new InvalidOperationException(string.Format(FeaturesResources.Multiple_handlers_found_for_message_0, messageName));
ExtractInterface\AbstractExtractInterfaceService.cs (1)
416Debug.Assert(false, string.Format(FeaturesResources.Unexpected_interface_member_kind_colon_0, member.Kind.ToString()));
ExtractMethod\MethodExtractor.Analyzer.cs (4)
239string.Format( 252string.Format( 277return new OperationStatus(succeeded: true, string.Format(FeaturesResources.Asynchronous_method_cannot_have_ref_out_parameters_colon_bracket_0_bracket, string.Join(", ", names))); 895return new OperationStatus(succeeded: true, string.Format(FeaturesResources.Assigning_to_readonly_fields_must_be_done_in_a_constructor_colon_bracket_0_bracket, string.Join(", ", names)));
FindUsages\AbstractFindUsagesService_FindImplementations.cs (1)
72string.Format(FeaturesResources._0_implementations,
FindUsages\AbstractFindUsagesService_FindReferences.cs (2)
111string.Format(FeaturesResources._0_references, 219var searchTitle = string.Format(FeaturesResources._0_references, title);
FullyQualify\AbstractFullyQualifyCodeFixProvider.cs (1)
57string.Format(FeaturesResources.Fully_qualify_0, fixData.Name),
GenerateComparisonOperators\GenerateComparisonOperatorsCodeRefactoringProvider.cs (1)
109string.Format(FeaturesResources.Generate_for_0, displayString),
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersCodeRefactoringProvider.cs (1)
275string.Format(FeaturesResources.Implement_0, displayName),
GenerateType\AbstractGenerateTypeService.cs (1)
84string.Format(FeaturesResources.Generate_type_0, state.Name),
GoToBase\AbstractGoToBaseService.cs (1)
53string.Format(FeaturesResources._0_bases,
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (1)
271var taggedText = new TaggedText(TextTags.Text, string.Format(FeaturesResources.Directives_from_0, fileName));
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (3)
127string.Format(FeaturesResources.Add_0_check, "string.IsNullOrEmpty"), 132string.Format(FeaturesResources.Add_0_check, "string.IsNullOrWhiteSpace"), 163string.Format(FeaturesResources.Add_0_check, "Enum.IsDefined"),
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (3)
202string.Format(FeaturesResources.Create_and_assign_field_0, field.Name), 206string.Format(FeaturesResources.Create_and_assign_property_0, property.Name), 251var title = string.Format(resource, fieldOrProperty.Name);
InlineMethod\AbstractInlineMethodRefactoringProvider.cs (3)
198string.Format(FeaturesResources.Inline_0, calleeMethodSymbol.ToNameDisplayString()), 214string.Format(FeaturesResources.Inline_0, calleeMethodName), 221string.Format(FeaturesResources.Inline_and_keep_0, calleeMethodName),
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (2)
105string.Format(FeaturesResources.Introduce_parameter_for_0, nodeString), 114string.Format(FeaturesResources.Introduce_parameter_for_all_occurrences_of_0, nodeString),
IntroduceVariable\AbstractIntroduceLocalForExpressionCodeRefactoringProvider.cs (2)
56string.Format(FeaturesResources.Deconstruct_locals_for_0, nodeString), 64string.Format(FeaturesResources.Introduce_local_for_0, nodeString),
IntroduceVariable\AbstractIntroduceVariableService.IntroduceVariableCodeAction.cs (1)
103return string.Format(formatString, nodeString);
MetadataAsSource\AbstractMetadataAsSourceService.DocCommentFormatter.cs (3)
59lineBuilder.Append(string.Format(s_labelFormat, parameterNames[i])); 83lineBuilder.Append(string.Format(s_labelFormat, typeParameterNames[i])); 121lineBuilder.Append(string.Format(s_labelFormat, exceptionTypes[i]));
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (2)
345? string.Format(@"[assembly: System.Reflection.AssemblyVersion(""{0}"")]", assemblyIdentity.Version) 346: string.Format(@"<Assembly: System.Reflection.AssemblyVersion(""{0}"")>", assemblyIdentity.Version);
NameTupleElement\AbstractNameTupleElementCodeRefactoringProvider.cs (1)
34string.Format(FeaturesResources.Add_tuple_element_name_0, elementName),
NavigateTo\RoslynNavigateToItem.cs (1)
131(false, true) => string.Format(FeaturesResources.project_0, combinedProjectName),
PdbSourceDocument\IPdbSourceDocumentLogger.cs (1)
20=> logger.Log(string.Format(message, arg0));
PullMemberUp\AbstractPullMemberUpRefactoringProvider.cs (1)
63? string.Format(FeaturesResources.Pull_0_up_to, selectedMembers.Single().ToNameDisplayString())
ReplaceDocCommentTextWithTag\AbstractReplaceDocCommentTextWithTagCodeRefactoringProvider.cs (1)
151string.Format(FeaturesResources.Use_0, replacement),
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (1)
70string.Format(FeaturesResources.Replace_0_with_property, methodName),
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (1)
65string.Format(resourceString, propertyName),
Shared\Utilities\ExtractTypeHelpers.cs (1)
221Debug.Assert(false, string.Format(FeaturesResources.Unexpected_interface_member_kind_colon_0, member.Kind.ToString()));
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (1)
186string.Format(FeaturesResources.Fix_typo_0, nameText),
SplitOrMergeIfStatements\Consecutive\AbstractMergeConsecutiveIfStatementsCodeRefactoringProvider.cs (1)
51var title = string.Format(resourceText, ifKeywordText);
SplitOrMergeIfStatements\Consecutive\AbstractSplitIntoConsecutiveIfStatementsCodeRefactoringProvider.cs (1)
49string.Format(FeaturesResources.Split_into_consecutive_0_statements, ifKeywordText),
SplitOrMergeIfStatements\Nested\AbstractMergeNestedIfStatementsCodeRefactoringProvider.cs (1)
39var title = string.Format(resourceText, ifKeywordText);
SplitOrMergeIfStatements\Nested\AbstractSplitIntoNestedIfStatementsCodeRefactoringProvider.cs (1)
36string.Format(FeaturesResources.Split_into_nested_0_statements, ifKeywordText),
src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (1)
164return string.Format(
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (1)
370var title = string.Format(resourceString, signature);
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
70string.Format(CodeFixesResources.Alias_ambiguous_type_0, diagnosticNode.ToString()),
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (2)
273: string.Format(CodeFixesResources.Take_0, topText); 278: string.Format(CodeFixesResources.Take_0, bottomText);
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (3)
97string.Format(CodeFixesResources.Generate_constructor_in_0_with_fields, state.TypeToGenerateIn.Name), 106string.Format(CodeFixesResources.Generate_constructor_in_0_with_properties, state.TypeToGenerateIn.Name), 113string.Format(CodeFixesResources.Generate_constructor_in_0, state.TypeToGenerateIn.Name),
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.CodeAction.cs (1)
56return string.Format(
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.CodeAction.cs (1)
52return string.Format(text, name);
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.CodeAction.cs (1)
187return string.Format(
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (1)
74string.Format(CodeFixesResources.Generate_variable_0, state.IdentifierToken.ValueText),
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.GenerateLocalCodeAction.cs (1)
30return string.Format(
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.GenerateParameterCodeAction.cs (1)
36return string.Format(
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\AbstractImplementAbstractClassCodeFixProvider.cs (1)
61string.Format(AnalyzersResources.Implement_through_0, through.Name),
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceService.cs (1)
243return string.Format(CodeFixesResources.Implement_interface_through_0, options.ThroughMember.Name);
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (1)
194string.Format(CodeFixesResources.Do_not_change_this_code_Put_cleanup_code_in_0_method, disposeMethodDisplayString),
src\Analyzers\Core\CodeFixes\NamingStyle\NamingStyleCodeFixProvider.cs (1)
96string.Format(CodeFixesResources.Fix_name_violation_colon_0, fixedName),
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
46var title = string.Format(TitleFormat, type.Name);
src\Analyzers\Core\CodeFixes\UpgradeProject\AbstractUpgradeProjectCodeFixProvider.cs (2)
56var fixOneProjectTitle = string.Format(UpgradeThisProjectResource, newVersion); 64var fixAllProjectsTitle = string.Format(UpgradeAllProjectsResource, newVersion);
src\Analyzers\Core\CodeFixes\UseCollectionExpression\AbstractUseCollectionExpressionCodeFixProvider.cs (1)
17private readonly string _titleChangesSemantics = string.Format(CodeFixesResources._0_may_change_semantics, title);
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (8)
364throw new InvalidOperationException(string.Format("Expected at most one Using record for method {0}", FormatMethodToken(methodToken))); 373throw new InvalidOperationException(string.Format("Did not expect both Forward and ForwardToModule records for method {0}", FormatMethodToken(methodToken))); 391throw new InvalidOperationException(string.Format("Expected at most one ForwardToModule record for method {0}", FormatMethodToken(methodToken))); 433throw new InvalidOperationException(string.Format("Group size indicates more imports than there are import strings (method {0}).", FormatMethodToken(methodToken))); 439throw new InvalidOperationException(string.Format("Encountered extern alias info before all import strings were consumed (method {0}).", FormatMethodToken(methodToken))); 459throw new InvalidOperationException(string.Format("Expected only extern alias info strings after consuming the indicated number of imports (method {0}).", FormatMethodToken(methodToken))); 473throw new InvalidOperationException(string.Format("Group size indicates fewer imports than there are import strings (method {0}).", FormatMethodToken(methodToken))); 846return string.Format("0x{0:x8}", methodToken);
UseNamedArguments\AbstractUseNamedArgumentsCodeRefactoringProvider.cs (3)
112string.Format(FeaturesResources.Add_argument_name_0, argumentName), 119string.Format(FeaturesResources.Add_argument_name_0_including_trailing_arguments, argumentName), 128string.Format(FeaturesResources.Add_argument_name_0, argumentName),
Microsoft.CodeAnalysis.Features.UnitTests (22)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (19)
181$"proj: {document1.FilePath}: (0,0)-(0,0): Warning ENC1008: {string.Format(FeaturesResources.Changing_source_file_0_in_a_stale_project_has_no_effect_until_the_project_is_rebuit, document1.FilePath)}" 1119[$"proj: {document2.FilePath}: (0,0)-(0,0): Error ENC1006: {string.Format(FeaturesResources.UnableToReadSourceFileOrPdb, sourceFile.Path)}"], 1168[$"test: {document1.FilePath}: (0,0)-(0,0): Error ENC1006: {string.Format(FeaturesResources.UnableToReadSourceFileOrPdb, sourceFile.Path)}"], 1572[$"{document2.FilePath}: (0,18)-(0,19): Error ENC0110: {string.Format(FeaturesResources.Changing_the_signature_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.method)}"], 1717[$"{generatedDocument.FilePath}: (0,17)-(0,18): Error ENC0110: {string.Format(FeaturesResources.Changing_the_signature_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.method)}"], 1853[$"{document1.FilePath}: (0,45)-(0,69): Error ENC0023: {string.Format(FeaturesResources.Adding_an_abstract_0_or_overriding_an_inherited_0_requires_restarting_the_application, FeaturesResources.method)}"], 1897[$"{document2.FilePath}: (0,24)-(0,25): Error ENC0110: {string.Format(FeaturesResources.Changing_the_signature_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.method)}"], 1913[$"{document2.FilePath}: (0,24)-(0,25): Error ENC0110: {string.Format(FeaturesResources.Changing_the_signature_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.method)}"], 1975[$"{document.FilePath}: (0,31)-(0,55): Error ENC0023: {string.Format(FeaturesResources.Adding_an_abstract_0_or_overriding_an_inherited_0_requires_restarting_the_application, FeaturesResources.method)}"], 2129$"test: {document2.FilePath}: (1,6)-(1,12): Warning CS0105: {string.Format(CSharpResources.WRN_DuplicateUsing, "System")}", 2755AssertEx.Equal(["ENC0101: " + string.Format(FeaturesResources.Updating_the_attributes_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.class_)], 2764AssertEx.Equal(["ENC0101: " + string.Format(FeaturesResources.Updating_the_attributes_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.class_)], 3139$"test: {document3.FilePath}: (0,0)-(0,0): Warning ENC1008: {string.Format(FeaturesResources.Changing_source_file_0_in_a_stale_project_has_no_effect_until_the_project_is_rebuit, sourceFile.Path)}" 3623[$"{documentB.FilePath}: (4,4)-(4,12): Error ENC0023: {string.Format(FeaturesResources.Adding_an_abstract_0_or_overriding_an_inherited_0_requires_restarting_the_application, FeaturesResources.method)}"], 3704[$"{documentB.FilePath}: (2,4)-(2,14): Warning ENC0118: {string.Format(FeaturesResources.Changing_0_might_not_have_any_effect_until_the_application_is_restarted, FeaturesResources.static_constructor)}"], 3836[$"proj: {generatedFilePath}: (0,0)-(0,56): Error ENC0021: {string.Format(FeaturesResources.Adding_0_requires_restarting_the_application, FeaturesResources.attribute)}"], 4471$"A: {documentA.FilePath}: (0,0)-(0,0): Warning ENC1008: {string.Format(FeaturesResources.Changing_source_file_0_in_a_stale_project_has_no_effect_until_the_project_is_rebuit, sourcePath)}", 4472$"B: {documentB.FilePath}: (0,0)-(0,0): Warning ENC1008: {string.Format(FeaturesResources.Changing_source_file_0_in_a_stale_project_has_no_effect_until_the_project_is_rebuit, sourcePath)}" 5086[$"{document.FilePath}: (9,8)-(9,13): Error ENC0063: {string.Format(FeaturesResources.Updating_a_0_around_an_active_statement_requires_restarting_the_application, CSharpFeaturesResources.catch_clause)}"],
EditAndContinue\EmitSolutionUpdateResultsTests.cs (2)
155$@"RestartRequired ENC0021: {sourcePath} (0,1)-(0,10): {string.Format(FeaturesResources.Adding_0_requires_restarting_the_application, "a")}", 156$@"RestartRequired ENC0033: {sourcePath} (0,1)-(0,10): {string.Format(FeaturesResources.Deleting_0_requires_restarting_the_application, "b")}",
EditAndContinue\UnitTestingHotReloadServiceTests.cs (1)
67["ENC0110: " + string.Format(FeaturesResources.Changing_the_signature_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.method)],
Microsoft.CodeAnalysis.InteractiveHost (7)
Interactive\Core\InteractiveHost.cs (1)
212WriteOutputInBackground(isError: true, string.Format(InteractiveHostResources.Hosting_process_exited_with_exit_code_0, exitCode.Value));
Interactive\Core\InteractiveHost.LazyRemoteService.cs (1)
164string.Format(InteractiveHostResources.Failed_to_create_a_remote_process_for_interactive_code_execution, hostPath),
Interactive\Core\InteractiveHost.Service.cs (2)
330Console.Error.WriteLine(string.Format(InteractiveHostResources.Cannot_resolve_reference_0, reference)); 522Console.Out.WriteLine(string.Format(InteractiveHostResources.Loading_context_from_0, Path.GetFileName(initializationFilePath)));
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
Microsoft.CodeAnalysis.LanguageServer (21)
HostWorkspace\LanguageServerProjectLoader.cs (4)
193_logger.LogInformation(string.Format(LanguageServerResources.Completed_reload_of_all_projects_in_0, stopwatch.Elapsed)); 352_logger.LogInformation(string.Format(LanguageServerResources.Successfully_completed_load_of_0, projectPath)); 360var message = string.Format(LanguageServerResources.Exception_thrown_0, e); 414message = string.Format(LanguageServerResources.There_were_problems_loading_project_0_See_log_for_details, Path.GetFileName(projectPath));
HostWorkspace\LanguageServerProjectSystem.cs (1)
59_logger.LogInformation(string.Format(LanguageServerResources.Loading_0, solutionFilePath));
HostWorkspace\ProjectDependencyHelper.cs (2)
55logger.LogWarning(string.Format(LanguageServerResources.Project_0_has_unresolved_dependencies, projectFileInfo.FilePath)); 97var message = string.Format(LanguageServerResources.Project_0_has_unresolved_dependencies, projectFileInfo.FilePath)
HostWorkspace\WorkspaceProjectFactoryService.cs (1)
40_logger.LogInformation(string.Format(LanguageServerResources.Project_0_loaded_by_CSharp_Dev_Kit, creationInfo.FilePath));
LanguageServer\Handler\Restore\RestoreHandler.cs (3)
101var stageName = string.Format(LanguageServerResources.Restoring_0, Path.GetFileName(path)); 102ReportProgress(progress, stageName, string.Format(LanguageServerResources.Running_dotnet_restore_on_0, path)); 120ReportProgress(progress, stageName, string.Format(LanguageServerResources.Failed_to_run_restore_on_0, path));
RunFileApiJsonSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Testing\RunTestsHandler.cs (7)
87shortForm += string.Format("{0}ms", t.Milliseconds.ToString()); 93shortForm += string.Format("{0}d ", t.Days.ToString()); 98shortForm += string.Format("{0}h ", t.Hours.ToString()); 103shortForm += string.Format("{0}m ", t.Minutes.ToString()); 108shortForm += string.Format("{0}s ", t.Seconds.ToString()); 180var message = string.Format(LanguageServerResources.Using_runsettings_file_at_0, runSettingsPath); 187var message = string.Format(LanguageServerResources.Runsettings_file_does_not_exist_at_0, runSettingsPath);
Testing\TestRunner.DebugTestHostLauncher.cs (1)
48progress.Report(new RunTestsPartialResult(LanguageServerResources.Debugging_tests, string.Format(LanguageServerResources.Attaching_debugger_to_process_0, processId), Progress: null));
Testing\TestRunner.TestRunHandler.cs (1)
56_progress.Report(partialResult with { Message = string.Format(LanguageServerResources.Test_run_error, testRunCompleteArgs.Error) });
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Extensions\Extensions.cs (1)
266throw new ArgumentException(string.Format("Document project language {0} is not valid", document.Project.Language));
Features\CodeCleanup\AbstractCodeCleanupService.cs (1)
240progressTracker.Report(CodeAnalysisProgress.Description(string.Format(FeaturesResources.Fixing_0, title ?? diagnosticId)));
Handler\CodeActions\CodeActionHelpers.cs (1)
202var fixAllTitle = string.Format(FeaturesResources.Fix_All_0, title);
Handler\CodeLens\CodeLensResolveHandler.cs (1)
50Title = string.Format(FeaturesResources._0_references_unquoted, "-"),
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (30)
CodeActions\CodeActionResolveTests.cs (23)
93var titlePath = new string[] { FeaturesResources.Introduce_constant, string.Format(FeaturesResources.Introduce_constant_for_0, "1") }; 95title: string.Format(FeaturesResources.Introduce_constant_for_0, "1"), 99FeaturesResources.Introduce_constant + "|" + string.Format(FeaturesResources.Introduce_constant_for_0, "1"), 127title: string.Format(FeaturesResources.Introduce_constant_for_0, "1"), 131FeaturesResources.Introduce_constant + "|" + string.Format(FeaturesResources.Introduce_constant_for_0, "1"), 168var titlePath = new string[] { string.Format(FeaturesResources.Rename_file_to_0, "ABC.cs") }; 170title: string.Format(FeaturesResources.Rename_file_to_0, "ABC.cs"), 174string.Format(FeaturesResources.Rename_file_to_0, "ABC.cs"), 191title: string.Format(FeaturesResources.Rename_file_to_0, "ABC.cs"), 195string.Format(FeaturesResources.Rename_file_to_0, "ABC.cs"), 226var titlePath = new string[] { string.Format(FeaturesResources.Encapsulate_field_colon_0_and_use_property, "_value") }; 228title: string.Format(FeaturesResources.Encapsulate_field_colon_0_and_use_property, "_value"), 232string.Format(FeaturesResources.Encapsulate_field_colon_0_and_use_property, "_value"), 285var titlePath = new string[] { string.Format(FeaturesResources.Move_type_to_0, "ABC.cs") }; 287title: string.Format(FeaturesResources.Move_type_to_0, "ABC.cs"), 291string.Format(FeaturesResources.Move_type_to_0, "ABC.cs"), 369title: string.Format(FeaturesResources.Move_type_to_0, "ABC.cs"), 373string.Format(FeaturesResources.Move_type_to_0, "ABC.cs"), 413var titlePath = new string[] { string.Format(FeaturesResources.Move_type_to_0, "BCD.cs") }; 415title: string.Format(FeaturesResources.Move_type_to_0, "BCD.cs"), 419string.Format(FeaturesResources.Move_type_to_0, "BCD.cs"), 499title: string.Format(FeaturesResources.Move_type_to_0, "BCD.cs"), 503string.Format(FeaturesResources.Move_type_to_0, "BCD.cs"),
CodeActions\CodeActionsTests.cs (3)
76var titlePath = new[] { FeaturesResources.Introduce_constant, string.Format(FeaturesResources.Introduce_constant_for_0, "1") }; 78title: string.Format(FeaturesResources.Introduce_constant_for_0, "1"), 82string.Format(FeaturesResources.Introduce_constant_for_0, "1"),
CodeActions\RunCodeActionsTests.cs (2)
44var titlePath = new[] { string.Format(FeaturesResources.Move_type_to_0, "B.cs") }; 45var commandArgument = new CodeActionResolveData(string.Format(FeaturesResources.Move_type_to_0, "B.cs"), customTags: [], caretLocation.Range, documentId, fixAllFlavors: null, nestedCodeActions: null, codeActionPath: titlePath);
Hover\HoverTests.cs (1)
505Assert.Equal($@"{string.Format(FeaturesResources.Awaited_task_returns_0, "`class System.String`")}
Symbols\WorkspaceSymbolsTests.cs (1)
250return string.Format(FeaturesResources.project_0, solution.Projects.Single().Name);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (20)
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
127failureReason = string.Format(CompilerExtensionsResources.Missing_prefix_colon_0, Prefix); 133failureReason = string.Format(CompilerExtensionsResources.Missing_suffix_colon_0, Suffix); 154? string.Format(CompilerExtensionsResources.Prefix_0_is_not_expected, prefix) 226reason = string.Format(resourceId, string.Join(", ", violations)); 266reason = string.Format(firstResourceId, Substring(name, wordSpan)); 282var restString = string.Format(restResourceId, string.Join(", ", violations));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.RepeatMatcher.cs (1)
23=> string.Format("({0}*)", matcher);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.SequenceMatcher.cs (1)
29=> string.Format("({0})", string.Join(",", (object[])matchers));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\FixAllHelper.cs (4)
19FixAllScope.Custom => string.Format(WorkspaceExtensionsResources.Fix_all_0, title), 22FixAllScope.Solution => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Solution, title), 23FixAllScope.ContainingMember => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_member, title), 24FixAllScope.ContainingType => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_type, title),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
39return semanticModel ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 63return syntaxTree ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 80return root ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (1)
44throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Project_of_ID_0_is_required_to_accomplish_the_task_but_is_not_available_from_the_solution, projectId));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (1)
99throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Compilation_is_required_to_accomplish_the_task_but_is_not_supported_by_project_0, project.Name));
Microsoft.CodeAnalysis.PublicApiAnalyzers (11)
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
127failureReason = string.Format(CompilerExtensionsResources.Missing_prefix_colon_0, Prefix); 133failureReason = string.Format(CompilerExtensionsResources.Missing_suffix_colon_0, Suffix); 154? string.Format(CompilerExtensionsResources.Prefix_0_is_not_expected, prefix) 226reason = string.Format(resourceId, string.Join(", ", violations)); 266reason = string.Format(firstResourceId, Substring(name, wordSpan)); 282var restString = string.Format(restResourceId, string.Join(", ", violations));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.RepeatMatcher.cs (1)
23=> string.Format("({0}*)", matcher);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.SequenceMatcher.cs (1)
29=> string.Format("({0})", string.Join(",", (object[])matchers));
Microsoft.CodeAnalysis.Rebuild (3)
CompilationOptionsReader.cs (1)
384throw new InvalidDataException(string.Format(RebuildResources.Unexpected_value_for_EmbedInteropTypes_MetadataImageKind_0, embedInteropTypesAndKind));
Extensions.cs (1)
20throw new InvalidDataException(string.Format(RebuildResources.Encountered_unexpected_byte_0_when_expecting_a_null_terminator, b));
VisualBasicCompilationFactory.cs (1)
81throw new Exception(string.Format(RebuildResources.Cannot_create_compilation_options_0, diagnostic));
Microsoft.CodeAnalysis.Remote.Workspaces (1)
BrokeredServiceConnection.cs (1)
391message = string.Format(RemoteWorkspacesResources.Feature_0_is_currently_unavailable_due_to_an_internal_error, featureName);
Microsoft.CodeAnalysis.ResxSourceGenerator (11)
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
127failureReason = string.Format(CompilerExtensionsResources.Missing_prefix_colon_0, Prefix); 133failureReason = string.Format(CompilerExtensionsResources.Missing_suffix_colon_0, Suffix); 154? string.Format(CompilerExtensionsResources.Prefix_0_is_not_expected, prefix) 226reason = string.Format(resourceId, string.Join(", ", violations)); 266reason = string.Format(firstResourceId, Substring(name, wordSpan)); 282var restString = string.Format(restResourceId, string.Join(", ", violations));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.RepeatMatcher.cs (1)
23=> string.Format("({0}*)", matcher);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.SequenceMatcher.cs (1)
29=> string.Format("({0})", string.Join(",", (object[])matchers));
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommandLine\CommandLineRunner.cs (1)
399Console.Error.WriteLine(string.Format(ScriptingResources.PlusAdditionalError, notShown));
Microsoft.CodeAnalysis.Test.Utilities (24)
Assert\AssertEx.cs (3)
520Assert.True(any, string.Format("No expected item was found.\nExisting items: {0}", ToString(actual))); 528Assert.True(all, string.Format( 946builder.Append(string.Format(format, resultWithComma));
Assert\AssertXml.cs (2)
98string actualString = expectedIsXmlLiteral ? actual.Replace(" />\r\n", "/>\r\n") : string.Format("@\"{0}\"", actual.Replace("\"", "\"\"")); 99string expectedString = expectedIsXmlLiteral ? expected.Replace(" />\r\n", "/>\r\n") : string.Format("@\"{0}\"", expected.Replace("\"", "\"\""));
Diagnostics\SuppressMessageAttributeTests.cs (1)
1376Assert.False(string.IsNullOrWhiteSpace(rootNamespace), string.Format("Invalid root namespace '{0}'", rootNamespace));
MarkedSource\MarkupTestFile.cs (1)
126throw new ArgumentException(string.Format("Saw multiple occurrences of {0}", PositionString));
Metadata\DynamicAnalysisDataReader.cs (1)
307throw new BadImageFormatException(string.Format("Invalid document name", separator));
Metadata\IlasmUtilities.cs (1)
116arguments += string.Format(" -PDB=\"{0}\"", pdbPath);
Metadata\ILBuilderVisualizer.cs (8)
63return string.Format("\"{0}\"", symbol == null ? (object)reference : symbol.ToDisplayString(_symbolDisplayFormat)); 231sb.Append(string.Format(" IL_{0:x4}:", block.RegularInstructionsLength + block.Start)); 232sb.Append(string.Format(" {0,-10}", GetInstructionName(block.BranchCode))); 244sb.Append(string.Format(" IL_{0:x4}", branchBlock.Start)); 260sb.Append(string.Format(" IL_{0:x4}:", block.RegularInstructionsLength + block.Start)); 261sb.Append(string.Format(" {0,-10}", GetInstructionName(block.BranchCode))); 262sb.Append(string.Format(" IL_{0:x4}:", block.BranchesCount)); 276sb.Append(string.Format(" IL_{0:x4}", branchBlock.Start));
Metadata\MetadataSignatureUnitTestHelper.cs (3)
90expectedSignature = string.Format(signatureAssertText, expectedSignature); 98actualSignature = string.Format(signatureAssertText, actualSignature); 120actualSignature = string.Format(signatureAssertText, actualSignature);
Win32Res.cs (4)
186xw.WriteAttributeString("FileVersionMS", String.Format("{0:x8}", reader.ReadUInt32())); 187xw.WriteAttributeString("FileVersionLS", String.Format("{0:x8}", reader.ReadUInt32())); 188xw.WriteAttributeString("ProductVersionMS", String.Format("{0:x8}", reader.ReadUInt32())); 189xw.WriteAttributeString("ProductVersionLS", String.Format("{0:x8}", reader.ReadUInt32()));
Microsoft.CodeAnalysis.Threading.Package (3)
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
Microsoft.CodeAnalysis.UnitTests (10)
Diagnostics\DiagnosticLocalizationTests.cs (2)
113var expected = string.Format(defaultCultureLocalizedStringWithArguments, argument); 124expected = string.Format(arLocalizedStringWithArguments, argument);
Diagnostics\SarifErrorLoggerTests.cs (1)
129string.Format(formatString, outputPath),
Diagnostics\SuppressMessageAttributeCompilerTests.cs (6)
107(IFormattable)$@"{string.Format(CodeAnalysisResources.ExceptionContext, $@"Compilation: TestProject 113{string.Format(CodeAnalysisResources.DisableAnalyzerDiagnosticsMessage, "ThrowException")}"); 119(IFormattable)$@"{string.Format(CodeAnalysisResources.ExceptionContext, $@"Compilation: TestProject 125{string.Format(CodeAnalysisResources.DisableAnalyzerDiagnosticsMessage, "ThrowException")}"); 131(IFormattable)$@"{string.Format(CodeAnalysisResources.ExceptionContext, $@"Compilation: TestProject 137{string.Format(CodeAnalysisResources.DisableAnalyzerDiagnosticsMessage, "ThrowException")}");
MetadataReferences\MetadataReferenceTests.cs (1)
238return string.Format("<member name='{0}'><summary>{0}</summary></member>", documentationMemberID);
Microsoft.CodeAnalysis.VisualBasic (14)
Compilation\VisualBasicCompilation.vb (2)
950Throw New ArgumentException(String.Format(VBResources.TreesMustHaveRootNode, i)) 1056Throw New ArgumentException(String.Format(VBResources.SyntaxTreeNotFoundToRemove, tree))
Scanner\ScannerXml.vb (1)
1123name = name.WithDiagnostics(ErrorFactory.ErrorInfo(err, errChar, String.Format("&H{0:X}", errUnicode)))
Scanner\XmlTokenFactories.vb (1)
102diagnostic = ErrorFactory.ErrorInfo(id, xmlCh, String.Format("&H{0:X}", xmlChAsUnicode))
SymbolDisplay\SymbolDisplayVisitor.Types.vb (1)
338Dim name = String.Format("<anonymous type: {0}>", members)
SymbolDisplay\SymbolDisplayVisitor.vb (2)
138Return String.Format("[{0}]", identifier) 173Return String.Format("[{0}]", identifier)
Symbols\Source\OverrideHidingHelper.vb (1)
504Debug.Assert(False, String.Format("Unexpected method kind '{0}'", DirectCast(sym, MethodSymbol).MethodKind))
Syntax\SyntaxFacts.vb (1)
550Debug.Assert(False, String.Format("Unknown accessibility '{0}'", accessibility))
VisualBasicExtensions.vb (5)
1391Throw New ArgumentException(String.Format(VBResources.IConversionExpressionIsNotVisualBasicConversion, 1409Throw New ArgumentException(String.Format(VBResources.IArgumentIsNotVisualBasicArgument, 1427Throw New ArgumentException(String.Format(VBResources.IArgumentIsNotVisualBasicArgument, 1449Throw New ArgumentException(String.Format(VBResources.ICompoundAssignmentOperationIsNotVisualBasicCompoundAssignment, 1471Throw New ArgumentException(String.Format(VBResources.ICompoundAssignmentOperationIsNotVisualBasicCompoundAssignment,
Microsoft.CodeAnalysis.Workspaces (66)
CodeActions\CodeAction.cs (1)
364return solution ?? throw new InvalidOperationException(string.Format(WorkspacesResources.CodeAction_0_did_not_produce_a_changed_solution, this.Title));
CodeFixes\CodeFixContext.cs (1)
252throw new ArgumentException(string.Format(WorkspacesResources.Diagnostic_must_have_span_0, span.ToString()), nameof(diagnostics));
CodeFixes\ExportCodeFixProviderAttribute.cs (1)
55var message = string.Format(WorkspacesResources.Unexpected_value_0_in_DocumentKinds_array,
CodeRefactorings\ExportCodeRefactoringProviderAttribute.cs (1)
51var message = string.Format(WorkspacesResources.Unexpected_value_0_in_DocumentKinds_array,
Differencing\Match.cs (2)
50throw new ArgumentException(string.Format(WorkspacesResources.Node_0_must_be_contained_in_the_old_tree, knownMatch.Key), nameof(knownMatches)); 55throw new ArgumentException(string.Format(WorkspacesResources.Node_0_must_be_contained_in_the_new_tree, knownMatch.Value), nameof(knownMatches));
Editing\SymbolEditor.cs (2)
274throw new ArgumentException(string.Format(WorkspacesResources.The_symbol_0_cannot_be_located_within_the_current_solution, argSymbol.Name)); 411throw new ArgumentException(string.Format(WorkspacesResources.The_member_0_is_not_declared_within_the_declaration_of_the_symbol, member.Name));
LinkedFileDiffMerging\AbstractLinkedFileMergeConflictCommentAdditionService.cs (1)
79string.Format(WorkspacesResources.TODO_Unmerged_change_from_project_0, projectName),
Rename\ConflictEngine\ConflictResolver.cs (1)
99return new ConflictResolution(string.Format(WorkspacesResources.Symbol_0_is_not_from_source, renameLocations.Symbol.Name));
Rename\Renamer.RenameDocumentActionSet.cs (1)
82throw new ArgumentException(string.Format(WorkspacesResources.Cannot_apply_action_that_is_not_in_0, nameof(ApplicableActions)));
Rename\RenameUtilities.cs (1)
329var matchString = string.Format(@"\b{0}\b", matchText);
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
127failureReason = string.Format(CompilerExtensionsResources.Missing_prefix_colon_0, Prefix); 133failureReason = string.Format(CompilerExtensionsResources.Missing_suffix_colon_0, Suffix); 154? string.Format(CompilerExtensionsResources.Prefix_0_is_not_expected, prefix) 226reason = string.Format(resourceId, string.Join(", ", violations)); 266reason = string.Format(firstResourceId, Substring(name, wordSpan)); 282var restString = string.Format(restResourceId, string.Join(", ", violations));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.RepeatMatcher.cs (1)
23=> string.Format("({0}*)", matcher);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.SequenceMatcher.cs (1)
29=> string.Format("({0})", string.Join(",", (object[])matchers));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\FixAllHelper.cs (4)
19FixAllScope.Custom => string.Format(WorkspaceExtensionsResources.Fix_all_0, title), 22FixAllScope.Solution => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Solution, title), 23FixAllScope.ContainingMember => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_member, title), 24FixAllScope.ContainingType => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_type, title),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (6)
39return semanticModel ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 52return semanticModel ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 63return syntaxTree ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 70return syntaxTree ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 80return root ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 87return root ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (1)
44throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Project_of_ID_0_is_required_to_accomplish_the_task_but_is_not_available_from_the_solution, projectId));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (1)
99throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Compilation_is_required_to_accomplish_the_task_but_is_not_supported_by_project_0, project.Name));
Workspace\CommandLineProject.cs (3)
69throw new ArgumentException(string.Format(WorkspacesResources.Can_t_resolve_metadata_reference_colon_0, ((UnresolvedMetadataReference)unresolvedMetadataReferences).Reference)); 82throw new ArgumentException(string.Format(WorkspacesResources.Can_t_resolve_analyzer_reference_colon_0, ((UnresolvedAnalyzerReference)unresolvedAnalyzerReferences).Display)); 96throw new ArgumentException(string.Format(WorkspacesResources.An_error_occurred_while_reading_the_specified_configuration_file_colon_0, e.Message));
Workspace\Host\HostWorkspaceServices.cs (1)
142=> throw new NotSupportedException(string.Format(WorkspacesResources.The_language_0_is_not_supported, languageName));
Workspace\Solution\Document.cs (1)
302return semanticModel ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, this.Name));
Workspace\Solution\FileTextLoader.cs (1)
223var message = string.Format(WorkspacesResources.File_was_externally_modified_colon_0, Path);
Workspace\Solution\Project.cs (1)
819throw new ArgumentException(string.Format(WorkspacesResources._0_is_in_a_different_project, documentId));
Workspace\Solution\Solution.cs (1)
1167=> this.SolutionState.GetProjectState(projectId) ?? throw new InvalidOperationException(string.Format(WorkspacesResources._0_is_not_part_of_the_workspace, projectId));
Workspace\Solution\SolutionState.cs (1)
404throw new ArgumentException(string.Format(WorkspacesResources.The_language_0_is_not_supported, language));
Workspace\Workspace.cs (17)
1288throw new ArgumentException(string.Format( 1583progressTracker.Report(CodeAnalysisProgress.Description(string.Format(WorkspacesResources.Applying_changes_to_0, projectChanges.NewProject.Name))); 1770throw new NotSupportedException(string.Format(WorkspacesResources.Changing_document_0_is_not_supported, document.FilePath ?? document.Name)); 2346throw new ArgumentException(string.Format( 2362throw new ArgumentException(string.Format( 2375throw new ArgumentException(string.Format( 2388throw new ArgumentException(string.Format( 2437throw new ArgumentException(string.Format(WorkspacesResources._0_is_not_present, analyzerReference)); 2448throw new ArgumentException(string.Format(WorkspacesResources._0_is_already_present, analyzerReference)); 2459throw new ArgumentException(string.Format(WorkspacesResources._0_is_not_present, analyzerReference)); 2470throw new ArgumentException(string.Format(WorkspacesResources._0_is_already_present, analyzerReference)); 2484throw new ArgumentException(string.Format( 2500throw new ArgumentException(string.Format( 2516throw new ArgumentException(string.Format( 2529throw new ArgumentException(string.Format( 2545throw new ArgumentException(string.Format( 2561throw new ArgumentException(string.Format(
Workspace\Workspace_Editor.cs (5)
164throw new ArgumentException(string.Format(WorkspacesResources._0_still_contains_open_documents, this.GetProjectName(projectId))); 337string.Format(WorkspacesResources._0_is_still_open, 346throw new ArgumentException(string.Format( 375throw new ArgumentException(string.Format( 663throw new ArgumentException(string.Format(
Microsoft.CodeAnalysis.Workspaces.MSBuild (18)
MSBuild\BuildHostProcessManager.cs (1)
312throw new Exception(string.Format(WorkspaceMSBuildResources.The_build_host_could_not_be_found_at_0, buildHostPath));
MSBuild\DiagnosticReporter.cs (1)
67? string.Format(WorkspaceMSBuildResources.Msbuild_failed_when_processing_the_file_0, projectFilePath)
MSBuild\MSBuildProjectLoader.Worker.cs (3)
110string.Format(WorkspaceMSBuildResources.Duplicate_project_discovered_and_skipped_0, projectPath))); 160string.Format(WorkspaceMSBuildResources.Found_project_with_the_same_file_path_and_output_path_as_another_project_0, projectFileInfo.FilePath)); 325var message = string.Format(WorkspaceMSBuildResources.Unable_to_find_0, nameof(IAnalyzerService));
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (2)
266string.Format(WorkspaceMSBuildResources.Unresolved_metadata_reference_removed_from_project_0, filePath), 308string.Format(WorkspaceMSBuildResources.Found_project_reference_without_a_matching_metadata_reference_0, projectReferencePath),
MSBuild\MSBuildWorkspace.cs (5)
344string.Format(WorkspaceMSBuildResources.Project_path_for_0_was_null, project.Name), 393var message = string.Format(WorkspaceMSBuildResources.Path_for_document_0_was_null, document.Name); 411var message = string.Format(WorkspaceMSBuildResources.Path_for_additional_document_0_was_null, document.Name); 576var message = string.Format(WorkspaceMSBuildResources.Unable_to_add_metadata_reference_0, metadataReference.Display); 612var message = string.Format(WorkspaceMSBuildResources.Unable_to_remove_metadata_reference_0, metadataReference.Display);
MSBuild\PathResolver.cs (4)
29_diagnosticReporter?.Report(reportingMode, string.Format(WorkspacesResources.Invalid_solution_file_path_colon_0, path)); 38string.Format(WorkspacesResources.Solution_file_not_found_colon_0, absolutePath), 54_diagnosticReporter?.Report(reportingMode, string.Format(WorkspacesResources.Invalid_project_file_path_colon_0, path)); 63string.Format(WorkspacesResources.Project_file_not_found_colon_0, absolutePath),
MSBuild\SolutionFileReader.cs (2)
31throw new Exception(string.Format(WorkspaceMSBuildResources.Failed_to_load_solution_filter_0, solutionFilePath)); 37throw new Exception(string.Format(WorkspaceMSBuildResources.Failed_to_load_solution_0, absoluteSolutionPath));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
Build\ProjectBuildManager.cs (1)
341log.Add(string.Format(WorkspaceMSBuildBuildHostResources.Project_does_not_contain_0_target, target), projectInstance.FullPath);
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
SolutionGeneration.cs (1)
207return string.Format(SolutionTemplate, sb.ToString());
VisualStudioMSBuildWorkspaceTests.cs (1)
366Document(string.Format(
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace_XmlConsumption.cs (1)
106=> string.Format("<member name='{0}'><summary>{0}</summary></member>", documentationMemberID);
Microsoft.CodeAnalysis.Workspaces.UnitTests (11)
GeneratedCodeRecognitionTests.cs (2)
84Assert.True(document.IsGeneratedCode(CancellationToken.None), string.Format("Expected file '{0}' to be interpreted as generated code", fileName)); 88Assert.False(document.IsGeneratedCode(CancellationToken.None), string.Format("Did not expect file '{0}' to be interpreted as generated code", fileName));
LinkedFileDiffMerging\LinkedFileDiffMergingTests.TextMerging.cs (9)
53<<<<<<< {string.Format(WorkspacesResources.TODO_Unmerged_change_from_project_0, "ProjectName1")}, {WorkspacesResources.Before_colon} 69<<<<<<< {string.Format(WorkspacesResources.TODO_Unmerged_change_from_project_0, "ProjectName1")}, {WorkspacesResources.Before_colon} 104<<<<<<< {string.Format(WorkspacesResources.TODO_Unmerged_change_from_project_0, "ProjectName1")}, {WorkspacesResources.Before_colon} 146<<<<<<< {string.Format(WorkspacesResources.TODO_Unmerged_change_from_project_0, "ProjectName1")}, {WorkspacesResources.Before_colon} 154<<<<<<< {string.Format(WorkspacesResources.TODO_Unmerged_change_from_project_0, "ProjectName1")}, {WorkspacesResources.Before_colon} 176<<<<<<< {string.Format(WorkspacesResources.TODO_Unmerged_change_from_project_0, "ProjectName2")}, {WorkspacesResources.Before_colon} 182<<<<<<< {string.Format(WorkspacesResources.TODO_Unmerged_change_from_project_0, "ProjectName3")}, {WorkspacesResources.Before_colon} 202<<<<<<< {string.Format(WorkspacesResources.TODO_Unmerged_change_from_project_0, "ProjectName1")}, {WorkspacesResources.Before_colon} 222<<<<<<< {string.Format(WorkspacesResources.TODO_Unmerged_change_from_project_0, "ProjectName1")}, {WorkspacesResources.Before_colon}
Microsoft.CSharp (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Data.Analysis (33)
DataFrame.cs (6)
339throw new ArgumentException(string.Format(Strings.ExceedsNumberOfRows, Rows.Count), nameof(numberOfRows)); 371throw new ArgumentException(String.Format(Strings.InvalidColumnName, columnName), nameof(columnName)); 566throw new ArgumentException(string.Format(Strings.MismatchedValueType, column.DataType), column.Name); 575throw new ArgumentException(string.Format(Strings.ExceedsNumberOfColumns, Columns.Count), nameof(row)); 631throw new ArgumentException(String.Format(Strings.InvalidColumnName, columnName), nameof(columnName)); 641throw new ArgumentException(string.Format(Strings.MismatchedValueType, column.DataType), column.Name);
DataFrame.IO.cs (1)
63IEnumerable<string> lines = read.Select(line => col < line.Line.Length ? line.Line[col] : throw new FormatException(string.Format(Strings.LessColumnsThatExpected, line.LineNumber + 1)));
DataFrameColumn.cs (1)
275throw new ArgumentException(String.Format(Strings.MismatchedColumnValueType, this.DataType), nameof(other));
DataFrameColumnCollection.cs (3)
87throw new ArgumentException(string.Format(Strings.DuplicateColumnName, column.Name), nameof(column)); 113throw new ArgumentException(string.Format(Strings.DuplicateColumnName, column.Name), nameof(column)); 188throw new ArgumentException(String.Format(Strings.InvalidColumnName, columnName), nameof(columnName));
DataFrameColumns\ArrowStringDataFrameColumn.cs (1)
554throw new ArgumentException(String.Format(Strings.MismatchedValueType, typeof(string)), nameof(value));
DataFrameColumns\StringDataFrameColumn.cs (2)
153throw new ArgumentException(string.Format(Strings.MismatchedValueType, typeof(string)), nameof(value)); 467throw new ArgumentException(String.Format(Strings.MismatchedValueType, typeof(string)), nameof(value));
DataFrameColumns\VBufferDataFrameColumn.cs (1)
132throw new ArgumentException(string.Format(Strings.MismatchedValueType, typeof(VBuffer<T>)), nameof(value));
IDataView.Extension.cs (2)
125throw new NotSupportedException(String.Format(Microsoft.Data.Strings.NotSupportedColumnType, type.RawType.Name)); 212throw new NotSupportedException(String.Format(Microsoft.Data.Strings.VectorSubTypeNotSupported, itemType.ToString()));
PrimitiveDataFrameColumn.cs (10)
245throw new ArgumentException(string.Format(Strings.MismatchedValueType, DataType), nameof(value)); 479throw new ArgumentException(String.Format(Strings.MismatchedValueType, Strings.NumericColumnType), nameof(mapIndices)); 720throw new ArgumentException(string.Format(Strings.MismatchedValueType, typeof(T)), nameof(U)); 750throw new ArgumentException(string.Format(Strings.MismatchedValueType, typeof(T)), nameof(U)); 987throw new ArgumentException(string.Format(Strings.MismatchedColumnValueType, typeof(T)), nameof(column)); 1022throw new ArgumentException(string.Format(Strings.MismatchedColumnValueType, typeof(T)), nameof(column)); 1065throw new ArgumentException(string.Format(Strings.MismatchedValueType, typeof(T)), nameof(value)); 1100throw new ArgumentException(string.Format(Strings.MismatchedValueType, typeof(T)), nameof(value)); 1142throw new ArgumentException(string.Format(Strings.MismatchedValueType, typeof(T)), nameof(value)); 1176throw new ArgumentException(string.Format(Strings.MismatchedValueType, typeof(T)), nameof(value));
TextFieldParser.cs (6)
453throw new ArgumentException(string.Format(Strings.PositiveNumberOfCharacters, nameof(numberOfChars))); 804throw new Exception(string.Format(Strings.CannotParseWithDelimiters, currentLineNumber)); 822throw new Exception(string.Format(Strings.CannotParseWithDelimiters, currentLineNumber)); 828throw new Exception(string.Format(Strings.LineExceedsMaxLineSize, currentLineNumber)); 837throw new Exception(string.Format(Strings.CannotParseWithDelimiters, currentLineNumber)); 939throw new Exception(string.Format(Strings.CannotParseWithFieldWidths, lineNumber));
Microsoft.Data.Analysis.Tests (6)
src\Microsoft.Data.Analysis\TextFieldParser.cs (6)
453throw new ArgumentException(string.Format(Strings.PositiveNumberOfCharacters, nameof(numberOfChars))); 804throw new Exception(string.Format(Strings.CannotParseWithDelimiters, currentLineNumber)); 822throw new Exception(string.Format(Strings.CannotParseWithDelimiters, currentLineNumber)); 828throw new Exception(string.Format(Strings.LineExceedsMaxLineSize, currentLineNumber)); 837throw new Exception(string.Format(Strings.CannotParseWithDelimiters, currentLineNumber)); 939throw new Exception(string.Format(Strings.CannotParseWithFieldWidths, lineNumber));
Microsoft.DotNet.Build.Tasks.Feed (5)
src\BlobUrlInfo.cs (2)
49throw new ArgumentException(string.Format("Blob URL host name {0} should be of the form <account name>.<endpoint>", hostName)); 62throw new ArgumentException(string.Format("Blob URL path {0} should have a container and blob path", path));
src\common\UploadToAzure.cs (3)
94throw new Exception(string.Format("Metadata 'RelativeBlobPath' is missing for item '{0}'.", item.ItemSpec)); 99throw new Exception(string.Format("The file '{0}' does not exist.", item.ItemSpec)); 114throw new Exception(string.Format("The blob '{0}' already exists.", relativeBlobPath));
Microsoft.DotNet.Build.Tasks.Workloads (13)
CreateVisualStudioWorkload.wix.cs (1)
338Log.LogMessage(MessageImportance.Low, string.Format(Strings.BuildExtractingPackage, data.Package.PackagePath));
EmbeddedTemplates.cs (2)
37throw new KeyNotFoundException(string.Format(Strings.TemplateNotFound, filename)); 56throw new IOException(string.Format(Strings.TemplateResourceNotFound, resourceName));
Msi\WorkloadPackMsi.wix.cs (1)
96_ => throw new ArgumentException(string.Format(Strings.UnknownWorkloadKind, kind)),
Swix\ComponentSwixProject.cs (1)
36throw new ArgumentException(string.Format(Strings.ComponentMustHaveAtLeastOneDependency, component.Name));
Swix\PackageGroupSwixProject.wix.cs (1)
38throw new ArgumentException(string.Format(Strings.ComponentMustHaveAtLeastOneDependency, packageGroup.Name));
WorkloadManifestPackage.wix.cs (1)
149throw new FormatException(string.Format(Strings.CannotExtractManifestIdFromPackageId, packageId));
WorkloadPackageBase.cs (2)
260Log?.LogMessage(MessageImportance.Low, string.Format(Strings.WorkloadPackageDeleteExclusion, file)); 307throw new FormatException(string.Format(Strings.CannotExtractSdkVersionFromPackageId, packageId));
WorkloadPackPackage.wix.cs (1)
121_ => throw new ArgumentException(string.Format(Strings.UnknownWorkloadKind, pack.Kind))
WorkloadSetPackage.wix.cs (3)
104throw new Exception(string.Format(Strings.InvalidWorkloadSetPackageMissingDataDir, Id)); 120Log?.LogWarning(string.Format(Strings.WarnNonWorkloadSetFileFound, Path.GetFileName(file))); 131throw new Exception(string.Format(Strings.InvalidWorkloadSetPackageNoWorkloadSet, Id));
Microsoft.DotNet.CodeAnalysis (3)
Analyzers\AppContextDefaultsAnalyzer.cs (1)
40return string.Format("{0} {1}", diagnosticMessage, string.Format(HowToDisableWarning, diagnosticId));
Analyzers\PinvokeAnalyzer.cs (2)
117altMsg = String.Format(NotSupportedOnWin7, AllowedPinvokes[methodName] + "!" + methodName); 126altMsg = String.Format(AltMsgString, AllowedPinvokes[methodName] + "!" + methodName);
Microsoft.DotNet.GenFacades (1)
SourceGenerator.cs (1)
101sb.AppendLine(string.Format("extern alias {0};", alias));
Microsoft.DotNet.NuGetRepack.Tests (2)
TestHelpers\AssertEx.cs (2)
294Assert.True(any, string.Format("No expected item was found.\nExisting items: {0}", ToString(actual))); 302Assert.True(all, string.Format(
Microsoft.DotNet.SignCheckLibrary (3)
Verification\FileVerifier.cs (2)
213Log.WriteMessage(LogVerbosity.Diagnostic, String.Format(SignCheckResources.DiagCreatingFolder, path)); 223Log.WriteMessage(LogVerbosity.Diagnostic, String.Format(SignCheckResources.DiagDeletingFolder, path));
Verification\SignatureVerificationManager.cs (1)
232throw new ArgumentException(String.Format(SignCheckResources.ArgumentNullOrEmpty, "path"));
Microsoft.DotNet.SignCheckTask (3)
src\SignCheck.cs (3)
247Log.WriteError(String.Format(SignCheckResources.scDirDoesNotExist, fileSearchPath)); 277Log.WriteError(String.Format(SignCheckResources.scInputFileDoesNotExist, inputFile)); 444Log.WriteMessage(LogVerbosity.Minimum, String.Format(SignCheckResources.scTime, totalTime));
Microsoft.DotNet.XUnitExtensions (1)
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\ConditionalTestDiscoverer.cs (1)
103return string.Format("Condition(s) not met: \"{0}\"", string.Join("\", \"", falseConditions));
Microsoft.DotNet.XUnitV3Extensions (1)
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\ConditionalTestDiscoverer.cs (1)
103return string.Format("Condition(s) not met: \"{0}\"", string.Join("\", \"", falseConditions));
Microsoft.Extensions.Caching.Memory (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Configuration (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Configuration.Abstractions (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Configuration.Binder (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Configuration.CommandLine (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Configuration.FileExtensions (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Configuration.Ini (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Configuration.Json (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Configuration.UserSecrets (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Configuration.Xml (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.DependencyInjection (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.DependencyInjection.Abstractions (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.DependencyModel (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Diagnostics (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Diagnostics.Abstractions (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Linux\OSFileSystemTests.cs (1)
80var expected = string.Format("line {0}", index);
Microsoft.Extensions.FileProviders.Abstractions (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.FileProviders.Physical (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.FileSystemGlobbing (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Hosting (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Hosting.Abstractions (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Http (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Logging (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Logging.Abstractions (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Logging.Configuration (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Logging.Console (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Logging.Generators (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Options (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Options.SourceGeneration (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Primitives (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Gen.BuildMetadata (1)
src\Generators\Shared\DiagDescriptorsBase.cs (1)
35helpLinkUri: string.Format(DiagnosticIds.UrlFormat, id));
Microsoft.Gen.ContextualOptions (1)
src\Generators\Shared\DiagDescriptorsBase.cs (1)
35helpLinkUri: string.Format(DiagnosticIds.UrlFormat, id));
Microsoft.Gen.Logging (1)
src\Generators\Shared\DiagDescriptorsBase.cs (1)
35helpLinkUri: string.Format(DiagnosticIds.UrlFormat, id));
Microsoft.Gen.MetadataExtractor (1)
src\Generators\Shared\DiagDescriptorsBase.cs (1)
35helpLinkUri: string.Format(DiagnosticIds.UrlFormat, id));
Microsoft.Gen.Metrics (1)
src\Generators\Shared\DiagDescriptorsBase.cs (1)
35helpLinkUri: string.Format(DiagnosticIds.UrlFormat, id));
Microsoft.Gen.MetricsReports (1)
src\Generators\Shared\DiagDescriptorsBase.cs (1)
35helpLinkUri: string.Format(DiagnosticIds.UrlFormat, id));
Microsoft.Interop.ComInterfaceGenerator (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Interop.JavaScript.JSImportGenerator (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Interop.LibraryImportGenerator (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Interop.SourceGeneration (3)
Marshalling\CharMarshallingGeneratorResolver.cs (1)
42NotSupportedDetails = string.Format(SR.MarshallingStringOrCharAsUndefinedNotSupported, _stringMarshallingAttribute)
Marshalling\NoMarshallingInfoErrorResolver.cs (1)
43{ SpecialTypeInfo.String, string.Format(SR.MarshallingStringOrCharAsUndefinedNotSupported, stringMarshallingAttribute) },
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Maui.Controls (5)
BindablePropertyConverter.cs (2)
41 string msg = string.Format("Can't resolve {0}", parts[0]); 68 string msg = string.Format("Can't resolve {0}", parts[0]);
BindingBase.cs (1)
151 value = string.Format(format, arg0);
FlyoutPage\FlyoutPage.cs (2)
287 throw new InvalidOperationException(string.Format("Can't change IsPresented when setting {0}", fp.FlyoutLayoutBehavior)); 293 throw new InvalidOperationException(string.Format("Can't change IsPresented when setting {0}", fp.FlyoutLayoutBehavior));
Microsoft.Maui.Controls.Xaml (1)
XamlLoader.cs (1)
52 throw new XamlParseException(string.Format("No embeddedresource found for {0}", callingType), new XmlLineInfo());
Microsoft.ML.AutoML (1)
ColumnInference\ColumnTypeInference.cs (1)
376return (hasHeader && !string.IsNullOrWhiteSpace(header)) ? header : string.Format("col{0}", column.ColumnId);
Microsoft.ML.Core (5)
CommandLine\CmdParser.cs (1)
2040tag = string.Format("[{0}]", tag);
Utilities\Contracts.cs (4)
340=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or empty", paramName))); 342=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or empty", paramName)), ctx); 356=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or white space", paramName))); 358=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or white space", paramName)), ctx);
Microsoft.ML.Core.Tests (4)
UnitTests\TestEntryPoints.cs (3)
2562loader = string.IsNullOrWhiteSpace(loader) ? "" : string.Format(",'CustomSchema': '{0}'", loader); 2564confusionMatrixPath = confusionMatrixPath != null ? string.Format(", 'ConfusionMatrix' : '{0}'", EscapePath(confusionMatrixPath)) : ""; 3317string.IsNullOrWhiteSpace(loader) ? "" : string.Format(",'CustomSchema': 'sparse+ {0}'", loader),
UnitTests\TestResourceDownload.cs (1)
121Fail(String.Format("Expected zero length error string. Received error: {0}", results.ErrorMessage));
Microsoft.ML.CpuMath (4)
src\Microsoft.ML.Core\Utilities\Contracts.cs (4)
340=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or empty", paramName))); 342=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or empty", paramName)), ctx); 356=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or white space", paramName))); 358=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or white space", paramName)), ctx);
Microsoft.ML.Data (58)
Commands\EvaluateCommand.cs (1)
84return string.Format(_nameFormat, s);
Data\Conversion.cs (3)
952public void Convert(in TS src, ref TX dst) => dst = string.Format("{0:c}", src).AsMemory(); 953public void Convert(in DT src, ref TX dst) => dst = string.Format("{0:o}", src).AsMemory(); 954public void Convert(in DZ src, ref TX dst) => dst = string.Format("{0:o}", src).AsMemory();
Data\DataViewUtils.cs (3)
38string.Format("temp_{0:000}", i) : 63string.Format("temp_{0:000}", j) : 1400var suffix = isLong ? string.Format(",...(+{0})", vbuf.Length - previewValues) : "";
DataLoadSave\Binary\BinaryLoader.cs (1)
2211string deadDisc = deadMtoc.Length > 0 ? string.Format(" ({0} dead)", deadMtoc.Length) : "";
DataLoadSave\LegacyCompositeDataLoader.cs (4)
396string.Format(TransformDirTemplate, i), curView); 498string.Format(TransformDirTemplate, acceptedIds[index]), data); 562var dirName = string.Format(TransformDirTemplate, i); 573return string.Format("xf{0:00}", index);
DataLoadSave\TransformerChain.cs (2)
197var dirName = string.Format(TransformDirTemplate, i); 213var dirName = string.Format(TransformDirTemplate, i);
Deprecated\Instances\HeaderSchema.cs (1)
249return string.Format(DefaultFmt, index);
Evaluators\AnomalyDetectionEvaluator.cs (3)
751var kFormatName = string.Format(FoldDrAtKFormat, _k); 752var pFormatName = string.Format(FoldDrAtPFormat, _p); 753var numAnomName = string.Format(FoldDrAtNumAnomaliesFormat, numAnomalies);
Evaluators\EvaluatorBase.cs (3)
320warnings.Add(string.Format("Encountered {0} unlabeled instances during testing.", NumUnlabeledInstances)); 323warnings.Add(string.Format("Encountered {0} non-finite weights during testing. These weights have been replaced with 1.", NumBadWeights)); 327warnings.Add(string.Format("The predictor produced non-finite prediction values on {0} instances during testing. " +
Evaluators\EvaluatorUtils.cs (6)
360namesArray[j] = string.Format("({0})", j).AsMemory(); 1034editor.Values[j] = string.Format("Label_{0}", j).AsMemory(); 1039var tryNaming = string.Format(metricName, name.Value); 1552sb.AppendLine(string.Format(" ({0:N4})", numFolds == 1 ? 0 : 1627rowLabelFormat = string.Format("{{1,{0}}} ||", paddingLen); 1681format = string.Format("{{0,{0}:N4}} |", colWidth + 1);
Evaluators\MulticlassClassificationEvaluator.cs (8)
134isVector: true, namePattern: new Regex(string.Format(@"^{0}(?<class>.+)", LogLoss), RegexOptions.IgnoreCase), 135groupName: "class", nameFormat: string.Format("{0} (class {{0}})", PerClassLogLoss)); 520warnings.Add(string.Format( 526warnings.Add(string.Format( 537editor.Values[i] = string.Format("(class {0})", ClassNames[i]).AsMemory(); 1001input = new ColumnCopyingTransformer(Host, (string.Format(TopKAccuracyFormat, _outputTopKAcc), MulticlassClassificationEvaluator.TopKAccuracy)).Transform(input); 1024yield return new MetricColumn("TopKAccuracy", string.Format(TopKAccuracyFormat, _outputTopKAcc)); 1029namePattern: new Regex(string.Format(@"^{0}(?<class>.+)", MulticlassClassificationEvaluator.LogLoss), RegexOptions.IgnoreCase));
Evaluators\MultiOutputRegressionEvaluator.cs (10)
82isVector: true, namePattern: new Regex(string.Format(@"{0}_(?<label>\d+)\)", L1), RegexOptions.IgnoreCase), 83groupName: "label", nameFormat: string.Format("{0} (Label_{{0}}", PerLabelL1)); 85isVector: true, namePattern: new Regex(string.Format(@"{0}_(?<label>\d+)\)", L2), RegexOptions.IgnoreCase), 86groupName: "label", nameFormat: string.Format("{0} (Label_{{0}}", PerLabelL2)); 88isVector: true, namePattern: new Regex(string.Format(@"{0}_(?<label>\d+)\)", Rms), RegexOptions.IgnoreCase), 89groupName: "label", nameFormat: string.Format("{0} (Label_{{0}}", PerLabelRms)); 91isVector: true, namePattern: new Regex(string.Format(@"{0}_(?<label>\d+)\)", Loss), RegexOptions.IgnoreCase), 92groupName: "label", nameFormat: string.Format("{0} (Label_{{0}}", PerLabelLoss)); 367editor.Values[i] = string.Format("(Label_{0})", i).AsMemory(); 719labelNames[j] = string.Format("Label_{0}", j).AsMemory();
Evaluators\RankingEvaluator.cs (7)
148namePattern: new Regex(string.Format(@"^{0}@(?<at>\d+)", Ndcg), RegexOptions.IgnoreCase), 149groupName: "at", nameFormat: string.Format("{0} @{{0}}", Ndcg)); 151namePattern: new Regex(string.Format(@"^{0}@(?<at>\d+)", Dcg), RegexOptions.IgnoreCase), 152groupName: "at", nameFormat: string.Format("{0} @{{0}}", Dcg)); 154namePattern: new Regex(string.Format(@"^{0}@(?<at>\d+)", MaxDcg), RegexOptions.IgnoreCase), 155groupName: "at", nameFormat: string.Format("{0} @{{0}}", MaxDcg)); 546editor.Values[i] = string.Format("@{0}", i + 1).AsMemory();
Scorers\ScoreSchemaFactory.cs (1)
95bufferEditor.Values[i] = string.Format("Quantile-{0}", quantiles[i]).AsMemory();
Transforms\InvertHashUtils.cs (2)
458ctx.TryProcessSubModel(string.Format(dirFormat, iinfo), 497ctx.SaveSubModel(string.Format(dirFormat, iinfo),
Transforms\Normalizer.cs (3)
625var dir = string.Format("Normalizer_{0:000}", iinfo); 646var dir = string.Format("Normalizer_{0:000}", iinfo); 696var dir = string.Format("Normalizer_{0:000}", iinfo);
Microsoft.ML.Ensemble (6)
PipelineEnsemble.cs (2)
317var error = string.Format("Expected label to have exactly 2 classes, instead has {0}", classCount); 710var key = string.Format("Partition model {0} summary:", i);
Trainer\EnsembleModelParametersBase.cs (2)
68ctx.LoadModel<IPredictor, SignatureLoadModel>(Host, out IPredictor p, string.Format(SubPredictorFmt, i)); 111ctx.SaveModel(model.Predictor, string.Format(SubPredictorFmt, i));
Trainer\EnsembleTrainerBase.cs (2)
215ch.Info("{0}| Name of Model |", string.Join("", models[0].Metrics.Select(m => string.Format("| {0} |", m.Key)))); 218ch.Info("{0}{1}", string.Join("", model.Metrics.Select(m => string.Format("| {0} |", m.Value))), model.Predictor.GetType().Name);
Microsoft.ML.EntryPoints (1)
ImportTextData.cs (1)
42var loader = host.CreateLoader(string.Format("Text{{{0}}}", input.CustomSchema), new FileHandleSource(input.InputFile));
Microsoft.ML.FastTree (5)
Dataset\DatasetUtils.cs (1)
19return string.Format(DefaultTransformFormat, featureName);
FastTree.cs (2)
838st = OptimizationAlgorithm.GetScoreTracker(string.Format("test[{0}]", t), TestSets[t], initTestScores); 3323keyValues.Add(NodeKeys.Threshold, string.Format("<= {0}", _regTree.RawThreshold(nodeId)));
TreeEnsemble\InternalTreeEnsemble.cs (1)
458return !name.IsEmpty ? name.ToString() : string.Format("f{0}", ifeat);
TreeEnsembleFeaturizer.cs (1)
480editor.Values[t] = string.Format("Tree{0:000}", t).AsMemory();
Microsoft.ML.ImageAnalytics (1)
ImageLoader.cs (1)
114throw new ArgumentException(String.Format("Directory \"{0}\" does not exist.", imageFolder));
Microsoft.ML.PerformanceTests (9)
ImageClassificationBench.cs (1)
235throw new InvalidOperationException(string.Format("File {0} already exists.", pathname));
Numeric\Ranking.cs (5)
29throw new FileNotFoundException(string.Format(Errors.DatasetNotFound, _mslrWeb10kValidate)); 32throw new FileNotFoundException(string.Format(Errors.DatasetNotFound, _mslrWeb10kTrain)); 80throw new FileNotFoundException(string.Format(Errors.DatasetNotFound, _mslrWeb10kTest)); 83throw new FileNotFoundException(string.Format(Errors.DatasetNotFound, _mslrWeb10kValidate)); 86throw new FileNotFoundException(string.Format(Errors.DatasetNotFound, _mslrWeb10kTrain));
RffTransform.cs (1)
25throw new FileNotFoundException(string.Format(Errors.DatasetNotFound, _dataPathDigits));
Text\MultiClassClassification.cs (2)
26throw new FileNotFoundException(string.Format(Errors.DatasetNotFound, _dataPathWiki)); 103throw new FileNotFoundException(string.Format(Errors.DatasetNotFound, _dataPathWiki));
Microsoft.ML.Predictor.Tests (3)
CmdLine\CmdIndenterTest.cs (1)
33return string.Format("<couldn't read {0}>", resName);
CmdLine\CmdLine.cs (1)
330return string.Format("<couldn't read {0}>", resName);
TestPredictors.cs (1)
1676string eval = string.Format("eval=Binary{{pr={{{0}}}}}", prPath);
Microsoft.ML.StandardTrainers (17)
Optimizer\OptimizationMonitor.cs (6)
78message += string.Format(" GradCheck: {0,0:0.0000e0}", Check(state)); 173message = string.Format("{0:0.000e0}", crit); 253message = string.Format("{0,0:0.0000e0}", val); 328message = string.Format("{0,0:0.0000e0}", val); 382message = string.Format("{0,0:0.0000e0}", val); 392return string.Format("Norm of grad / value < {0,0:0.00e0}", _tol);
Standard\LogisticRegression\MulticlassLogisticRegression.cs (3)
843string.Format("{0}+(Bias)", GetLabelName(classNumber)), 909writer.WriteLine(string.Format("var scores = new float[{0}];", NumberOfClasses)); 1062return _labelNames == null ? string.Format(classNumberFormat, classNumber) : _labelNames[classNumber];
Standard\ModelStatistics.cs (4)
495return string.Format("{0} ***", probZ); 497return string.Format("{0} **", probZ); 499return string.Format("{0} *", probZ); 501return string.Format("{0} .", probZ);
Standard\MulticlassClassification\OneVersusAllTrainer.cs (2)
410ctx.LoadModel<TPredictor, SignatureLoadModel>(env, out predictors[i], string.Format(SubPredictorFmt, i)); 429ctx.SaveModel(preds[i], string.Format(SubPredictorFmt, i));
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (2)
308ctx.LoadModel<TDistPredictor, SignatureLoadModel>(Host, out _predictors[index++], string.Format(SubPredictorFmt, i)); 366ctx.SaveModel(_predictors[index + i], string.Format(SubPredictorFmt, i));
Microsoft.ML.Sweeper (2)
ConfigRunner.cs (2)
121return string.Format("calledFromUnitTestSuite{0}", _calledFromUnitTestSuite ? "+" : "-"); 122return string.Format("{{{0}}}", GetFilePath(runs[i], "out"));
Microsoft.ML.TestFramework (49)
BaseTestPredictorsMaml.cs (6)
174string str = string.Format("SavePredictorAs in={{{0}}}", modelPath.Path); 181str += string.Format(" sum={{{0}}}", summaryPath); 190str += string.Format(" ini={{{0}}}", iniPath); 247args[i] = string.Format("in={0}", args[i].Substring(4)); 249args[i] = string.Format("data={0}", args[i].Substring(5)); 333settings.Add(string.Format("xf=lookup{{col=Label data={{{0}}}}}", GetDataPath(dataset.labelFilename)));
DataPipe\TestDataPipe.cs (16)
48string.Format("xf=TermLookup{{col=FileLabel:RawLabel data={{{0}}}}}", mappingPathData), 68string.Format("xf=TermLookup{{col=FileLabel:RawLabel data={{{0}}}}}", mappingPathData), 88string.Format("xf=TermLookup{{col=FileLabel:RawLabel data={{{0}}}}}", mappingPathData), 108string.Format("xf=TermLookup{{key=- col=FileLabel:RawLabel data={{{0}}}}}", mappingPathData), 133string.Format("xf=TermLookup{{key=- col=FileLabelNum:RawLabel data={{{0}}}}}", mappingPathData), 134string.Format("xf=TermLookup{{col=FileLabelKey:RawLabel data={{{0}}}}}", mappingPathData), 158string.Format("xf=TermLookup{{col=FileLabel:RawLabel data={{{0}}}}}", mappingPathData), 354string.Format(textSettings, dictFile), 363string.Format(textSettings, dictFile), 374string.Format(textSettings, terms), 384string.Format(textSettings, terms), 394string.Format(textSettings, terms), 404string.Format(textSettings, terms), 940string.Format("xf=CustomStopWords{{data={0} col=T}}", stopwordsFile), 949string.Format("xf=CustomStopWords{{stopwords={0} col=T}}", string.Join(",", stopwordsList)), 1610Assert.Equal(ex.Message, string.Format("The specified documents are all empty in column '{0}'.", colName));
Learners.cs (1)
605Trainer = new SubComponent("MultiClassNeuralNetwork", string.Format("lr=0.1 accel=sse output={0}", numOutputs)),
TestCommandBase.cs (26)
268return InitPath(string.Format("model.fold{0:000}.zip", fold)); 386args.Add(string.Format("data={{{0}}}", dataPath)); 527return string.Format("data={{{0}}}", dataPath); 746TestCore("showschema", string.Format("steps+ in={{{0}}} meta+", modelPath)); 1022string extraArgs = string.Format("test={{{0}}} tr=ft{{t=1}} lab=Lab feat=Feat norm=Warn", testData); 1291string extraArgs = string.Format("test={{{0}}} tr=ftr{{t=1 numTrees=5 dt+}} lab=Lab feat=Feat norm=Warn", testData); 1367string loadArgs = string.Format("loader=text{{header+ col=F:Num:1-9}} xf=Load{{tag=norm {0}}}", trainModel.ArgStr("in")); 1416string extraTrainTest = string.Format("seed=2 norm=Warn test={{{0}}}", pathData); 1514string extraScore = string.Format("all=+ feat=Features {0}", scorePath.ArgStr("dout")); 1561string extraScore = string.Format("all=+ feat=Features {0}", scorePath.ArgStr("dout")); 1605string extraScore = string.Format("all=+ feat=Features {0}", scorePath.ArgStr("dout")); 1667string extraArgs = string.Format("test={{{0}}} tr=AP{{shuf-}} scorer=fcc{{top=3 bottom=3}} xf=Take{{c=5}} lab=Lab feat=Feat norm=Warn", testData); 1673extraArgs = string.Format("test={{{0}}} tr=AP{{shuf-}} scorer=fcc{{top=3 bottom=3 str+}} xf=Take{{c=5}} lab=Lab feat=Feat norm=Warn", testData); 1686+ string.Format(textTransform, "Title") 1687+ string.Format(textTransform, "Body") 1716string extraScore = string.Format("all=+ feat=Features {0}", scorePath.ArgStr("dout")); 1757string extraScore = string.Format("all=+ feat=Features scorer=QuantileRegression {0}", scorePath.ArgStr("dout")); 1850string extraScore = string.Format("all=+ feat=Features {0}", scorePath.ArgStr("dout")); 1897string extraScore = string.Format("all=+ feat=Features {0}", scorePath.ArgStr("dout")); 1943string extraArgs = string.Format("tr=FastRank{{nl=5 mil=5 lr=0.25 iter=1000 pruning=+ esr=PQ esmt=0 dt+}} test={{{0}}} valid={{{0}}}", pathValid); 1957var extraArgs = string.Format("tr=mcnn{{output=10 lr=0.1 iter=1000 esr=PQ esmt=0 accel=sse}} seed=13 valid={{{0}}}", pathValid); 1979string extraScore = string.Format("all=+ feat=Features {0}", scorePath.ArgStr("dout")); 2172TestCore("showdata", dataPath, string.Format("in={{{0}}}", modelPath.Path), ""); 2189TestCore("showdata", dataPath, string.Format("in={{{0}}}", modelPath.Path), ""); 2209TestCore("showdata", dataPath, string.Format("in={{{0}}}", modelPath.Path), ""); 2227TestCore("showdata", dataPath, string.Format("in={{{0}}}", modelPath.Path), "");
Microsoft.ML.Tests (3)
DatabaseLoaderTests.cs (2)
282String.Format(command, $@"""{TestDatasets.irisDb.trainFilename}"""), 288String.Format(command, TestDatasets.irisDbSQLite.trainFilename),
ExpressionLanguageTests\ExpressionLanguageTests.cs (1)
100return string.Format("<couldn't read {0}>", resName);
Microsoft.ML.TimeSeries (2)
STL\InnerStl.cs (1)
123throw Contracts.Except(string.Format("input time series length for InnerStl is below {0}", MinTimeSeriesLength));
STL\Loess.cs (1)
53throw Contracts.Except(string.Format("input time series length for Loess is below {0}", MinTimeSeriesLength));
Microsoft.ML.Tokenizers (1)
ModelSourceGenerationContext.g.cs (1)
75throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.ML.Transforms (18)
CompositeTransformer.cs (1)
53var modelName = string.Format("Model_{0:000}", i);
Dracula\Featurizer.cs (1)
124classNames[i] = string.Format("Class{0:000}", i);
Expression\LambdaParser.cs (1)
257return string.Format("<{0}>", tid);
Expression\LexCharUtils.cs (2)
246return string.Format(@"\u{0:X4}", u); 247return string.Format(@"\U{0:X8}", u);
Expression\Tokens.cs (2)
203return string.Format(@"'\u{0:X4}'", (int)Value); 206return string.Format("'{0}'", Value);
GroupTransform.cs (1)
354var errorMessage = string.Format("Could not find column '{0}'", names[i]);
LoadTransform.cs (1)
113var criteria = string.Format(
MissingValueHandlingTransformer.cs (1)
213new KeyValuePair<string, string>(string.Format("IsMissing.{0}", column.Source), tmpIsMissingColName),
PermutationFeatureImportance.cs (2)
116msgFilteredOutFeatures.Append(string.Format("... (printing out {0} features here).\n Use 'Index' column in the report for info on what features are not evaluated.", maxReportedZeroFeatures)); 256: string.Format("f{0}", index).AsMemory();
RandomFourierFeaturizing.cs (3)
262_transformInfos[i] = new TransformInfo(Host.Register(string.Format("column{0}", i)), columns[i], 405string.Format("MatrixGenerator{0}", i)); 464_transformInfos[i].Save(ctx, string.Format("MatrixGenerator{0}", i));
Text\LdaTransform.cs (1)
782ctx.SaveTextStream(String.Format(WordTopicModelFilename, columnName), writer =>
Text\TextFeaturizingEstimator.cs (1)
741var dirName = string.Format(TransformDirTemplate, i);
Text\WordBagTransform.cs (1)
722tmpColName = string.Format("_tmp{0:000}", tmp++);
Microsoft.VisualBasic.Core (1)
src\libraries\Common\src\System\SR.vb (1)
69Return String.Format(resourceFormat, p1)
Microsoft.VisualStudio.LanguageServices (63)
CallHierarchy\Finders\AbstractCallFinder.cs (2)
98throw new Exception(string.Format(WorkspacesResources.The_symbol_0_cannot_be_located_within_the_current_solution, SymbolName)); 108throw new Exception(string.Format(WorkspacesResources.The_symbol_0_cannot_be_located_within_the_current_solution, SymbolName));
CallHierarchy\Finders\BaseMemberFinder.cs (1)
22_text = string.Format(EditorFeaturesResources.Calls_To_Base_Member_0, symbol.ToDisplayString());
CallHierarchy\Finders\FieldReferenceFinder.cs (1)
26return string.Format(EditorFeaturesResources.References_To_Field_0, SymbolName);
CallHierarchy\Finders\ImplementerFinder.cs (1)
29return string.Format(EditorFeaturesResources.Implements_0, SymbolName);
CallHierarchy\Finders\InterfaceImplementationCallFinder.cs (1)
23_text = string.Format(EditorFeaturesResources.Calls_To_Interface_Implementation_0, symbol.ToDisplayString());
CallHierarchy\Finders\MethodCallFinder.cs (1)
27return string.Format(EditorFeaturesResources.Calls_To_0, SymbolName);
ChangeSignature\ChangeSignatureDialogViewModel.cs (2)
569return string.Format(ServicesVSResources.Remove_0, AllParameters[SelectedIndex!.Value].ShortAutomationText); 582return string.Format(ServicesVSResources.Restore_0, AllParameters[SelectedIndex!.Value].ShortAutomationText);
ChangeSignature\ChangeSignatureDialogViewModel.ParameterViewModels.cs (3)
101return string.Format(ServicesVSResources.Removed_0, FullAutomationText); 136typeText = string.Format(ServicesVSResources.Warning_0_does_not_bind_to_type, Type); 145return ServicesVSResources.Added_Parameter + text + string.Format(ServicesVSResources.Inserting_call_site_value_0, CallSite);
CommonControls\NewTypeDestinationSelectionViewModel.cs (2)
127message = string.Format(ServicesVSResources.Name_is_not_a_valid_0_identifier, _languageName); 134message = string.Format(ServicesVSResources.File_name_must_have_the_0_extension, _fileExtension);
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (4)
147command.Text = string.Format(ServicesVSResources.Run_Code_Analysis_on_0, project.Name); 258var statusMessageWhileRunning = string.Format(ServicesVSResources.Running_code_analysis_for_0, progressName); 259var statusMessageOnCompleted = string.Format(ServicesVSResources.Code_analysis_completed_for_0, progressName); 260var statusMessageOnTerminated = string.Format(ServicesVSResources.Code_analysis_terminated_before_completion_for_0, progressName);
ExternalAccess\LegacyCodeAnalysis\LegacyCodeAnalysisVisualStudioSuppressionFixServiceAccessor.cs (3)
46string.Format(ServicesVSResources.Error_updating_suppressions_0, ex.Message), 68message: string.Format(ServicesVSResources.Error_updating_suppressions_0, ex.Message), 90message: string.Format(ServicesVSResources.Error_updating_suppressions_0, ex.Message),
FindReferences\Contexts\WithReferencesFindUsagesContext.cs (1)
228string.Format(ServicesVSResources.No_references_found_to_0, definition.NameDisplayParts.JoinText()))!,
InheritanceMargin\MarginGlyph\InheritanceMarginContextMenu.xaml.cs (1)
63defaultDescription: string.Format(ServicesVSResources.Navigate_to_0, viewModel.DisplayContent),
InheritanceMargin\MarginGlyph\InheritanceMarginGlyphViewModel.cs (2)
134var automationName = string.Format(ServicesVSResources._0_is_inherited, member.DisplayTexts.JoinText()); 141var automationName = string.Format(ServicesVSResources.Multiple_members_are_inherited_on_line_0, tag.LineNumber);
KeybindingReset\KeybindingResetDetector.cs (3)
251string.Format(message, ReSharperExtensionName), 255new InfoBarUI(title: string.Format(ServicesVSResources.Apply_0_keymapping_scheme, ReSharperKeyboardMappingName), 258new InfoBarUI(title: string.Format(ServicesVSResources.Apply_0_keymapping_scheme, VSCodeKeyboardMappingName),
Library\ClassView\AbstractSyncClassViewCommandHandler.cs (1)
39using var waitScope = context.OperationContext.AddScope(allowCancellation: true, string.Format(ServicesVSResources.Synchronizing_with_0, ClassView));
NavigationBar\NavigationBarClient.cs (2)
145pbstrText = string.Format(ServicesVSResources.Project_colon_0_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to, selectedItemPreviewText); 152pbstrText = string.Format(ServicesVSResources._0_Use_the_dropdown_to_view_and_navigate_to_other_items_in_this_file, selectedItemPreviewText);
Packaging\PackageInstallerServiceFactory.cs (6)
306var description = string.Format(ServicesVSResources.Installing_0, packageName); 338dte, string.Format(ServicesVSResources.Installing_0_completed, GetStatusBarText(packageName, installedVersion)), 352dte.StatusBar.Text = string.Format(ServicesVSResources.Package_install_failed_colon_0, e.Message); 378var description = string.Format(ServicesVSResources.Uninstalling_0, packageName); 400dte, string.Format(ServicesVSResources.Uninstalling_0_completed, GetStatusBarText(packageName, installedVersion)), cancellationToken).ConfigureAwait(false); 413dte.StatusBar.Text = string.Format(ServicesVSResources.Package_uninstall_failed_colon_0, e.Message);
Packaging\PackageInstallerServiceFactory_UndoRedo.cs (4)
145var description = string.Format(ServicesVSResources.Uninstalling_0, packageName); 157=> pBstr = string.Format(ServicesVSResources.Uninstall_0, packageName); 179=> pBstr = string.Format(ServicesVSResources.Install_0, packageName); 183var description = string.Format(ServicesVSResources.Installing_0, packageName);
PreviewPane\PreviewPane.xaml.cs (1)
262LearnMoreHyperlink.Inlines.Add(string.Format(ServicesVSResources.More_about_0, _id));
PreviewPane\PreviewPaneService.cs (1)
103helpLinkToolTipText: (helpLinkUri != null) ? string.Format(EditorFeaturesResources.Get_help_for_0, data.Id) : null,
ProjectSystem\VisualStudioWorkspaceImpl.AbstractAddDocumentUndoUnit.cs (1)
43=> pBstr = string.Format(FeaturesResources.Add_document_0, DocumentInfo.Name);
ProjectSystem\VisualStudioWorkspaceImpl.AbstractRemoveDocumentUndoUnit.cs (1)
48pBstr = string.Format(FeaturesResources.Remove_document_0, documentName);
ProjectSystem\VisualStudioWorkspaceImpl.AddMetadataReferenceUndoUnit.cs (1)
58pBstr = string.Format(FeaturesResources.Add_reference_to_0,
ProjectSystem\VisualStudioWorkspaceImpl.AddProjectReferenceUndoUnit.cs (1)
47pBstr = string.Format(FeaturesResources.Remove_reference_to_0, projectName);
ProjectSystem\VisualStudioWorkspaceImpl.cs (2)
398throw new ArgumentException(string.Format(ServicesVSResources.Could_not_find_project_0, projectId)); 1206message: string.Format(ServicesVSResources.Error_encountered_updating_0, documentName),
ProjectSystem\VisualStudioWorkspaceImpl.RemoveMetadataReferenceUndoUnit.cs (1)
47pBstr = string.Format(FeaturesResources.Remove_reference_to_0,
ProjectSystem\VisualStudioWorkspaceImpl.RemoveProjectReferenceUndoUnit.cs (1)
46pBstr = string.Format(FeaturesResources.Remove_reference_to_0, projectName);
PullMemberUp\MainDialog\BaseTypeTreeNodeViewModel.cs (1)
34public string Namespace => string.Format(ServicesVSResources.Namespace_0, Symbol.ContainingNamespace?.ToDisplayString() ?? "global");
PullMemberUp\WarningDialog\PullMemberUpWarningViewModel.cs (3)
29warningMessagesBuilder.Add(string.Format(ServicesVSResources._0_will_be_changed_to_abstract, options.Destination.Name)); 37warningMessagesBuilder.Add(string.Format(ServicesVSResources._0_will_be_changed_to_public, result.Member.Name)); 43warningMessagesBuilder.Add(string.Format(ServicesVSResources._0_will_be_changed_to_non_static, result.Member.Name));
Snippets\SnippetExpansionClient.cs (2)
316if (codeNode.Value.IndexOf(string.Format("{0}end{0}", delimiter), StringComparison.OrdinalIgnoreCase) != -1) 1114string.Format(ServicesVSResources.The_following_references_were_not_found_0_Please_locate_and_add_them_manually, Environment.NewLine)
StackTraceExplorer\StackTraceExplorerTab.cs (1)
17public string Header => string.Format(ServicesVSResources.Stack_trace_0, NameIndex);
Utilities\MemberSymbolViewModel.cs (1)
16public string MakeAbstractCheckBoxAutomationText => string.Format(ServicesVSResources.Make_0_abstract, Symbol.Name);
Workspace\SourceGeneratedFileManager.cs (3)
383infoToShow = (KnownMonikers.StatusError, string.Format(ServicesVSResources.The_generator_0_that_generated_this_file_has_stopped_generating_this_file, GeneratorDisplayName)); 387infoToShow = (KnownMonikers.StatusError, string.Format(ServicesVSResources.The_generator_0_that_generated_this_file_has_been_removed_from_the_project, GeneratorDisplayName)); 499windowFrame.SetProperty((int)__VSFPROPID5.VSFPROPID_OverrideToolTip, _documentIdentity.HintName + " " + string.Format(ServicesVSResources.generated_by_0_suffix, GeneratorDisplayName));
Workspace\VisualStudioAddMetadataReferenceCodeActionOperationFactoryWorkspaceService.cs (1)
79=> string.Format(ServicesVSResources.Add_a_reference_to_0, _assemblyIdentity.GetDisplayName());
Microsoft.VisualStudio.LanguageServices.CSharp (2)
ProjectSystemShim\TempPECompilerService.cs (1)
85arguments.Add(string.Format("""
SemanticSearch\SemanticSearchToolWindow.cs (1)
43Title = string.Format(ServicesVSResources.Semantic_search_0, LanguageNames.CSharp);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (40)
CallHierarchy\CSharpCallHierarchyTests.cs (40)
104testState.VerifyRoot(root, "N.C.Goo()", [string.Format(EditorFeaturesResources.Calls_To_0, "Goo")]); 105testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), ["N.G.Main()", "N.G.Main2()"]); 144testState.VerifyRoot(root, "N.C.Goo()", [string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), string.Format(EditorFeaturesResources.Calls_To_Interface_Implementation_0, "N.I.Goo()")]); 145testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), ["N.G.Main2()"]); 146testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_Interface_Implementation_0, "N.I.Goo()"), ["N.G.Main()"]); 180testState.VerifyRoot(root, "N.C.Goo()", [string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), EditorFeaturesResources.Calls_To_Overrides]); 181testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), ["N.D.Bar()"]); 216testState.VerifyRoot(root, "N.D.Goo()", [string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), string.Format(EditorFeaturesResources.Calls_To_Base_Member_0, "N.C.Goo()")]); 217testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), ["N.D.Baz()"]); 218testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_Base_Member_0, "N.C.Goo()"), ["N.D.Bar()"]); 237testState.VerifyRoot(root, "N.C.Goo()", [string.Format(EditorFeaturesResources.Calls_To_0, "Goo")]); 238testState.VerifyResultName(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), [EditorFeaturesResources.Initializers]); 257testState.VerifyRoot(root, "N.C.goo", [string.Format(EditorFeaturesResources.References_To_Field_0, "goo")]); 258testState.VerifyResult(root, string.Format(EditorFeaturesResources.References_To_Field_0, "goo"), ["N.C.Goo()"]); 286testState.VerifyRoot(root, "N.C.val.get", [string.Format(EditorFeaturesResources.Calls_To_0, "get_val")]); 287testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "get_val"), ["N.C.goo()"]); 313testState.VerifyRoot(root, "N.C.generic<T>(this string, ref T)", [string.Format(EditorFeaturesResources.Calls_To_0, "generic")]); 314testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "generic"), ["N.C.goo()"]); 343testState.VerifyRoot(root, "ConsoleApplication10.Extensions.BarString(this string)", [string.Format(EditorFeaturesResources.Calls_To_0, "BarString")]); 344testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "BarString"), ["ConsoleApplication10.Program.Main(string[])"]); 367testState.VerifyRoot(root, "System.Linq.Enumerable.Single<TSource>(this System.Collections.Generic.IEnumerable<TSource>)", [string.Format(EditorFeaturesResources.Calls_To_0, "Single")]); 368testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Single"), ["N.Program.Main(string[])"]); 407testState.VerifyRoot(root, "N.I.Goo()", [string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), string.Format(EditorFeaturesResources.Implements_0, "Goo")]); 408testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), ["N.G.Main()"]); 409testState.VerifyResult(root, string.Format(EditorFeaturesResources.Implements_0, "Goo"), ["N.C.Goo()"]); 454testState.VerifyRoot(root, "N.C.Goo()", [string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), EditorFeaturesResources.Overrides_]); 479testState.VerifyRoot(root, "Base.M()", [string.Format(EditorFeaturesResources.Calls_To_0, "M"), EditorFeaturesResources.Overrides_, EditorFeaturesResources.Calls_To_Overrides]); 507testState.VerifyRoot(root, "N.C.Goo()", [string.Format(EditorFeaturesResources.Calls_To_0, "Goo"),]); 508testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), expectedCallers: ["N.C.M()"]); 529testState.VerifyRoot(root, "N.C.Property.set", [string.Format(EditorFeaturesResources.Calls_To_0, "set_Property")]); 530testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "set_Property"), ["N.C.M()"]); 551testState.VerifyRoot(root, "Class1.Class1(string)", [string.Format(EditorFeaturesResources.Calls_To_0, ".ctor")]); 552testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, ".ctor"), ["D.M()"]); 583testState.VerifyRoot(root, "N.G.Boo()", [string.Format(EditorFeaturesResources.Calls_To_0, "Boo")]); 585testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Boo"), ["N.G.Main()"]); 619testState.VerifyRoot(root, "N.C.Goo()", [string.Format(EditorFeaturesResources.Calls_To_0, "Goo")]); 621testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), ["N.G.Main()"]);
Microsoft.VisualStudio.LanguageServices.Implementation (5)
Options\Style\NamingPreferences\SymbolSpecification\SymbolSpecificationViewModel.cs (1)
132throw new ArgumentException(string.Format("Unexpected language name: {0}", languageName), nameof(languageName));
RoslynVisualStudioWorkspace.cs (1)
64throw new InvalidOperationException(string.Format(WorkspacesResources._0_is_not_part_of_the_workspace, documentId));
SolutionExplorer\AnalyzerReferenceManager.cs (1)
96context.BrowseFilter = string.Format("{0} (*.dll)\0*.dll\0", SolutionExplorerShim.Analyzer_Files);
SolutionExplorer\AnalyzersCommandHandler.cs (2)
485notificationMessages.Add(string.Format(SolutionExplorerShim.Could_not_create_a_rule_set_for_project_0, envDteProject.Name)); 495string.Format(SolutionExplorerShim.Checking_out_0_for_editing, Path.GetFileName(pathToRuleSet)));
Microsoft.Win32.Registry (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Win32.Registry.AccessControl (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Win32.SystemEvents (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Nats.Common (1)
AppJsonContext.g.cs (1)
78throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
PresentationCore (6)
MS\Internal\FontFace\CompositeFontParser.cs (1)
344Fail(string.Format("No FontFamily element found in FontFamilyCollection that matches current OS or greater: {0}", OSVersionHelper.GetOsVersion().ToString()));
MS\Internal\Media\VisualTreeUtils.cs (2)
177Debug.Fail(String.Format("Unhandled HitTestResult type '{0}'", result.GetType().Name)); 281Debug.Fail(String.Format(
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
System\Windows\DataObjectExtensions.cs (1)
21throw new NotSupportedException(string.Format(
System\Windows\Input\Stylus\Common\DynamicRendererThreadManager.cs (1)
251Debug.WriteLine(String.Format("Dispatcher.CriticalInvokeShutdown() Failed. Error={0}", e.NativeErrorCode));
PresentationFramework (3)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
System\Windows\Application.cs (1)
971throw new ArgumentException(string.Format("ThemeMode value {0} is invalid. Use None, System, Light or Dark", value));
System\Windows\Window.cs (1)
586throw new ArgumentException(string.Format("ThemeMode value {0} is invalid. Use None, System, Light or Dark", value));
PresentationUI (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
ReachFramework (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
Roslyn.Diagnostics.Analyzers (20)
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
127failureReason = string.Format(CompilerExtensionsResources.Missing_prefix_colon_0, Prefix); 133failureReason = string.Format(CompilerExtensionsResources.Missing_suffix_colon_0, Suffix); 154? string.Format(CompilerExtensionsResources.Prefix_0_is_not_expected, prefix) 226reason = string.Format(resourceId, string.Join(", ", violations)); 266reason = string.Format(firstResourceId, Substring(name, wordSpan)); 282var restString = string.Format(restResourceId, string.Join(", ", violations));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.RepeatMatcher.cs (1)
23=> string.Format("({0}*)", matcher);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.SequenceMatcher.cs (1)
29=> string.Format("({0})", string.Join(",", (object[])matchers));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\FixAllHelper.cs (4)
19FixAllScope.Custom => string.Format(WorkspaceExtensionsResources.Fix_all_0, title), 22FixAllScope.Solution => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Solution, title), 23FixAllScope.ContainingMember => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_member, title), 24FixAllScope.ContainingType => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_type, title),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
39return semanticModel ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 63return syntaxTree ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 80return root ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (1)
44throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Project_of_ID_0_is_required_to_accomplish_the_task_but_is_not_available_from_the_solution, projectId));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (1)
99throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Compilation_is_required_to_accomplish_the_task_but_is_not_supported_by_project_0, project.Name));
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SymbolDisplayPartExtensions.cs (1)
23return new SymbolDisplayPart(SymbolDisplayPartKind.ErrorTypeName, null, string.Format("@{0}", text));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\OperatorGenerator.cs (1)
85throw new ArgumentException(string.Format(WorkspaceExtensionsResources.Cannot_generate_code_for_unsupported_operator_0, method.Name), nameof(method));
Roslyn.Test.PdbUtilities (1)
Reader\Token2SourceLineExporter.cs (1)
1294throw new Exception(string.Format("Invalid signature. (sig={0})", sig));
ScenarioTests.Common.Tests (3)
ScenarioTestTypes.cs (3)
941throw new TimeoutException(string.Format("Not completed within the alloted time of {0}", ScenarioTestHelpers.TestTimeout)); 953throw new TimeoutException(string.Format("Not completed within the alloted time of {0}", ScenarioTestHelpers.TestTimeout)); 965throw new TimeoutException(string.Format("Not completed within the alloted time of {0}", ScenarioTestHelpers.TestTimeout));
Security.TransportSecurity.IntegrationTests (6)
Https\HttpsTests.4.1.0.cs (4)
99errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString())); 138errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString())); 177errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString())); 216errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString()));
Https\HttpsTests.4.1.1.cs (1)
111String.Format("Expected SecurityNegotiationException but received {0}",
Tcp\ClientCredentialTypeTests.4.1.1.cs (1)
110String.Format("Expected SecurityNegotiationException but received {0}",
System.CodeDom (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Collections (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Collections.Concurrent (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Collections.Immutable (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Collections.NonGeneric (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Collections.Specialized (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.ComponentModel.Annotations (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.ComponentModel.Composition (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.ComponentModel.Composition.Registration (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.ComponentModel.EventBasedAsync (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.ComponentModel.Primitives (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.ComponentModel.TypeConverter (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Composition.Convention (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Composition.Hosting (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Composition.Runtime (2)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System\Composition\Hosting\Core\CompositionContract.cs (1)
111result += string.Format(" {{ {0} }}",
System.Composition.TypedParts (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Configuration.ConfigurationManager (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Console (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Data.Common (3)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System\Data\Common\DataCommonEventSource.cs (2)
31Trace(string.Format(format, arg0)); 85internal long EnterScope<T1>(string format, T1 arg1) => Log.IsEnabled() ? EnterScope(string.Format(format, arg1)) : 0;
System.Data.Odbc (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Data.OleDb (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Diagnostics.DiagnosticSource (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Diagnostics.EventLog (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Diagnostics.FileVersionInfo (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Diagnostics.PerformanceCounter (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Diagnostics.Process (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Diagnostics.TextWriterTraceListener (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Diagnostics.TraceSource (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.DirectoryServices (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.DirectoryServices.AccountManagement (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.DirectoryServices.Protocols (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Drawing.Common (1)
Special\SR.cs (1)
51: string.Format(resourceFormat, p1);
System.Drawing.Primitives (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Formats.Asn1 (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Formats.Cbor (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Formats.Nrbf (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Formats.Tar (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.Compression (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.Compression.Brotli (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.Compression.ZipFile (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.FileSystem.AccessControl (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.FileSystem.DriveInfo (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.FileSystem.Watcher (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.Hashing (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.IsolatedStorage (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.MemoryMappedFiles (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.Packaging (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.Pipelines (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.Pipes (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.Pipes.AccessControl (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.Ports (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Linq (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Linq.AsyncEnumerable (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Linq.Expressions (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Linq.Parallel (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Linq.Queryable (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Management (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Memory (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Memory.Data (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.Http (2)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
176case 1: return string.Format(s.Format, Format(s.GetArgument(0)));
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.Http.Json (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.Http.WinHttpHandler (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.HttpListener (2)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
176case 1: return string.Format(s.Format, Format(s.GetArgument(0)));
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.Mail (2)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
176case 1: return string.Format(s.Format, Format(s.GetArgument(0)));
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.NameResolution (2)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
176case 1: return string.Format(s.Format, Format(s.GetArgument(0)));
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.NetworkInformation (3)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System\Net\NetworkInformation\LinuxIPInterfaceProperties.cs (2)
78StringParsingHelpers.ParseDhcpServerAddressesFromLeasesFile(internalCollection, string.Format(NetworkFiles.DHClientInterfaceLeasesFile, _linuxNetworkInterface.Name), _linuxNetworkInterface.Name); 79StringParsingHelpers.ParseDhcpServerAddressesFromLeasesFile(internalCollection, string.Format(NetworkFiles.DHClientSecondaryInterfaceLeasesFile, _linuxNetworkInterface.Name), _linuxNetworkInterface.Name);
System.Net.Ping (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.Primitives (2)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
176case 1: return string.Format(s.Format, Format(s.GetArgument(0)));
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.Quic (2)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
176case 1: return string.Format(s.Format, Format(s.GetArgument(0)));
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.Requests (2)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
176case 1: return string.Format(s.Format, Format(s.GetArgument(0)));
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.Security (2)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
176case 1: return string.Format(s.Format, Format(s.GetArgument(0)));
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.ServerSentEvents (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.Sockets (2)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
176case 1: return string.Format(s.Format, Format(s.GetArgument(0)));
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.WebClient (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.WebHeaderCollection (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.WebSockets (2)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
176case 1: return string.Format(s.Format, Format(s.GetArgument(0)));
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.WebSockets.Client (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Numerics.Tensors (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.ObjectModel (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Private.CoreLib (2)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
src\libraries\System.Private.CoreLib\src\System\Security\CryptographicException.cs (1)
37: base(string.Format(format, insert))
System.Private.DataContractSerialization (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Private.Uri (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Private.Windows.Core (14)
System\Private\Windows\BinaryFormat\Deserializer\ClassRecordDeserializer.cs (2)
40throw new SerializationException(string.Format(SR.Serialization_TypeNotSerializable, type)); 94throw new SerializationException(string.Format(SR.Serialization_IObjectReferenceOnlyPrimivite, type));
System\Private\Windows\BinaryFormat\Deserializer\DefaultTypeResolver.cs (1)
31throw new SerializationException(string.Format(SR.Serialization_MissingType, typeName.AssemblyQualifiedName));
System\Private\Windows\BinaryFormat\Deserializer\PendingSerializationInfo.cs (1)
78throw new SerializationException(string.Format(SR.Serialization_MissingCtor, type.FullName));
System\Private\Windows\Ole\BinaryFormatUtilities.cs (1)
168throw new NotSupportedException(string.Format(SR.ClipboardOrDragDrop_UseTypedAPI, typeof(T).FullName));
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
460throw new NotSupportedException(string.Format(
System\Private\Windows\Ole\TypeBinder.cs (1)
90: throw new NotSupportedException(string.Format(
Windows\Win32\Graphics\GdiPlus\StatusExtensions.cs (1)
65return new ArgumentException(string.Format(SR.GdiplusFontFamilyNotFound, "?"));
Windows\Win32\System\Variant\VARIANT.cs (6)
230throw new ArgumentException(string.Format(SR.COM2UnhandledVT, type)); 259throw new ArgumentException(string.Format(SR.COM2UnhandledVT, arrayType)); 412throw new ArgumentException(string.Format(SR.COM2UnhandledVT, vt)); 617throw new ArgumentException(string.Format(SR.COM2UnhandledVT, arrayType)); 668_ => throw new ArgumentException(string.Format(SR.COM2UnhandledVT, vt)), 863throw new ArgumentException(string.Format(SR.COM2UnhandledVT, vt));
System.Private.Xml (2)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System\Xml\XmlConvert.cs (1)
1551return new ArgumentException(string.Format(res, arg));
System.Private.Xml.Linq (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Reflection.Context (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Reflection.DispatchProxy (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Reflection.Emit (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Reflection.Metadata (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Reflection.MetadataLoadContext (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Reflection.TypeExtensions (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Resources.Extensions (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Resources.Writer (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Runtime.Caching (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Runtime.InteropServices (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Runtime.InteropServices.JavaScript (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Runtime.Numerics (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Runtime.Serialization.Formatters (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Runtime.Serialization.Primitives (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Runtime.Serialization.Schema (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Security.AccessControl (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Security.Claims (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Security.Cryptography (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Security.Cryptography.Cose (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Security.Cryptography.Pkcs (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Security.Cryptography.ProtectedData (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Security.Cryptography.Xml (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Security.Permissions (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Security.Principal.Windows (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.ServiceModel.Federation (1)
src\Common\src\System\SR.cs (1)
41return String.Format(resourceFormat, p1);
System.ServiceModel.Http (2)
src\Common\src\System\SR.cs (1)
41return String.Format(resourceFormat, p1);
System\ServiceModel\BasicHttpSecurity.cs (1)
24Fx.Assert(BasicHttpSecurityModeHelper.IsDefined(mode), string.Format("Invalid BasicHttpSecurityMode value: {0}.", mode.ToString()));
System.ServiceModel.Http.Tests (2)
ServiceModel\SecurityBindingElementTest.cs (2)
25Assert.True(securityBindingElement == null, string.Format("securityBindingElement should be null when BasicHttpSecurityMode is '{0}'", securityMode)); 27Assert.True(binding.CanBuildChannelFactory<IRequestChannel>(), string.Format("CanBuildChannelFactory should return true for BasicHttpSecurityMode:'{0}'", securityMode));
System.ServiceModel.NetFramingBase (1)
src\Common\src\System\SR.cs (1)
41return String.Format(resourceFormat, p1);
System.ServiceModel.NetNamedPipe (1)
src\Common\src\System\SR.cs (1)
41return String.Format(resourceFormat, p1);
System.ServiceModel.NetTcp (1)
src\Common\src\System\SR.cs (1)
41return String.Format(resourceFormat, p1);
System.ServiceModel.Primitives (7)
System\IdentityModel\Selectors\SecurityTokenRequirement.cs (1)
151throw Fx.Exception.Argument(propertyName, string.Format(SRP.SecurityTokenRequirementDoesNotContainProperty, propertyName));
System\ServiceModel\Channels\AddressingVersion.cs (1)
137return string.Format(_toStringFormat, Namespace);
System\ServiceModel\Channels\CommunicationObject.cs (2)
1001Contract.Assert(false, String.Format("Type '{0}' is required to override OnCloseAsync", GetType())); 1010Contract.Assert(false, String.Format("Type '{0}' is required to override OnOpenAsync", GetType()));
System\ServiceModel\EnvelopeVersion.cs (1)
124return string.Format(_toStringFormat, Namespace);
System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (1)
57throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("authScheme", string.Format(SRP.HttpRequiresSingleAuthScheme, authScheme));
System\SRP.cs (1)
41return String.Format(resourceFormat, p1);
System.ServiceModel.Primitives.Tests (41)
Channels\CommunicationObjectTest.cs (27)
104String.Format("Expected final state to be 'Closed' but actual was '{0}", mco.State)); 189String.Format("CommunicationState after creation was '{0}' but expected 'Created'", 193String.Format("CommunicationState entering OnOpening was '{0}' but expected 'Opening'", 196String.Format("CommunicationState leaving OnOpening was '{0}' but expected 'Opening'", 200String.Format("CommunicationState entering OnOpen was '{0}' but expected 'Opening'", 203String.Format("CommunicationState leaving OnOpen was '{0}' but expected 'Opening'", 207String.Format("CommunicationState entering OnOpened was '{0}' but expected 'Opening'", 210String.Format("CommunicationState leaving OnOpened was '{0}' but expected 'Opened'", 214String.Format("CommunicationState entering OnClosing was '{0}' but expected 'Closing'", 217String.Format("CommunicationState leaving OnClosing was '{0}' but expected 'Closing'", 221String.Format("CommunicationState entering OnClose was '{0}' but expected 'Closing'", 224String.Format("CommunicationState leaving OnClose was '{0}' but expected 'Closing'", 228String.Format("CommunicationState entering OnClosed was '{0}' but expected 'Closing'", 231String.Format("CommunicationState leaving OnClosed was '{0}' but expected 'Closed'", 256String.Format("CommunicationState after creation was '{0}' but expected 'Created'", 260String.Format("CommunicationState entering OnOpening was '{0}' but expected 'Opening'", 263String.Format("CommunicationState leaving OnOpening was '{0}' but expected 'Opening'", 267String.Format("CommunicationState entering OnBeginOpen was '{0}' but expected 'Opening'", 270String.Format("CommunicationState leaving OnBeginOpen was '{0}' but expected 'Opening'", 274String.Format("CommunicationState entering OnOpened was '{0}' but expected 'Opening'", 277String.Format("CommunicationState leaving OnOpened was '{0}' but expected 'Opened'", 281String.Format("CommunicationState entering OnClosing was '{0}' but expected 'Closing'", 284String.Format("CommunicationState leaving OnClosing was '{0}' but expected 'Closing'", 288String.Format("CommunicationState entering OnBeginClose was '{0}' but expected 'Closing'", 291String.Format("CommunicationState leaving OnClose was '{0}' but expected 'Closing'", 295String.Format("CommunicationState entering OnClosed was '{0}' but expected 'Closing'", 298String.Format("CommunicationState leaving OnClosed was '{0}' but expected 'Closed'",
Channels\CustomBindingTest.cs (1)
35Assert.Fail(String.Format("Unexpected exception was caught: {0}", ex.ToString()));
Channels\CustomChannelTest.cs (6)
102String.Format("Expected factory's final state to be Closed but was '{0}'", factory.State)); 105String.Format("Expected channel's final state to be Closed but was '{0}'", ((ICommunicationObject)channel).State)); 199String.Format("Expected factory's final state to be Closed but was '{0}'", factory.State)); 202String.Format("Expected channel's final state to be Closed but was '{0}'", ((ICommunicationObject)channel).State)); 392String.Format("Expected factory's final state to be Closed but was '{0}'", factory.State)); 395String.Format("Expected channel's final state to be Closed but was '{0}'", ((ICommunicationObject)channel).State));
ServiceModel\MessageContractTest.4.4.0.cs (5)
214Assert.True(hasProperty, String.Format("Expected message property '{0}'", TestTypeConstants_4_4_0.MessageContract_Request_PropertyName)); 305Assert.True(hasHeader, String.Format("Expected header '{0}'", name)); 310errorBuilder.AppendLine(String.Format("---- Header[{0}] ----", i)); 311errorBuilder.AppendLine(String.Format("{0}", headerValues[i])); 328String.Format("The {0} element returned a null array", elementName));
ServiceModel\SynchronizedCollection.cs (2)
27Assert.True(coll.Contains(i), string.Format("coll Contains failed to find the value {0}.", i)); 73Assert.True(coll.Count == 0, string.Format("Clear operation failed!, expected: 0, actual {0}", coll.Count));
System.ServiceModel.Syndication (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.ServiceModel.UnixDomainSocket (1)
src\Common\src\System\SR.cs (1)
41return String.Format(resourceFormat, p1);
System.ServiceProcess.ServiceController (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Speech (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Text.Encoding.CodePages (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Text.Encodings.Web (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Text.Json (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Text.Json.SourceGeneration (2)
JsonSourceGenerator.Emitter.cs (1)
795string exceptionMessage = string.Format(ExceptionMessages.InvalidSerializablePropertyConfiguration, typeGenSpec.TypeRef.FullyQualifiedName);
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Text.RegularExpressions (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Text.RegularExpressions.Generator (2)
RegexGenerator.Emitter.cs (1)
5004select string.Format(format, i));
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Threading (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Threading.AccessControl (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Threading.Channels (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Threading.RateLimiting (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Threading.Tasks.Dataflow (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Threading.Tasks.Parallel (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Transactions.Local (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Windows.Controls.Ribbon (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
System.Windows.Extensions (1)
src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Windows.Forms (345)
System\Drawing\Design\UITypeEditor.cs (1)
70throw new NotSupportedException(string.Format(SR.ControlNotSupportedInTrimming, nameof(UITypeEditor)));
System\Resources\AssemblyNamesTypeResolutionService.cs (1)
156throw new ArgumentException(string.Format(SR.InvalidResXNoType, name));
System\Resources\ResXDataNode.cs (1)
618throw new TypeLoadException(string.Format(SR.TypeLoadExceptionShort, FileRefType));
System\Resources\ResXResourceReader.cs (3)
389throw new ArgumentException(string.Format(SR.InvalidResXFile, e.Message), e); 401throw new ArgumentException(string.Format(SR.InvalidResXFile, xmlEx.Message), xmlEx); 606throw new ArgumentException(string.Format(SR.InvalidResXResourceNoName, nodeInfo.ValueData));
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (1)
131throw new ArgumentException(string.Format(SR.AXDuplicateControl, GetNameForControl(control)), nameof(control));
System\Windows\Forms\ActiveX\AxHost.ConnectionPointCookie.cs (3)
39throw new InvalidCastException(string.Format(SR.AXNoSinkImplementation, eventInterface.Name)); 60throw new ArgumentException(string.Format(SR.AXNoEventInterface, eventInterface.Name)); 75throw new ArgumentException(string.Format(SR.AXNoConnectionPoint, eventInterface.Name));
System\Windows\Forms\ActiveX\AxHost.cs (41)
184throw new ThreadStateException(string.Format(SR.AXMTAThread, clsid)); 295add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseClick")); 303add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseDoubleClick")); 472add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackColorChanged")); 480add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackgroundImageChanged")); 488add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackgroundImageLayoutChanged")); 496add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BindingContextChanged")); 504add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "CursorChanged")); 515add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "EnabledChanged")); 523add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "FontChanged")); 531add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ForeColorChanged")); 539add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "RightToLeftChanged")); 547add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "TextChanged")); 558add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Click")); 566add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragDrop")); 574add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragEnter")); 582add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragOver")); 590add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragLeave")); 598add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "GiveFeedback")); 606add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "HelpRequested")); 614add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Paint")); 622add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "QueryContinueDrag")); 630add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "QueryAccessibilityHelp")); 641add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DoubleClick")); 649add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ImeModeChanged")); 660add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyDown")); 671add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyPress")); 682add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyUp")); 690add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Layout")); 701add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseDown")); 712add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseEnter")); 723add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseLeave")); 734add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseHover")); 745add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseMove")); 756add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseUp")); 767add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseWheel")); 775add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ChangeUICues")); 783add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "StyleChanged")); 1461throw new TargetInvocationException(string.Format(SR.AXNohWnd, GetType().Name), t); 1529throw new NotSupportedException(string.Format(SR.AXNohWnd, GetType().Name)); 1608throw new TargetInvocationException(string.Format(SR.AXNohWnd, GetType().Name), t);
System\Windows\Forms\ActiveX\AxHost.InvalidActiveXStateException.cs (3)
25ActiveXInvokeKind.MethodInvoke => string.Format(SR.AXInvalidMethodInvoke, _name), 26ActiveXInvokeKind.PropertyGet => string.Format(SR.AXInvalidPropertyGet, _name), 27ActiveXInvokeKind.PropertySet => string.Format(SR.AXInvalidPropertySet, _name),
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (4)
1041throw new NotSupportedException(string.Format(SR.ControlNotSupportedInTrimming, nameof(ActiveXImpl))); 1424throw new ArgumentException(string.Format(SR.AXNoConnectionPoint, eventInterface.Name)); 1441throw new NotSupportedException(string.Format(SR.ControlNotSupportedInTrimming, nameof(ActiveXImpl))); 1495throw new NotSupportedException(string.Format(SR.ControlNotSupportedInTrimming, nameof(ActiveXImpl)));
System\Windows\Forms\Application.cs (2)
1375throw new InvalidOperationException(string.Format(SR.Win32WindowAlreadyCreated, nameof(SetCompatibleTextRenderingDefault))); 1404throw new InvalidOperationException(string.Format(SR.Win32WindowAlreadyCreated, nameof(SetDefaultFont)));
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
823throw new NotSupportedException(string.Format(SR.COM2ReadonlyProperty, Name));
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (8)
289throw new ExternalException(string.Format(SR.TYPEINFOPROCESSORGetTypeAttrFailed, hr), (int)hr); 354throw new ExternalException(string.Format(SR.TYPEINFOPROCESSORGetRefTypeInfoFailed, hr), (int)hr); 368throw new ExternalException(string.Format(SR.TYPEINFOPROCESSORGetTypeAttrFailed, hr), (int)hr); 602throw new ExternalException(string.Format(SR.TYPEINFOPROCESSORGetTypeAttrFailed, hr), (int)hr); 699throw new ExternalException(string.Format(SR.TYPEINFOPROCESSORGetTypeAttrFailed, hr), (int)hr); 828throw new ExternalException(string.Format(SR.TYPEINFOPROCESSORGetTypeAttrFailed, hr), (int)hr); 898VT_USERDEFINED => throw new ArgumentException(string.Format(SR.COM2UnhandledVT, "VT_USERDEFINED")), 899_ => throw new ArgumentException(string.Format(SR.COM2UnhandledVT, ((int)vt).ToString(CultureInfo.InvariantCulture))),
System\Windows\Forms\Control.cs (4)
1395throw new Win32Exception(lastWin32Error, string.Format(SR.LoadDLLError, Libraries.Comctl32)); 2214throw new InvalidOperationException(string.Format(SR.IllegalCrossThreadCall, Name)); 4809throw new InvalidOperationException(string.Format(SR.ClosingWhileCreatingHandle, "Dispose")); 4911throw new InvalidOperationException(string.Format(SR.ClipboardOrDragDrop_CannotJsonSerializeDataObject, nameof(DoDragDrop)));
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (2)
248return (VARIANT)string.Format(SR.DataGridViewSortedAscendingAccessibleStatusFormat, owner.SortedColumn?.HeaderText); 250return (VARIANT)string.Format(SR.DataGridViewSortedDescendingAccessibleStatusFormat, owner.SortedColumn?.HeaderText);
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (9)
1012throw new ArgumentException(string.Format(SR.DataGridView_EmptyColor, "BackgroundColor")); 1014throw new ArgumentException(string.Format(SR.DataGridView_TransparentColor, "BackgroundColor")); 1240throw new ArgumentException(string.Format(SR.DataGridView_CustomCellBorderStyleInvalid, "CellBorderStyle")); 1457throw new ArgumentException(string.Format(SR.DataGridView_CustomCellBorderStyleInvalid, "ColumnHeadersBorderStyle")); 2648throw new ArgumentException(string.Format(SR.DataGridView_EmptyColor, nameof(GridColor))); 2650throw new ArgumentException(string.Format(SR.DataGridView_TransparentColor, nameof(GridColor))); 3254throw new ArgumentException(string.Format(SR.DataGridView_CustomCellBorderStyleInvalid, "RowHeadersBorderStyle")); 3759throw new InvalidOperationException(string.Format(SR.DataGridView_SelectionModeAndSortModeClash, (value).ToString())); 4970string.Format(
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (13)
87string.Format( 1695throw new ArgumentException(string.Format(SR.DataGridView_NeedColumnAutoSizingCriteria, "autoSizeColumnMode")); 1986throw new ArgumentException(string.Format(SR.DataGridView_NeedAutoSizingCriteria, "rowHeadersWidthSizeMode")); 2132throw new ArgumentException(string.Format(SR.DataGridView_NeedAutoSizingCriteria, "rowHeadersWidthSizeMode")); 2364throw new ArgumentException(string.Format(SR.DataGridView_NeedAutoSizingCriteria, "autoSizeRowsMode")); 6844throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 10778throw new InvalidOperationException(string.Format(SR.DataGridView_WeightSumCannotExceedLongMaxValue, ushort.MaxValue)); 10910throw new InvalidOperationException(string.Format(SR.DataGridView_WeightSumCannotExceedLongMaxValue, ushort.MaxValue)); 11159?? throw new InvalidOperationException(string.Format(SR.InvalidNullArgument, "e.Column")); 13528throw new InvalidOperationException(string.Format(SR.DataGridView_WeightSumCannotExceedLongMaxValue, ushort.MaxValue)); 14618: string.Format(SR.DataGridView_ErrorMessageText_WithException, e.Exception); 27455throw new ArgumentOutOfRangeException(nameof(width), width, string.Format(SR.DataGridView_SizeTooLarge, (UpperSize).ToString(CultureInfo.CurrentCulture))); 27460throw new ArgumentOutOfRangeException(nameof(height), height, string.Format(SR.DataGridView_SizeTooLarge, (UpperSize).ToString(CultureInfo.CurrentCulture)));
System\Windows\Forms\Controls\DataGridView\DataGridViewAdvancedBorderStyle.cs (7)
67throw new ArgumentException(string.Format(SR.DataGridView_AdvancedCellBorderStyleInvalid, "All")); 96throw new ArgumentException(string.Format(SR.DataGridView_AdvancedCellBorderStyleInvalid, "Bottom")); 141throw new ArgumentException(string.Format(SR.DataGridView_AdvancedCellBorderStyleInvalid, "Left")); 157throw new ArgumentException(string.Format(SR.DataGridView_AdvancedCellBorderStyleInvalid, "Left")); 197throw new ArgumentException(string.Format(SR.DataGridView_AdvancedCellBorderStyleInvalid, "Right")); 213throw new ArgumentException(string.Format(SR.DataGridView_AdvancedCellBorderStyleInvalid, "Right")); 243throw new ArgumentException(string.Format(SR.DataGridView_AdvancedCellBorderStyleInvalid, "Top"));
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (4)
359throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.DataGridViewBand_MinimumHeightSmallerThanOne, MinBandThickness)); 363throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.DataGridViewBand_MinimumWidthSmallerThanOne, MinBandThickness)); 415throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(ReadOnly))); 546throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(Selected)));
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonColumn.cs (1)
37throw new InvalidCastException(string.Format(SR.DataGridViewTypeColumn_WrongCellTemplateType, "System.Windows.Forms.DataGridViewButtonCell"));
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
2357throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedCell, "Size"));
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCollection.cs (2)
125throw new ArgumentException(string.Format(SR.DataGridViewColumnCollection_ColumnNotFound, columnName), nameof(columnName)); 140throw new ArgumentException(string.Format(SR.DataGridViewColumnCollection_ColumnNotFound, columnName), nameof(columnName));
System\Windows\Forms\Controls\DataGridView\DataGridViewCellPaintingEventArgs.cs (1)
30throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewPaintPartsCombination, nameof(paintParts)), nameof(paintParts));
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (3)
957CheckState.Checked => string.Format(SR.DataGridViewCheckBoxCellCheckedStateDescription, cellName), 958CheckState.Unchecked => string.Format(SR.DataGridViewCheckBoxCellUncheckedStateDescription, cellName), 959_ => string.Format(SR.DataGridViewCheckBoxCellIndeterminateStateDescription, cellName),
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.DataGridViewCheckBoxCellAccessibleObject.cs (1)
155throw new InvalidOperationException(string.Format(SR.DataGridViewCellAccessibleObject_OwnerWrongType, Owner is null ? "null" : Owner.GetType().Name));
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (1)
38throw new InvalidCastException(string.Format(SR.DataGridViewTypeColumn_WrongCellTemplateType, "System.Windows.Forms.DataGridViewCheckBoxCell"));
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (2)
245throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.DataGridViewColumn_DisplayIndexTooLarge, int.MaxValue)); 892throw new ArgumentException(string.Format(SR.DataGridView_NeedColumnAutoSizingCriteria, "autoSizeColumnMode"));
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (12)
413throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 552throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 602throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 640throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 646throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter))); 680throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 686throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter))); 723throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 729throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter))); 796throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 802throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter))); 1028throw new ArgumentException(string.Format(SR.DataGridViewColumnCollection_ColumnNotFound, columnName), nameof(columnName));
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
77throw new InvalidOperationException(string.Format(SR.DataGridViewColumnHeaderCell_SortModeAndSortGlyphDirectionClash, (value).ToString()));
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (3)
323throw new ArgumentOutOfRangeException(nameof(DropDownWidth), value, string.Format(SR.DataGridViewComboBoxCell_DropDownWidthOutOfRange, 1)); 1359throw new ArgumentException(string.Format(SR.DataGridViewComboBoxCell_PropertyNotFound, displayMember)); 1390throw new ArgumentException(string.Format(SR.DataGridViewComboBoxCell_PropertyNotFound, valueMember));
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxColumn.cs (1)
75throw new InvalidCastException(string.Format(SR.DataGridViewTypeColumn_WrongCellTemplateType, "System.Windows.Forms.DataGridViewComboBoxCell"));
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (2)
121set => throw new InvalidOperationException(string.Format(SR.DataGridView_HeaderCellReadOnlyProperty, "ReadOnly")); 152set => throw new InvalidOperationException(string.Format(SR.DataGridView_HeaderCellReadOnlyProperty, "Selected"));
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (1)
45throw new InvalidCastException(string.Format(SR.DataGridViewTypeColumn_WrongCellTemplateType, "System.Windows.Forms.DataGridViewImageCell"));
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkColumn.cs (1)
85throw new InvalidCastException(string.Format(SR.DataGridViewTypeColumn_WrongCellTemplateType, "System.Windows.Forms.DataGridViewLinkCell"));
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (15)
98throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(DefaultCellStyle))); 112throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(Displayed))); 130throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(DividerHeight))); 183throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(Frozen))); 192throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(Frozen))); 220throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(Height))); 233throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(InheritedStyle))); 260throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(MinimumHeight))); 278throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(ReadOnly))); 295throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(Resizable))); 309throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(Selected))); 323throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(State))); 337throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(Visible))); 346throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(Visible))); 1503throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewPaintPartsCombination, "paintParts"));
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
101return string.Format(SR.DataGridView_AccRowName, index.ToString(CultureInfo.CurrentCulture));
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (12)
883throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 933throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 939throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter))); 983throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 1042throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 1068throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 1074throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter))); 1093throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 1119throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 1125throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter))); 1144throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 1240throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeightInfoNeededEventArgs.cs (1)
43throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.DataGridViewBand_MinimumHeightSmallerThanOne, DataGridViewBand.MinBandThickness));
System\Windows\Forms\Controls\DataGridView\DataGridViewRowPrePaintEventArgs.cs (1)
72throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewPaintPartsCombination, nameof(value)), nameof(value));
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxColumn.cs (1)
28throw new InvalidCastException(string.Format(SR.DataGridViewTypeColumn_WrongCellTemplateType, "System.Windows.Forms.DataGridViewTextBoxCell"));
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (7)
186throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value))); 246throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value))); 269throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value))); 292throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value))); 315throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value))); 606string.Format(SR.DateTimePickerMaxDate, FormatDateTime(MaxDateTime))); 662string.Format(SR.DateTimePickerMinDate, FormatDateTime(MinimumDateTime)));
System\Windows\Forms\Controls\ListView\ColumnHeaderConverter.cs (1)
72throw new ArgumentException(string.Format(SR.NoDefaultConstructor, t.FullName));
System\Windows\Forms\Controls\ListView\ListView.cs (6)
739_defaultGroup ??= new ListViewGroup(string.Format(SR.ListViewGroupDefaultGroup, "1")) 3824throw new ArgumentException(string.Format(SR.OnlyOneControl, ch.Text), nameof(ch)); 4020throw new ArgumentException(string.Format(SR.OnlyOneControl, items[i].Text), nameof(items)); 4047throw new ArgumentException(string.Format(SR.OnlyOneControl, item.Text), nameof(items)); 4430? string.Format(SR.ListViewGroupCollapsedStateName, listViewGroup.Header) 4431: string.Format(SR.ListViewGroupExpandedStateName, listViewGroup.Header));
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (1)
39public ListViewGroup() : this(string.Format(SR.ListViewGroupDefaultHeader, s_nextHeader++))
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (1)
180throw new ArgumentException(string.Format(SR.OnlyOneControl, item.Text));
System\Windows\Forms\Controls\ListView\ListViewGroupItemCollection.cs (1)
68throw new ArgumentException(string.Format(SR.OnlyOneControl, item.Text), nameof(item));
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (2)
153throw new InvalidOperationException(string.Format(SR.ListViewItemAccessibilityObjectInvalidViewException, View.ToString())); 165throw new InvalidOperationException(string.Format(SR.ListViewItemAccessibilityObjectInvalidViewException, View.ToString()));
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemDetailsAccessibleObject.cs (2)
48throw new InvalidOperationException(string.Format(SR.ListViewItemAccessibilityObjectInvalidViewException, nameof(View.Details))); 75throw new InvalidOperationException(string.Format(SR.ListViewItemAccessibilityObjectInvalidViewException, nameof(View.Details)));
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemTileAccessibleObject.cs (2)
42throw new InvalidOperationException(string.Format(SR.ListViewItemAccessibilityObjectInvalidViewException, nameof(View.Tile))); 68throw new InvalidOperationException(string.Format(SR.ListViewItemAccessibilityObjectInvalidViewException, nameof(View.Tile)));
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemWithImageAccessibleObject.cs (2)
50throw new InvalidOperationException(string.Format(SR.ListViewItemAccessibilityObjectInvalidViewException, View.ToString())); 70throw new InvalidOperationException(string.Format(SR.ListViewItemAccessibilityObjectInvalidViewException, View.ToString()));
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarCellAccessibleObject.cs (1)
85return string.Format(SR.MonthCalendarWeekNumberDescription, weekNumber)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarRowAccessibleObject.cs (1)
136return string.Format(SR.MonthCalendarWeekNumberDescription, weekNumber);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarTodayLinkAccessibleObject.cs (1)
48=> string.Format(SR.MonthCalendarTodayButtonAccessibleName,
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarWeekNumberCellAccessibleObject.cs (1)
78public override string Name => string.Format(SR.MonthCalendarWeekNumberDescription, _weekNumber);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (4)
486throw new ArgumentException(string.Format(SR.MonthCalendarMaxSelCount, value.ToString("D")), nameof(value)); 910throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value)), nameof(value)); 931throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value)), nameof(value)); 952throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value)), nameof(value));
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
1693throw new ArgumentException(string.Format(SR.PropertyGridNoBitmap, tab.GetType().FullName)); 1698throw new ArgumentException(string.Format(SR.PropertyGridTabName, tab.GetType().FullName)); 2964string.Format(SR.PropertyGridPropertyValueSelectedFormat, changedItem.Value));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.HelpPaneAccessibleObject.cs (1)
63? string.Format(SR.PropertyGridHelpPaneAccessibleNameTemplate, target.AccessibilityObject.Name)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (1)
275DesignerTransaction? transaction = host?.CreateTransaction(string.Format(SR.PropertyGridResetValue, PropertyName));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (3)
409SetPropertyValue(owner, value: null, reset: true, undoText: string.Format(SR.PropertyGridResetValue, PropertyName)); 570transaction = host?.CreateTransaction(undoText ?? string.Format(SR.PropertyGridSetValue, PropertyDescriptor.Name)); 847transaction = host.CreateTransaction(string.Format(
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
350throw new InvalidCastException(string.Format(SR.PropertyGridViewEditorCreatedInvalidObject, createType));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.PropertyGridViewAccessibleObject.cs (1)
91: string.Format(
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (3)
268throw new Win32Exception(lastWin32Error, string.Format(SR.LoadDLLError, Libraries.RichEdit41)); 1843throw new ArgumentOutOfRangeException(nameof(end), end, string.Format(SR.RichTextFindEndInvalid, end)); 1853throw new ArgumentException(string.Format(SR.RichTextFindEndInvalid, end));
System\Windows\Forms\Controls\TabControl\TabControl.ControlCollection.cs (1)
25throw new ArgumentException(string.Format(SR.TabControlInvalidTabPageType, value.GetType().Name));
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
493throw new ArgumentException(string.Format(SR.TabControlTabPageNotOnTabControl, value.GetType().FullName));
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\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowControlCollection.cs (2)
78throw new NotSupportedException(string.Format(SR.TypedControlCollectionShouldBeOfType, nameof(ToolStrip))); 210throw new NotSupportedException(string.Format(SR.TypedControlCollectionShouldBeOfType, nameof(ToolStrip)));
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (2)
282throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.TrackBarLargeChangeError, value)); 485throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.TrackBarSmallChangeError, value));
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (3)
55throw new ArgumentException(string.Format(SR.OnlyOneControl, value.Text), nameof(value)); 302throw new ArgumentException(string.Format(SR.OnlyOneControl, node.Text), nameof(node)); 438throw new ArgumentException(string.Format(SR.OnlyOneControl, node.Text), nameof(node));
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1287throw new ArgumentException(string.Format(SR.WebBrowserNavigateAbsoluteUri, "uri"));
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (43)
74throw new ThreadStateException(string.Format(SR.AXMTAThread, clsidString)); 946throw new TargetInvocationException(string.Format(SR.AXNohWnd, GetType().Name), t); 989throw new TargetInvocationException(string.Format(SR.AXNohWnd, GetType().Name), t); 1387add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackgroundImageLayoutChanged")); 1395add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Enter")); 1403add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Leave")); 1411add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseCaptureChanged")); 1419add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseClick")); 1427add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseDoubleClick")); 1435add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackColorChanged")); 1443add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackgroundImageChanged")); 1451add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BindingContextChanged")); 1459add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "CursorChanged")); 1467add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "EnabledChanged")); 1475add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "FontChanged")); 1483add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ForeColorChanged")); 1491add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "RightToLeftChanged")); 1499add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "TextChanged")); 1507add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Click")); 1515add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragDrop")); 1523add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragEnter")); 1531add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragOver")); 1539add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragLeave")); 1547add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "GiveFeedback")); 1556add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "HelpRequested")); 1564add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Paint")); 1572add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "QueryContinueDrag")); 1580add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "QueryAccessibilityHelp")); 1588add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DoubleClick")); 1596add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ImeModeChanged")); 1604add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyDown")); 1612add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyPress")); 1620add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyUp")); 1628add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Layout")); 1636add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseDown")); 1644add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseEnter")); 1652add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseLeave")); 1660add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseHover")); 1668add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseMove")); 1676add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseUp")); 1684add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseWheel")); 1692add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ChangeUICues")); 1700add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "StyleChanged"));
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (1)
304throw new ArgumentException(string.Format(SR.AXDuplicateControl, GetNameForControl(ctl)), nameof(ctl));
System\Windows\Forms\DataBinding\Binding.BindToObject.cs (1)
223throw new ArgumentException(string.Format(SR.ListBindingBindField, dataField), "dataMember");
System\Windows\Forms\DataBinding\Binding.cs (2)
528throw new ArgumentException(string.Format(SR.ListBindingBindProperty, PropertyName), nameof(PropertyName)); 533throw new ArgumentException(string.Format(SR.ListBindingBindPropertyReadOnly, PropertyName), nameof(PropertyName));
System\Windows\Forms\DataBinding\BindingContext.cs (2)
267?? throw new ArgumentException(string.Format(SR.RelatedListManagerChild, dataField)); 307throw new ArgumentException(string.Format(SR.DataBindingCycle, binding.PropertyName), nameof(propBinding));
System\Windows\Forms\DataBinding\BindingSource.cs (3)
651?? throw new ArgumentException(string.Format(SR.DataSourceDataMemberPropNotFound, propertyName)); 1570throw new InvalidOperationException(string.Format( 1609throw new InvalidOperationException(string.Format(
System\Windows\Forms\DataBinding\CurrencyManager.cs (3)
188throw new ArgumentException(string.Format(SR.ListManagerSetDataSource, tempList.GetType().FullName), nameof(dataSource)); 258throw new IndexOutOfRangeException(string.Format(SR.ListManagerNoValue, index.ToString(CultureInfo.CurrentCulture))); 267throw new IndexOutOfRangeException(string.Format(SR.ListManagerNoValue, index.ToString(CultureInfo.CurrentCulture)));
System\Windows\Forms\DataBinding\ListBindingHelper.cs (2)
49?? throw new ArgumentException(string.Format(SR.DataSourceDataMemberPropNotFound, dataMember)); 187listAccessors2[0] = dmProp ?? throw new ArgumentException(string.Format(SR.DataSourceDataMemberPropNotFound, dataMember));
System\Windows\Forms\DataBinding\RelatedCurrencyManager.cs (1)
38throw new ArgumentException(string.Format(SR.RelatedListManagerChild, dataField));
System\Windows\Forms\DataBinding\RelatedPropertyManager.cs (1)
27throw new ArgumentException(string.Format(SR.RelatedListManagerChild, dataField));
System\Windows\Forms\Design\ComponentEditorForm.ComponentEditorPageSite.cs (1)
43throw new TargetInvocationException(string.Format(SR.ExceptionCreatingCompEditorControl, e), e.InnerException);
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
226caption = string.Format(SR.ComponentEditorFormProperties, site.Name);
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (2)
692string.Format(SR.FileDialogFileNotFound, fileName), 730throw new ThreadStateException(string.Format(SR.DebuggingExceptionOnly, SR.ThreadMustBeSTA));
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (1)
450throw new ThreadStateException(string.Format(SR.DebuggingExceptionOnly, SR.ThreadMustBeSTA));
System\Windows\Forms\Dialogs\CommonDialogs\OpenFileDialog.cs (1)
124throw new InvalidOperationException(string.Format(SR.FileDialogInvalidFileName, FileName));
System\Windows\Forms\Dialogs\CommonDialogs\SaveFileDialog.cs (3)
89string.Format(SR.FileDialogCreatePrompt, fileName), 101string.Format(SR.FileDialogOverwritePrompt, fileName), 150throw new InvalidOperationException(string.Format(SR.FileDialogInvalidFileName, FileName));
System\Windows\Forms\Dialogs\MessageBox.cs (1)
470throw new Win32Exception(lastWin32Error, string.Format(SR.LoadDLLError, Libraries.Shell32));
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (5)
217throw new InvalidOperationException(string.Format(SR.IllegalCrossThreadCall, nameof(TaskDialog))); 553throw new InvalidOperationException(string.Format(SR.TaskDialogInstanceAlreadyShown, nameof(TaskDialog))); 615throw new InvalidOperationException(string.Format( 1213throw new InvalidOperationException(string.Format( 1637throw new InvalidOperationException(string.Format(
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogPage.cs (1)
699throw new InvalidOperationException(string.Format(
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (2)
159messageText = string.Format(messageFormat, Trim(messageText)); 243Text = string.Format(SR.ExDlgCaption2, activeForm.Text);
System\Windows\Forms\Form.cs (12)
3245throw new InvalidOperationException(string.Format(SR.ClosingWhileCreatingHandle, "Close")); 5445throw new InvalidOperationException(string.Format(SR.OwnsSelfOrOwner, nameof(Show))); 5450throw new InvalidOperationException(string.Format(SR.ShowDialogOnVisible, nameof(Show))); 5455throw new InvalidOperationException(string.Format(SR.ShowDialogOnDisabled, nameof(Show))); 5460throw new InvalidOperationException(string.Format(SR.ShowDialogOnNonTopLevel, nameof(Show))); 5491throw new ArgumentException(string.Format(SR.OwnsSelfOrOwner, nameof(Show)), nameof(owner)); 5666throw new ArgumentException(string.Format(SR.OwnsSelfOrOwner, nameof(ShowDialog)), nameof(owner)); 5671throw new InvalidOperationException(string.Format(SR.ShowDialogOnVisible, nameof(ShowDialog))); 5676throw new InvalidOperationException(string.Format(SR.ShowDialogOnDisabled, nameof(ShowDialog))); 5681throw new InvalidOperationException(string.Format(SR.ShowDialogOnNonTopLevel, nameof(ShowDialog))); 5686throw new InvalidOperationException(string.Format(SR.ShowDialogOnModal, nameof(ShowDialog))); 5745throw new ArgumentException(string.Format(SR.OwnsSelfOrOwner, nameof(ShowDialog)), nameof(owner));
System\Windows\Forms\Help\Help.cs (1)
196Uri? file = Resolve(url) ?? throw new ArgumentException(string.Format(SR.HelpInvalidURL, url), nameof(url));
System\Windows\Forms\ImageIndexConverter.cs (1)
97throw new NotSupportedException(string.Format(SR.ControlNotSupportedInTrimming, nameof(ImageIndexConverter)));
System\Windows\Forms\Input\Cursor.cs (3)
41throw new Win32Exception(string.Format(SR.FailedToLoadCursor, Marshal.GetLastWin32Error())); 61throw new ArgumentException(string.Format(SR.InvalidGDIHandle, (typeof(Cursor)).Name), nameof(handle)); 430throw new Win32Exception(string.Format(SR.FailedToLoadCursor, Marshal.GetLastWin32Error()));
System\Windows\Forms\Input\InputLanguageChangedEventArgs.cs (1)
20?? throw new ArgumentException(string.Format(SR.InputLanguageCultureNotFound, culture), nameof(culture));
System\Windows\Forms\Input\InputLanguageChangingEventArgs.cs (1)
21?? throw new ArgumentException(string.Format(SR.InputLanguageCultureNotFound, culture), nameof(culture));
System\Windows\Forms\Input\KeysConverter.cs (1)
91throw new InvalidOperationException(string.Format(SR.ResourceValueNotFound, resourceName));
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\Forms\Layout\LayoutEngine.cs (1)
14throw new NotSupportedException(string.Format(SR.LayoutEngineUnsupportedType, obj.GetType()));
System\Windows\Forms\MDI\MDIWindowDialog.cs (1)
88throw new NotSupportedException(string.Format(SR.ControlNotSupportedInTrimming, nameof(MdiWindowDialog)));
System\Windows\Forms\OLE\DataObjectExtensions.cs (1)
17throw new NotSupportedException(string.Format(
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (1)
143throw new ArgumentException(string.Format(SR.OnlyOneControl, style.GetType().Name), nameof(style));
System\Windows\Forms\Printing\PrintDialog.cs (6)
275throw new ArgumentException(string.Format(SR.PDpageOutOfRange, "FromPage")); 281throw new ArgumentException(string.Format(SR.PDpageOutOfRange, "ToPage")); 286throw new ArgumentException(string.Format(SR.PDpageOutOfRange, "FromPage")); 389throw new ArgumentException(string.Format(SR.PDpageOutOfRange, "FromPage")); 395throw new ArgumentException(string.Format(SR.PDpageOutOfRange, "ToPage")); 400throw new ArgumentException(string.Format(SR.PDpageOutOfRange, "FromPage"));
System\Windows\Forms\Rendering\GdiCache.cs (1)
73throw new InvalidOperationException(string.Format(SR.InvalidHdcType, type));
System\Windows\Forms\SendKeys\SendKeys.cs (6)
406throw new ArgumentException(string.Format(SR.InvalidSendKeysString, keys)); 516throw new ArgumentException(string.Format(SR.InvalidSendKeysKeyword, keys[(i + 1)..j])); 526throw new ArgumentException(string.Format(SR.InvalidSendKeysString, keys)); 537throw new ArgumentException(string.Format(SR.InvalidSendKeysString, keys)); 548throw new ArgumentException(string.Format(SR.InvalidSendKeysString, keys)); 590throw new ArgumentException(string.Format(SR.InvalidSendKeysString, keys));
System\Windows\Forms\ToolTip\ToolTip.cs (1)
246throw new ArgumentException(string.Format(SR.ToolTipEmptyColor, nameof(ForeColor)), nameof(value));
System.Windows.Forms.Analyzers (1)
System\Windows\Forms\Analyzers\Diagnostics\DiagnosticDescriptorHelper.cs (1)
26string.Format(DiagnosticIDs.UrlFormat, id.ToLowerInvariant()),
System.Windows.Forms.Analyzers.CSharp (1)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ProjectFileReader.FontConverter.cs (1)
131_ => throw new ArgumentException(string.Format(SR.InvalidArgumentValueFontConverter, units), nameof(units)),
System.Windows.Forms.Design (133)
System\ComponentModel\Design\BinaryEditor.BinaryUI.cs (1)
121RTLAwareMessageBox.Show(null, string.Format(SR.BinaryEditorFileError, x.Message),
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (4)
59Text = string.Format(SR.CollectionEditorCaption, CollectionItemType.Name); 864_propertiesLabel.Text = string.Format(SR.CollectionEditorProperties, GetDisplayText((ListItem?)_listBox.SelectedItem)); 897throw new InvalidOperationException(string.Format(SR.CollectionEditorCantRemoveItem, GetDisplayText(item))); 1061_propertiesLabel.Text = string.Format(SR.CollectionEditorProperties, GetDisplayText((ListItem)_listBox.SelectedItem));
System\ComponentModel\Design\CollectionEditor.cs (1)
244transaction = host?.CreateTransaction(string.Format(SR.CollectionEditorUndoBatchDesc, CollectionItemType.Name));
System\ComponentModel\Design\ComponentDesigner.cs (1)
291t = host.CreateTransaction(string.Format(SR.ComponentDesignerAddEvent, defaultEvent.Name));
System\ComponentModel\Design\DesignerActionMethodItem.cs (1)
120throw new InvalidOperationException(string.Format(SR.DesignerActionPanel_CouldNotFindMethod, MemberName));
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
46ActionPanel.ShowError(string.Format(SR.DesignerActionPanel_ErrorActivatingDropDown, ex.Message));
System\ComponentModel\Design\DesignerActionUI.cs (3)
340string.Format(SR.DesignerActionPanel_DefaultPanelTitle, behaviorWithPanelToRegen.RelatedComponent.GetType().Name), 708_designerActionHost.AccessibleName = string.Format(SR.DesignerActionPanel_DefaultPanelTitle, relatedComponent.GetType().Name); 709panel.AccessibleName = string.Format(SR.DesignerActionPanel_DefaultPanelTitle, relatedComponent.GetType().Name);
System\ComponentModel\Design\DesignerHost.cs (5)
250throw new InvalidOperationException(string.Format(SR.DesignerHostNoTopLevelDesigner, component.GetType().FullName)) 352e = new InvalidOperationException(string.Format(SR.DesignSurfaceFatalError, e), e); 964throw new InvalidOperationException(string.Format(SR.DesignerHostFailedComponentCreate, componentType.Name)) 1003throw new InvalidOperationException(string.Format(SR.DesignerHostCantDestroyInheritedComponent, name)) 1017using (t = ((IDesignerHost)this).CreateTransaction(string.Format(SR.DesignerHostDestroyComponentTransaction, name)))
System\ComponentModel\Design\DesignerHost.Site.cs (1)
241throw new InvalidOperationException(string.Format(SR.DesignerHostDuplicateName, value))
System\ComponentModel\Design\DesignSurfaceServiceContainer.cs (1)
46throw new InvalidOperationException(string.Format(SR.DesignSurfaceServiceIsFixed, serviceType.Name));
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (2)
136throw new InvalidOperationException(string.Format(SR.EventBindingServiceEventReadOnly, Name)) 182throw new InvalidOperationException(string.Format(SR.EventBindingServiceMissingService, nameof(IDictionaryService)))
System\ComponentModel\Design\ExceptionCollection.cs (1)
22throw new ArgumentException(string.Format(SR.ExceptionCollectionInvalidArgument, nameof(Exception)), nameof(exceptions));
System\ComponentModel\Design\ExtenderProviderService.cs (1)
36throw new ArgumentException(string.Format(SR.ExtenderProviderServiceDuplicateProvider, provider), nameof(provider));
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (1)
372throw new InvalidOperationException(string.Format(SR.BasicDesignerLoaderMissingService, typeof(T).Name))
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (3)
299manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerTypeNotFound, typeName), manager)); 309string.Format(SR.SerializerNoSerializerForComponent, type.FullName), manager)); 395manager.ReportError(new CodeDomSerializerException(string.Format(SR.CodeDomComponentSerializationServiceDeserializationError, name), manager));
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (5)
282throw new InvalidOperationException(string.Format(SR.CodeDomDesignerLoaderSerializerTypeNotFirstType, typeDeclaration.Name)); 300throw new InvalidOperationException(string.Format(SR.CodeDomDesignerLoaderSerializerTypeNotFirstType, typeDeclaration.Name)); 353ex = new InvalidOperationException(string.Format(SR.CodeDomDesignerLoaderNoRootSerializerWithFailures, builder)) 1215Exception ex = new ArgumentException(string.Format(SR.CodeDomDesignerLoaderInvalidIdentifier, name)) 1258Exception ex = new ArgumentException(string.Format(SR.CodeDomDesignerLoaderDupComponentName, name))
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.cs (1)
76?? throw new NotSupportedException(string.Format(SR.LocalizationProviderMissingService, nameof(IExtenderProviderService)));
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (1)
254throw new NotSupportedException(string.Format(SR.SerializerMemberTypeNotSerializable, member.GetType().FullName));
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (14)
131Error(manager, string.Format(SR.TypeNotFoundInTargetFramework, instance.GetType().FullName), SR.SerializerUndeclaredName); 156Error(manager, string.Format(SR.TypeNotFoundInTargetFramework, type.FullName), SR.SerializerUndeclaredName); 317Error(manager, string.Format(SR.TypeNotFoundInTargetFramework, type.FullName), SR.SerializerUndeclaredName); 765Error(manager, string.Format(SR.SerializerTypeNotFound, objectCreateEx.CreateType.BaseType), SR.SerializerTypeNotFound); 775Error(manager, string.Format(SR.SerializerUndeclaredName, argumentReferenceEx.ParameterName), SR.SerializerUndeclaredName); 796Error(manager, string.Format(SR.SerializerUndeclaredName, fieldReferenceEx.FieldName), SR.SerializerUndeclaredName); 830Error(manager, string.Format(SR.SerializerUndeclaredName, fieldReferenceEx.FieldName), SR.SerializerUndeclaredName); 837Error(manager, string.Format(SR.SerializerFieldTargetEvalFailed, fieldReferenceEx.FieldName), SR.SerializerFieldTargetEvalFailed); 924Error(manager, string.Format(SR.SerializerUndeclaredName, variableReferenceEx.VariableName), SR.SerializerUndeclaredName); 1009Error(manager, string.Format(SR.SerializerTypeNotFound, arrayCreateEx.CreateType.BaseType), SR.SerializerTypeNotFound); 1150Error(manager, string.Format(SR.SerializerTypeNotFound, type), SR.SerializerTypeNotFound); 2414manager.ReportError(string.Format(SR.SerializerLostStatements, valueName)); 2420manager.ReportError(string.Format(SR.SerializerNoSerializerForComponent, value is null ? "(null)" : value.GetType().FullName)); 2761manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerUndeclaredName, variableReferenceEx.VariableName), manager));
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (1)
392manager.ReportError(string.Format(SR.SerializerInvalidArrayRank, array.Rank.ToString(CultureInfo.InvariantCulture)));
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (2)
751Exception ex = new SerializationException(string.Format(SR.SerializationManagerDuplicateComponentDecl, name)) 931throw new ArgumentException(string.Format(SR.SerializationManagerNameInUse, name), nameof(name));
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (1)
217manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerNoSerializerForComponent, property.PropertyType.FullName), manager));
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (1)
262? new SerializationException(string.Format(SR.SerializerResourceExceptionInvariant, message), e)
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (4)
71Error(manager, string.Format(SR.SerializerTypeNotFound, baseTypeName), SR.SerializerTypeNotFound); 76Error(manager, string.Format(SR.SerializerTypeAbstract, baseType.FullName), SR.SerializerTypeAbstract); 280manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerTypeNotFound, typeName), manager)); 296manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerNoSerializerForComponent, type.FullName), manager));
System\ComponentModel\Design\ToolStripContainerActionList.cs (1)
144DesignerTransaction? changeParent = _designerHost.CreateTransaction(string.Format(SR._0_reparent_controls_transaction, nameof(ToolStripContainer)));
System\ComponentModel\Design\UndoEngine.cs (4)
288Exception ex = new InvalidOperationException(string.Format(SR.UndoEngineMissingService, serviceType.Name)) 338name = string.Format(SR.UndoEngineComponentAdd1, GetName(e.Component, true)); 382name = string.Format(SR.UndoEngineComponentChange1, GetName(e.Component, true)); 430name = string.Format(SR.UndoEngineComponentRemove1, GetName(e.Component, true));
System\Resources\Tools\StronglyTypedResourceBuilder.cs (4)
339throw new ArgumentException(string.Format(SR.InvalidIdentifier, className)); 654commentString = string.Format(SR.StringPropertyTruncatedComment, commentString[..DocCommentLengthThreshold]); 767text = string.Format(SR.StringPropertyComment, valueAsString); 775text = string.Format(SR.NonStringPropertyComment, typeName);
System\Windows\Forms\Design\BaseContextMenuStrip.cs (1)
283Text = string.Format(SR.ToolStripSelectMenuItem, compName);
System\Windows\Forms\Design\Behavior\DesignerActionBehavior.cs (1)
64dap.UpdateTasks(lists, [], string.Format(SR.DesignerActionPanel_DefaultPanelTitle, relatedComponent.GetType().Name), null);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (2)
371transDesc = string.Format(performCopy ? SR.BehaviorServiceCopyControl : SR.BehaviorServiceMoveControl, name); 375transDesc = string.Format(performCopy ? SR.BehaviorServiceCopyControls : SR.BehaviorServiceMoveControls, _dragComponents.Length);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (2)
245locString = string.Format(SR.BehaviorServiceResizeControl, name); 249locString = string.Format(SR.BehaviorServiceResizeControls, _resizeComponents.Length);
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (2)
203return string.Format( 208return string.Format(
System\Windows\Forms\Design\CommandSet.CommandSetItem.cs (1)
185_uiService?.ShowError(e, string.Format(SR.CommandSetError, e.Message));
System\Windows\Forms\Design\CommandSet.cs (12)
784? host.CreateTransaction(string.Format(SR.DragDropMoveComponents, SelectionService.SelectionCount)) 785: host.CreateTransaction(string.Format(SR.DragDropMoveComponent, comp.Site?.Name)); 990trans = host?.CreateTransaction(string.Format(SR.CommandSetAlignByPrimary, comps.Count)); 1138trans = host.CreateTransaction(string.Format(SR.CommandSetAlignToGrid, selectedComponents.Count)); 1262? string.Format(SR.WindowsFormsCommandCenterX, selectedComponents.Count) 1263: string.Format(SR.WindowsFormsCommandCenterY, selectedComponents.Count); 1474trans = host.CreateTransaction(string.Format(SR.CommandSetCutMultiple, cutCount)); 1596string desc = string.Format(SR.CommandSetDelete, comps.Count); 2320trans = host?.CreateTransaction(string.Format(SR.CommandSetSize, selectedObjects.Length)); 2399trans = host.CreateTransaction(string.Format(SR.CommandSetSizeToGrid, selectedObjects.Length)); 2483trans = host.CreateTransaction(string.Format(SR.CommandSetPaste, 0)); 2536trans = host.CreateTransaction(string.Format(SR.CommandSetFormatSpacing, selectedObjects.Length));
System\Windows\Forms\Design\ComponentTray.cs (1)
2496trans = host.CreateTransaction(string.Format(SR.WindowsFormsAddEvent, defaultEvent.Name));
System\Windows\Forms\Design\ControlCommandSet.cs (5)
597trans = host.CreateTransaction(string.Format(SR.DragDropSizeComponents, selSvc.SelectionCount)); 601trans = host.CreateTransaction(string.Format(SR.DragDropSizeComponent, comp.Site.Name)); 859trans = host.CreateTransaction(string.Format(SR.CommandSetLockControls, components.Count)); 992batchString = string.Format(SR.CommandSetBringToFront, selectedComponents.Length); 996batchString = string.Format(SR.CommandSetSendToBack, selectedComponents.Length);
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (3)
872errorString = string.Format(SR.DataGridViewDuplicateColumnName, name); 880errorString = string.Format(SR.DesignerHostDuplicateName, name); 889errorString = string.Format(SR.CodeDomDesignerLoaderInvalidIdentifier, name);
System\Windows\Forms\Design\DataGridViewDesigner.DataGridViewChooseDataSourceActionList.cs (1)
50DesignerTransaction? transaction = host?.CreateTransaction(string.Format(SR.DataGridViewChooseDataSourceTransactionString, dataGridView.Name));
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1277DesignerTransaction? trans = _designerHost.CreateTransaction(string.Format(SR.DesignerBatchCreateTool, uniqueSiteName));
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (3)
249?? throw new ArgumentException(string.Format(SR.AXNotRegistered, controlKey)); 317throw new ArgumentException(string.Format(SR.AXNotRegistered, controlKey)); 335throw new ArgumentException(string.Format(SR.AXNotRegistered, controlKey));
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (2)
346return string.Format(performCopy ? SR.BehaviorServiceCopyControl : SR.BehaviorServiceMoveControl, name); 349return string.Format(performCopy ? SR.BehaviorServiceCopyControls : SR.BehaviorServiceMoveControls, _dragControls.Count);
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (1)
231trans = host.CreateTransaction(string.Format(SR.DragDropMoveComponents, _components.Length));
System\Windows\Forms\Design\OleDragDropHandler.cs (2)
155trans = host?.CreateTransaction(string.Format(SR.DesignerBatchCreateTool, tool)); 524trans = host.CreateTransaction(string.Format(SR.DragDropDragComponents, components.Length));
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
1276ReParentControls(Control, selectedControls, string.Format(SR.ParentControlDesignerLassoShortcutRedo, Control.Site.Name), host);
System\Windows\Forms\Design\SelectionUIService.cs (7)
260transactionName = string.Format(SR.DragDropMoveComponents, objects.Length); 277transactionName = string.Format(SR.DragDropMoveComponent, name); 284transactionName = string.Format(SR.DragDropSizeComponents, objects.Length); 301transactionName = string.Format(SR.DragDropSizeComponent, name); 306transactionName = string.Format(SR.DragDropDragComponents, objects.Length); 1123trans = _host.CreateTransaction(string.Format(SR.DragDropMoveComponents, components.Length)); 1129trans = _host.CreateTransaction(string.Format(SR.DragDropMoveComponent, comp.Site!.Name));
System\Windows\Forms\Design\TabControlDesigner.cs (2)
123throw new ArgumentException(string.Format(SR.TabControlInvalidTabPageType, tool.DisplayName)); 245t = host.CreateTransaction(string.Format(SR.TabControlAddTab, Component.Site.Name));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (8)
66throw new ArgumentException(string.Format(SR.TableLayoutPanelDesignerInvalidColumnRowCount, "RowCount")); 82throw new ArgumentException(string.Format(SR.TableLayoutPanelDesignerInvalidColumnRowCount, "ColumnCount")); 505trans = host.CreateTransaction(string.Format(SR.BehaviorServiceCopyControl, control.Site.Name)); 552trans = host.CreateTransaction(string.Format(SR.BehaviorServiceMoveControl, control.Site.Name)); 1637string.Format(isRow 1752using DesignerTransaction t = host.CreateTransaction(string.Format( 1875using DesignerTransaction t = host.CreateTransaction(string.Format( 1972using DesignerTransaction t = host.CreateTransaction(string.Format(SR.TableLayoutPanelDesignerChangeSizeTypeUndoUnit, Table.Site.Name));
System\Windows\Forms\Design\ToolStripDesigner.cs (3)
527DesignerTransaction outerTransaction = _host.CreateTransaction(string.Format(SR.ToolStripAddingItem, t.Name)); 1867transDesc = string.Format(copy ? SR.BehaviorServiceCopyControl : SR.BehaviorServiceMoveControl, name); 1871transDesc = string.Format(copy ? SR.BehaviorServiceCopyControls : SR.BehaviorServiceMoveControls, dragComponents.Count);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (2)
666transDesc = string.Format(copy ? SR.BehaviorServiceCopyControl : SR.BehaviorServiceMoveControl, name); 670transDesc = string.Format(copy ? SR.BehaviorServiceCopyControls : SR.BehaviorServiceMoveControls, dragComponents.Count);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
2660transDesc = string.Format(copy ? SR.BehaviorServiceCopyControl : SR.BehaviorServiceMoveControl, name); 2664transDesc = string.Format(copy ? SR.BehaviorServiceCopyControls : SR.BehaviorServiceMoveControls, dragComponents.Count);
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (2)
451_label2.Text = string.Format(SR.CollectionEditorProperties, _treeView1.SelectedNode.Text); 488_label2.Text = string.Format(SR.CollectionEditorProperties, node.Name.ToString());
System.Windows.Forms.Primitives (4)
System\ServiceExtensions.cs (1)
88?? throw new InvalidOperationException(string.Format(SR.General_MissingService, typeof(TInterface).FullName))
System\Windows\Forms\Internals\ScaleHelper.DpiAwarenessScope.cs (3)
64throw new Win32Exception(Marshal.GetLastWin32Error(), string.Format(SR.Win32SetThreadsDpiHostingBehaviorFailed, behavior)); 79throw new Win32Exception(Marshal.GetLastWin32Error(), string.Format(SR.Win32SetThreadsDpiHostingBehaviorFailed, _originalDpiHostingBehavior)); 85throw new Win32Exception(Marshal.GetLastWin32Error(), string.Format(SR.Win32SetThreadsDpiContextFailed, _originalDpiAwarenessContext));
System.Windows.Forms.Tests (23)
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (1)
1485Assert.Equal($"{string.Format(SR.DataGridView_AccRowName, expectedIndex)}, Not sorted.", dataGridView.Rows[0].Cells[0].AccessibilityObject.Name);
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (14)
73Assert.Equal(string.Format(SR.DataGridView_AccRowName, -1), accessibilityObject.Name); 90Assert.Equal(string.Format(SR.DataGridView_AccRowName, 1), accessibleObject1.Name); 91Assert.Equal(string.Format(SR.DataGridView_AccRowName, 2), accessibleObject2.Name); 92Assert.Equal(string.Format(SR.DataGridView_AccRowName, 3), accessibleObject3.Name); 111Assert.Equal(string.Format(SR.DataGridView_AccRowName, -1), accessibleObject1.Name); 112Assert.Equal(string.Format(SR.DataGridView_AccRowName, 1), accessibleObject2.Name); 113Assert.Equal(string.Format(SR.DataGridView_AccRowName, 2), accessibleObject3.Name); 132Assert.Equal(string.Format(SR.DataGridView_AccRowName, 1), accessibleObject1.Name); 133Assert.Equal(string.Format(SR.DataGridView_AccRowName, -1), accessibleObject2.Name); 134Assert.Equal(string.Format(SR.DataGridView_AccRowName, 2), accessibleObject3.Name); 153Assert.Equal(string.Format(SR.DataGridView_AccRowName, 1), accessibleObject1.Name); 154Assert.Equal(string.Format(SR.DataGridView_AccRowName, 2), accessibleObject2.Name); 155Assert.Equal(string.Format(SR.DataGridView_AccRowName, -1), accessibleObject3.Name); 2401Assert.Equal(string.Format(SR.DataGridView_AccRowName, expectedIndex), dataGridView.Rows[0].AccessibilityObject.Name);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarTodayLinkAccessibleObjectTests.cs (1)
81string expected = string.Format(SR.MonthCalendarTodayButtonAccessibleName,
System\Windows\Forms\DataGridViewCellTests.cs (4)
6480string.Format(SR.DataGridViewCheckBoxCellCheckedStateDescription, cellName)), 6488string.Format(SR.DataGridViewCheckBoxCellUncheckedStateDescription, cellName)), 6496string.Format(SR.DataGridViewCheckBoxCellCheckedStateDescription, cellName)), 6504string.Format(SR.DataGridViewCheckBoxCellUncheckedStateDescription, cellName)),
System\Windows\Forms\DataGridViewLinkColumnTests.cs (1)
84.WithMessage(string.Format(SR.DataGridViewTypeColumn_WrongCellTemplateType, "System.Windows.Forms.DataGridViewLinkCell"));
System\Windows\Forms\DataGridViewTextBoxColumnTests.cs (1)
49.WithMessage(string.Format(SR.DataGridViewTypeColumn_WrongCellTemplateType, "System.Windows.Forms.DataGridViewTextBoxCell"));
System\Windows\Forms\WebBrowserContainerTests.cs (1)
25.Message.Should().Contain(string.Format(SR.AXDuplicateControl, control.Name));
System.Windows.Input.Manipulations (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
System.Xaml (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
Test.Utilities (11)
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
127failureReason = string.Format(CompilerExtensionsResources.Missing_prefix_colon_0, Prefix); 133failureReason = string.Format(CompilerExtensionsResources.Missing_suffix_colon_0, Suffix); 154? string.Format(CompilerExtensionsResources.Prefix_0_is_not_expected, prefix) 226reason = string.Format(resourceId, string.Join(", ", violations)); 266reason = string.Format(firstResourceId, Substring(name, wordSpan)); 282var restString = string.Format(restResourceId, string.Join(", ", violations));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.RepeatMatcher.cs (1)
23=> string.Format("({0}*)", matcher);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.SequenceMatcher.cs (1)
29=> string.Format("({0})", string.Join(",", (object[])matchers));
Text.Analyzers (20)
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
127failureReason = string.Format(CompilerExtensionsResources.Missing_prefix_colon_0, Prefix); 133failureReason = string.Format(CompilerExtensionsResources.Missing_suffix_colon_0, Suffix); 154? string.Format(CompilerExtensionsResources.Prefix_0_is_not_expected, prefix) 226reason = string.Format(resourceId, string.Join(", ", violations)); 266reason = string.Format(firstResourceId, Substring(name, wordSpan)); 282var restString = string.Format(restResourceId, string.Join(", ", violations));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.RepeatMatcher.cs (1)
23=> string.Format("({0}*)", matcher);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.SequenceMatcher.cs (1)
29=> string.Format("({0})", string.Join(",", (object[])matchers));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\FixAllHelper.cs (4)
19FixAllScope.Custom => string.Format(WorkspaceExtensionsResources.Fix_all_0, title), 22FixAllScope.Solution => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Solution, title), 23FixAllScope.ContainingMember => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_member, title), 24FixAllScope.ContainingType => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_type, title),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
39return semanticModel ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 63return syntaxTree ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 80return root ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (1)
44throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Project_of_ID_0_is_required_to_accomplish_the_task_but_is_not_available_from_the_solution, projectId));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (1)
99throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Compilation_is_required_to_accomplish_the_task_but_is_not_supported_by_project_0, project.Name));
UIAutomationClient (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
UIAutomationClientSideProviders (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
UIAutomationProvider (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
UIAutomationTypes (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
UnitTests.Common (10)
TestHelpers.cs (10)
106errorBuilder.AppendLine(String.Format("Unexpected exception was caught: {0}", ex.ToString())); 121string prefix = String.Format(" Contract type: {0}", expectedType); 379errorBuilder.AppendLine(String.Format("AddBindingParameters {1}", errorMessage)); 383errorBuilder.AppendLine(String.Format("A parameter passed into the AddBindingParameters method was null/nThe null parameter is: {0}", typeof(OperationDescription).ToString())); 387errorBuilder.AppendLine(String.Format("A parameter passed into the AddBindingParameters method was null/nThe null parameter is: {0}", typeof(BindingParameterCollection).ToString())); 398errorBuilder.AppendLine(String.Format("ApplyClientBehavior {1}", errorMessage)); 402errorBuilder.AppendLine(String.Format("A parameter passed into the ApplyClientBehavior method was null/nThe null parameter is: {0}", typeof(OperationDescription).ToString())); 406errorBuilder.AppendLine(String.Format("A parameter passed into the ApplyClientBehavior method was null/nThe null parameter is: {0}", typeof(ClientOperation).ToString())); 423errorBuilder.AppendLine(String.Format("Validate {1}", errorMessage)); 428errorBuilder.AppendLine(String.Format("The parameter passed into the Validate method was null/nThe null parameter is: {0}", typeof(OperationDescription).ToString()));
VBCSCompiler.UnitTests (6)
BuildClientTests.cs (4)
332var path = string.Format(@"q:{0}the{0}path", Path.DirectorySeparatorChar); 342var path = string.Format(@"q:{0}the{0}path", Path.DirectorySeparatorChar); 351var path1 = string.Format(@"q:{0}the{0}path", Path.DirectorySeparatorChar); 352var path2 = string.Format(@"Q:{0}The{0}Path", Path.DirectorySeparatorChar);
CompilerServerTests.cs (2)
1273string.Format("/utf8output /nologo /t:library {0}", srcFile)); 1297string.Format("/utf8output /nologo /vbruntime* /t:library {0}", srcFile));
Wasm.Performance.TestApp (1)
PersonJsonContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
WindowsFormsIntegration (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
xunit.console (1)
common\AssemblyResolution\DependencyContextAssemblyCache.cs (1)
270var formattedUnmanagedDllName = string.Format(format, unmanagedLibraryName);