4220 references to Format
BoundTreeGenerator (6)
BoundNodeClassWriter.cs (6)
440Write(string.Format("BoundKind.{0}", StripBound(node.Name))); 508Write(string.Format("BoundKind.{0}", StripBound(node.Name))); 580Write(string.Format("BoundKind.{0}", StripBound(node.Name))); 622Write(string.Format("BoundKind.{0}", StripBound(node.Name))); 1431string.Format("node.{0}", field.Name)); 1473ParenList(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)
279throw 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)
368string 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 (937)
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)
167fileOptions.AddWarning(string.Format(SR.WrnExtraParamsOnInputFileParamIgnoredFormat, disallowedSwitchesOnParamsFilesProvided.Select(s => $"'{s.Name}'").Aggregate((msg, n) => $"{msg}, '{n}'")), 0); 296this.AddWarning(string.Format(SR.WrnUnexpectedArgumentFormat, cmdSwitch.Name), 0); 307this.AddWarning(string.Format(SR.WrnUnexpectedInputsFormat, this.Inputs.Select(i => $"{i}''").Aggregate((msg, i) => $"{msg}, {i}"))); 314this.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 (22)
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))
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)
77String.Format("Test case timeout was reached while waiting for the stream response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 89String.Format("Test case timeout was reached while waiting for the stream response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 95String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 152String.Format("Test case timeout was reached while waiting for the buffered response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 157String.Format("Test case timeout was reached while waiting for the buffered response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 163String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 220String.Format("Test case timeout was reached while waiting for the buffered response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 225String.Format("Test case timeout was reached while waiting for the buffered response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 231String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 309String.Format("Test case timeout was reached while waiting for the stream response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 321String.Format("Test case timeout was reached while waiting for the stream response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 327String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 387String.Format("Test case timeout was reached while waiting for the buffered response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 392String.Format("Test case timeout was reached while waiting for the buffered response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 398String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 851Assert.True(responseFromService, String.Format("Response from the service was not expected. Expected: 'True' but got {0}", responseFromService));
illink (4)
Infrastructure.Common (18)
ServiceUtilHelper.cs (10)
125String.Format("Failed to find a root certificate matching thumbprint '{0}'", thumbprint); 214String.Format("Failed to find a client certificate matching thumbprint '{0}'", thumbprint); 327String.Format("Failed to find a server certificate matching thumbprint '{0}'", thumbprint); 389String.Format("The root certificate could not be installed: {0}", s_rootCertInstallErrorMessage)); 398String.Format("The client certificate could not be installed: {0}", s_clientCertInstallErrorMessage)); 407String.Format("The peer certificate could not be installed: {0}", s_peerCertInstallErrorMessage)); 416String.Format("The OSX local Keychain certificate could not be installed: {0}", s_osXKeychainCertInstallErrorMessage)); 540Console.WriteLine(String.Format("Invoking {0} ...", requestUri)); 552Console.WriteLine(String.Format("Invoking {0} ...", requestUri)); 564Console.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)
87string.Format(CSharpScriptingResources.LogoLine1, CommonCompiler.GetProductVersion(typeof(CSharpReplServiceProvider)))
InteractiveHostCoreInitTests.cs (1)
49(1,1): error CS0006: {string.Format(CSharpResources.ERR_NoMetadataFile, scriptingAssemblyName)}", error);
InteractiveHostDesktopTests.cs (1)
748@$"{initFile.Path}(1,1): error CS0006: {string.Format(CSharpResources.ERR_NoMetadataFile, "Assembly.dll")}", error);
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.Components.Server (1)
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.Build (5)
CommunicationsUtilities.cs (1)
739TraceCore(nodeId, string.Format(format, arg0));
FrameworkLocationHelper.cs (1)
1255return string.Format(_dotNetFrameworkSdkRegistryKey, sdkVersionFolder);
Graph\GraphBuilder.cs (2)
482string.Format( 507string.Format(
Utilities\NuGetFrameworkWrapper.cs (1)
250throw new InternalErrorException(string.Format(AssemblyResources.GetString("NuGetAssemblyNotFound"), assemblyDirectory), ex);
Microsoft.Build.CommandLine.UnitTests (4)
CommandLineSwitches_Tests.cs (2)
1389VerifySwitchError(commandLineSwitches, "%ENVIRONMENTVARIABLE%", String.Format(AssemblyResources.GetString("EnvironmentVariableAsSwitch"), fullCommandLine)); 1394VerifySwitchError(commandLineSwitches, "%ENVIRONMENTVARIABLE%", String.Format(AssemblyResources.GetString("EnvironmentVariableAsSwitch"), fullCommandLine));
MSBuildServer_Tests.cs (2)
124TransientTestFile sleepProject = _env.CreateFile("napProject.proj", string.Format(sleepingTaskContentsFormat, markerFile.Path)); 183TransientTestFile sleepProject = _env.CreateFile("napProject.proj", string.Format(sleepingTaskContentsFormat, markerFile.Path));
Microsoft.Build.Engine.OM.UnitTests (27)
Construction\ConstructionEditing_Tests.cs (1)
3198return ObjectModelHelpers.CleanupFileContents(string.Format(expected, expectedItem));
Construction\ProjectImportElement_Tests.cs (3)
172string content = String.Format( 211string content = String.Format( 244string projectfileContent = String.Format(
Construction\ProjectRootElement_Tests.cs (1)
1927string expected = string.Format(@"<?xml version=""1.0"" encoding=""{0}""?>", encoding.WebName);
Definition\DefinitionEditing_Tests.cs (3)
1103string expected = string.Format( 1399string expected = string.Format( 2578projectContents = string.Format(projectContents, metadataElement);
Definition\Project_Tests.cs (18)
595projectFileContent = string.Format(projectFileContent, importPath); 1735string fileName = string.Format("foo{0}.foo", i); 2853project = string.Format(project, sb); 3071var formattedProject = string.Format(ProjectWithItemGroup, items); 3373string.Format(projectTemplate, "a;%61;*%61*"), 3387string.Format(projectTemplate, "a;%61;*%61*"), 3394string.Format(projectTemplate, "%61b%63"), 3406string.Format(projectTemplate, "%61b%63"), 3413string.Format(projectTemplate, "a?c"), 3420string.Format(projectTemplate, "a?c"), 3427string.Format(projectTemplate, "a?%63"), 3439string.Format(projectTemplate, "a?%63"), 3446string.Format(projectTemplate, "a?%63"), 3453string.Format(projectTemplate, "a*c"), 3465string.Format(projectTemplate, "a*%63"), 3477string.Format(projectTemplate, "a*%63"), 3569projectContents = string.Format(projectContents, includeGlob); 3735var projectContents = string.Format(projectTemplate, itemContents);
Definition\ProjectItemDefinition_Tests.cs (1)
167string expected = String.Format(
Microsoft.Build.Engine.UnitTests (128)
BackEnd\BuildManager_Logging_Tests.cs (2)
102var cleanedUpMainContents = CleanupFileContents(string.Format(_mainProject, child1ProjectPath)); 118string.Format(ResourceUtilities.GetResourceString("DeprecatedEventSerialization"),
BackEnd\BuildManager_Tests.cs (3)
3697using ProjectRootElementFromString projectRootElementFromString = new(string.Format(mainProjectContents, p2pProjectPath), collection); 3794var cleanedUpMainContents = CleanupFileContents(string.Format(mainProject, p2pProjectPath)); 3849using ProjectRootElementFromString projectRootElementFromString = new(string.Format(mainProject, importPath), _projectCollection);
BackEnd\MSBuild_Tests.cs (11)
210string error = String.Format(AssemblyResources.GetString("MSBuild.ProjectFileNotFound"), "this_project_does_not_exist.csproj"); 232string error = String.Format(AssemblyResources.GetString("MSBuild.ProjectFileNotFound"), "this_project_does_not_exist.csproj"); 267string message = String.Format(AssemblyResources.GetString("MSBuild.ProjectFileNotFoundMessage"), "this_project_does_not_exist.csproj"); 268string error = String.Format(AssemblyResources.GetString("MSBuild.ProjectFileNotFound"), "this_project_does_not_exist.csproj"); 305string message = String.Format(AssemblyResources.GetString("MSBuild.ProjectFileNotFoundMessage"), "this_project_does_not_exist.csproj"); 306string error = String.Format(AssemblyResources.GetString("MSBuild.ProjectFileNotFound"), "this_project_does_not_exist.csproj"); 353string message = String.Format(AssemblyResources.GetString("MSBuild.ProjectFileNotFoundMessage"), "this_project_does_not_exist_warn.csproj"); 354string error = String.Format(AssemblyResources.GetString("MSBuild.ProjectFileNotFound"), "this_project_does_not_exist_warn.csproj"); 355string error2 = String.Format(AssemblyResources.GetString("MSBuild.ProjectFileNotFound"), "this_project_does_not_exist_error.csproj"); 399string error = String.Format(AssemblyResources.GetString("MSBuild.ProjectUpgradeNeededToVcxProj"), "blah.vcproj"); 937string expectedItemOutputs = string.Format(@"
BackEnd\OnError_Tests.cs (1)
596logger.AssertLogContains(String.Format(MockLogger.GetString("TaskReturnedFalseButDidNotLogError"), "FailingTask"));
BackEnd\TargetBuilder_Tests.cs (1)
290string content = String.Format(
BackEnd\TaskHostConfiguration_Tests.cs (1)
780Assert.Fail(string.Format("Only one item contains the '{0}' metadata", metadataName));
Construction\SolutionProjectGenerator_Tests.cs (3)
659string[] logoutputs = { ".[11.0]. .[4.0].", ".[11.0]. .[4.0].", String.Format(".[{0}]. .[{0}].", ObjectModelHelpers.MSBuildDefaultToolsVersion) }; 706logger1.AssertLogContains(String.Format(".[{0}]. .[{0}].", ObjectModelHelpers.MSBuildDefaultToolsVersion)); 773logger.AssertLogContains(String.Format(".[{0}].", ObjectModelHelpers.MSBuildDefaultToolsVersion));
Definition\ProjectEvaluationContext_Tests.cs (1)
719.Select(p => string.Format(p, itemSpecDirectoryPart))
Definition\ProjectItem_Tests.cs (1)
47string content = String.Format(
Definition\ToolsVersion_Tests.cs (7)
51String.Format("Expected task '{0}' registered!", expectedRegisteredTask)); 57String.Format("Expected task '{0}' registered!", expectedRegisteredTask)); 63String.Format("Unexpected task '{0}' registered!", unexpectedRegisteredTask)); 69String.Format("Unexpected task '{0}' registered!", unexpectedRegisteredTask)); 176String.Format("Expected task '{0}' registered!", expectedRegisteredTask)); 181String.Format("Unexpected task '{0}' registered!", unexpectedRegisteredTask)); 206String.Format("Unexpected task '{0}' registered!", unexpectedRegisteredTask));
Evaluation\EvaluationLogging_Tests.cs (1)
80projectContents = string.Format(projectContents, importFile);
Evaluation\Evaluator_Tests.cs (6)
1975Assert.Fail(String.Format("project.Properties contained property {0}, but AllEvaluatedProperties did not.", property.Name)); 1979Assert.Fail(String.Format("The properties in project.Properties and AllEvaluatedProperties for property {0} were different.", property.Name)); 2139Assert.Fail(String.Format("project.Properties contained property {0}, but AllEvaluatedProperties did not.", property.Name)); 2143Assert.Fail(String.Format("The properties in project.Properties and AllEvaluatedProperties for property {0} were different.", property.Name)); 2928logger.AssertLogContains(String.Format("[{0}]", 1)); 2953logger.AssertLogContains(String.Format("[{0}]", FrameworkLocationHelper.programFiles32));
Evaluation\Expander_Tests.cs (3)
535log.AssertLogContains(String.Format(@"[{0}foo;{0}bar]", current + Path.DirectorySeparatorChar)); 557log.AssertLogContains(String.Format(@"[{0}foo;{0}bar]", current + Path.DirectorySeparatorChar)); 579log.AssertLogContains(String.Format(@"[{0}foo;{0}bar]", current + Path.DirectorySeparatorChar));
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (8)
130String.Format(extnTargetsFileContent2, mainProjectPath)); 197string.Format(extnTargetsFileContent, "FromExtn1")); 199string.Format(extnTargetsFileContent, "FromExtn2")); 247string.Format(extnTargetsFileContent, "FromExtn1")); 249string.Format(extnTargetsFileContent, "FromExtn2")); 251string.Format(extnTargetsFileContent2, "FromExtn3")); 1017return String.Format(mainTargetsFileContent, extensionsPathPropertyName); 1035return String.Format(extnTargetsFileContent1, extensionsPathPropertyName);
FileMatcher_Tests.cs (2)
2118Assert.Fail(String.Format("Unhandled case in GetMatchingFiles: {0}", pattern)); 2175Assert.Fail(String.Format("Unhandled case in GetMatchingDirectories: {0}", pattern));
FileUtilitiesRegex_Tests.cs (72)
146string winDirectory = string.Format("{0}server\\path\\test", _directoryStart); 147string unixDirectory = string.Format("{0}server/path/test", _altDirectoryStart); 156string winDirectory = string.Format("{0}server\\path\\test\\abc", _directoryStart); 157string unixDirectory = string.Format("{0}server/path/test/abc", _altDirectoryStart); 166string winDirectory = string.Format("{0}server\\path\\test\\abc", _directoryStart); 167string unixDirectory = string.Format("{0}server/path/test/abc", _altDirectoryStart); 176string winDirectory = string.Format("{0}server\\path\\test\\abc", _directoryStart); 177string unixDirectory = string.Format("{0}server/path/test/abc", _altDirectoryStart); 186string winDirectory = string.Format("{0}server\\path\\test\\abc", _directoryStart); 187string unixDirectory = string.Format("{0}server/path/test/abc", _altDirectoryStart); 196string winDirectory = string.Format("{0}server\\path\\test\\abc", _directoryStart); 197string unixDirectory = string.Format("{0}server/path/test/abc", _altDirectoryStart); 211string winDirectory = string.Format("{0}server\\path", _directoryStart); 212string unixDirectory = string.Format("{0}server/path", _altDirectoryStart); 221string winDirectory = string.Format("{0}server\\path", _directoryStart); 222string unixDirectory = string.Format("{0}server/path", _altDirectoryStart); 232string winDirectory = string.Format("{0}server\\path", _directoryStart); 233string unixDirectory = string.Format("{0}server/path", _altDirectoryStart); 242string winDirectory = string.Format("{0}server\\path", _directoryStart); 243string unixDirectory = string.Format("{0}server/path", _altDirectoryStart); 252string winDirectory = string.Format("{0}server\\path", _directoryStart); 253string unixDirectory = string.Format("{0}server/path", _altDirectoryStart); 262string winDirectory = string.Format("{0}server\\path", _directoryStart); 263string unixDirectory = string.Format("{0}server/path", _altDirectoryStart); 277string winDirectory = string.Format("{0}abc/def", _directoryStart); 278string unixDirectory = string.Format("{0}abc\\def", _altDirectoryStart); 287string winDirectory = string.Format("{0}abc/def", _directoryStart); 288string unixDirectory = string.Format("{0}abc\\def", _altDirectoryStart); 297string winDirectory = string.Format("{0}abc/def", _directoryStart); 298string unixDirectory = string.Format("{0}abc\\def", _altDirectoryStart); 307string winDirectory = string.Format("{0}abc/def", _directoryStart); 308string unixDirectory = string.Format("{0}abc\\def", _altDirectoryStart); 317string winDirectory = string.Format("{0}abc/def", _directoryStart); 318string unixDirectory = string.Format("{0}abc\\def", _altDirectoryStart); 332string winDirectory = string.Format("{0}abc/def", _directoryStart); 333string unixDirectory = string.Format("{0}abc\\def", _altDirectoryStart); 342string winDirectory = string.Format("{0}abc\\def\\", _directoryStart); 343string unixDirectory = string.Format("{0}abc/def/", _altDirectoryStart); 352string winDirectory = string.Format("{0}abc\\def\\", _directoryStart); 353string unixDirectory = string.Format("{0}abc/def/", _altDirectoryStart); 362string winDirectory = string.Format("{0}abc\\def\\", _directoryStart); 363string unixDirectory = string.Format("{0}abc/def/", _altDirectoryStart); 372string winDirectory = string.Format("{0}abc\\def\\", _directoryStart); 373string unixDirectory = string.Format("{0}abc/def/", _altDirectoryStart); 382string winDirectory = string.Format("{0}abc\\def\\", _directoryStart); 383string unixDirectory = string.Format("{0}abc/def/", _altDirectoryStart); 397string winDirectory = string.Format("{0}abc\\def\\", _directoryStart); 398string unixDirectory = string.Format("{0}abc/def/", _altDirectoryStart); 407string winDirectory = string.Format("{0}", _directoryStart); 408string unixDirectory = string.Format("{0}", _altDirectoryStart); 417string winDirectory = string.Format("{0}", _directoryStart); 418string unixDirectory = string.Format("{0}", _altDirectoryStart); 427string winDirectory = string.Format("{0}", _directoryStart); 428string unixDirectory = string.Format("{0}", _altDirectoryStart); 437string winDirectory = string.Format("{0}", _directoryStart); 438string unixDirectory = string.Format("{0}", _altDirectoryStart); 447string winDirectory = string.Format("{0}", _directoryStart); 448string unixDirectory = string.Format("{0}", _altDirectoryStart); 460string winDirectory = string.Format("{0}", _directoryStart); 461string unixDirectory = string.Format("{0}", _altDirectoryStart); 470string winDirectory = string.Format("{0}server", _directoryStart); 471string unixDirectory = string.Format("{0}server", _altDirectoryStart); 480string winDirectory = string.Format("{0}server", _directoryStart); 481string unixDirectory = string.Format("{0}server", _altDirectoryStart); 490string winDirectory = string.Format("{0}server", _directoryStart); 491string unixDirectory = string.Format("{0}server", _altDirectoryStart); 500string winDirectory = string.Format("{0}server", _directoryStart); 501string unixDirectory = string.Format("{0}server", _altDirectoryStart); 510string winDirectory = string.Format("{0}server", _directoryStart); 511string unixDirectory = string.Format("{0}server", _altDirectoryStart); 523string winDirectory = string.Format("{0}server", _directoryStart); 524string unixDirectory = string.Format("{0}server", _altDirectoryStart);
Graph\IsolateProjects_Tests.cs (1)
288string declaredReferenceContents = string.Format(
Instance\ProjectInstance_Internal_Tests.cs (3)
67projectFileContent = String.Format(projectFileContent, importPath); 112import1Content = String.Format(import1Content, import3Path); 687projectContents = string.Format(projectContents, MSBuildConstants.CurrentToolsVersion);
ProjectCache\ProjectCacheTests.cs (1)
797mockLogger.FullLog.ShouldContain(string.Format(ResourceUtilities.GetResourceString("ProjectCacheQueryStartedWithDefaultTargets"), node.ProjectInstance.FullPath));
Microsoft.Build.Framework (3)
ThrowHelper.cs (3)
69throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 116return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 215return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
Microsoft.Build.Tasks.UnitTests (23)
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (1)
1781string defaultName = String.Format("{0}, Version=0.0.0.0, PublicKeyToken=null, Culture=Neutral", Path.GetFileNameWithoutExtension(path));
CreateCSharpManifestResourceName_Tests.cs (1)
783Assert.Fail(String.Format("Encountered a new path {0}, needs unittesting support", path));
CreateItem_Tests.cs (3)
386content = string.Format(content, include); 413content = string.Format(content, include); 440content = string.Format(content, include);
GenerateBindingRedirects_Tests.cs (1)
352string appConfigContents = string.Format(formatString, runtimeSection);
MakeDir_Tests.cs (6)
45String.Format(AssemblyResources.GetString("MakeDir.Comment"), dir), 107String.Format(AssemblyResources.GetString("MakeDir.Comment"), dir), 148String.Format(AssemblyResources.GetString("MakeDir.Comment"), dir), 159String.Format(AssemblyResources.GetString("MakeDir.Comment"), dir), 194String.Format(AssemblyResources.GetString("MakeDir.Comment"), dir), 216String.Format(AssemblyResources.GetString("MakeDir.Comment"), dir),
MSBuild_Tests.cs (4)
329string message = String.Format(AssemblyResources.GetString("MSBuild.ProjectFileNotFoundMessage"), "this_project_does_not_exist_warn.csproj"); 330string error = String.Format(AssemblyResources.GetString("MSBuild.ProjectFileNotFound"), "this_project_does_not_exist_warn.csproj"); 331string error2 = String.Format(AssemblyResources.GetString("MSBuild.ProjectFileNotFound"), "this_project_does_not_exist_error.csproj"); 643string expectedItemOutputs = string.Format(@"
RoslynCodeTaskFactory_Tests.cs (1)
614string errorMessage = string.Format(ResourceUtilities.GetResourceString("CodeTaskFactory.CouldNotFindTaskInAssembly"), taskName);
Touch_Tests.cs (4)
203String.Format(AssemblyResources.GetString("Touch.Touching"), myexisting_txt), 225String.Format(AssemblyResources.GetString("Touch.FileDoesNotExist"), mynonexisting_txt), 358String.Format(AssemblyResources.GetString("Touch.FileDoesNotExist"), mynonexisting_txt), 407String.Format(AssemblyResources.GetString("Touch.Touching"), myexisting_txt),
XmlPoke_Tests.cs (2)
130XmlDocument xmlDocument = ExecuteXmlPoke(query: string.Format(queryTemplate, original), value: value); 132List<XmlAttribute> nodes = xmlDocument.SelectNodes(string.Format(queryTemplate, value))?.Cast<XmlAttribute>().ToList();
Microsoft.Build.UnitTests.Shared (2)
ObjectModelHelpers.cs (2)
444Assert.Fail(string.Format("Item '{0}' was expected but not returned.", expectedItem.ItemSpec)); 1995return string.Format(
Microsoft.Build.Utilities.Core (1)
FrameworkLocationHelper.cs (1)
1255return string.Format(_dotNetFrameworkSdkRegistryKey, sdkVersionFolder);
Microsoft.Build.Utilities.UnitTests (4)
ToolLocationHelper_Tests.cs (2)
2732File.WriteAllText(Path.Combine(redistPath, "FrameworkList.xml"), string.Format(frameworkListXml, frameworkName)); 4118var fileInSubDir = string.Format("file{0}.txt", i + 1);
ToolTask_Tests.cs (2)
1038string.Format(_unixSleep, RepeatCount < 2 ? InitialDelay / 1000.0 : FollowupDelay / 1000.0) : 1039string.Format(_windowsSleep, RepeatCount < 2 ? InitialDelay / 1000.0 : FollowupDelay / 1000.0);
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)
621consoleOutput.WriteLine(string.Format(CodeAnalysisResources.InternalsVisibleToCurrentAssembly, currentAssembly.Identity.GetDisplayName(fullKey: true))); 645consoleOutput.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)
686throw new ArgumentException(string.Format(CodeAnalysisResources.ReferenceOfTypeIsInvalid1, reference.GetType()), 846throw new ArgumentException(string.Format(CodeAnalysisResources.MetadataRefNotFoundToRemove1, r), 1644throw new ArgumentException(string.Format(CodeAnalysisResources.IsSymbolAccessibleBadWithin, nameof(within)), nameof(within)); 1660throw 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)
1309string.Format(CodeAnalysisResources.ExceptionContext, info?.GetContext()), e.CreateDiagnosticDescription()); 1336return 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)
363throw new InvalidOperationException(string.Format("Expected at most one Using record for method {0}", FormatMethodToken(methodToken))); 372throw new InvalidOperationException(string.Format("Did not expect both Forward and ForwardToModule records for method {0}", FormatMethodToken(methodToken))); 390throw new InvalidOperationException(string.Format("Expected at most one ForwardToModule record for method {0}", FormatMethodToken(methodToken))); 432throw new InvalidOperationException(string.Format("Group size indicates more imports than there are import strings (method {0}).", FormatMethodToken(methodToken))); 438throw new InvalidOperationException(string.Format("Encountered extern alias info before all import strings were consumed (method {0}).", FormatMethodToken(methodToken))); 458throw new InvalidOperationException(string.Format("Expected only extern alias info strings after consuming the indicated number of imports (method {0}).", FormatMethodToken(methodToken))); 472throw new InvalidOperationException(string.Format("Group size indicates fewer imports than there are import strings (method {0}).", FormatMethodToken(methodToken))); 845return string.Format("0x{0:x8}", methodToken);
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
76throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 130return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 229return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
TreeDumper.cs (1)
220return string.Format("{{{0}}}", string.Join(", ", seq.Cast<object>().Select(DumperString).ToArray()));
Microsoft.CodeAnalysis.Analyzers.UnitTests (46)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzerTests.cs (44)
1879additionalFileText: string.Format(additionalFileTextFormat, "My Analyzer Title."), 1880fixedAdditionalFileText: string.Format(additionalFileTextFormat, "My Analyzer Title"), 1912additionalFileText: string.Format(additionalFileTextFormat, "My Analyzer Title."), 1913fixedAdditionalFileText: string.Format(additionalFileTextFormat, "My Analyzer Title"), 2101additionalFileText: string.Format(additionalFileTextFormat, title), 2102fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedTitle), 2134additionalFileText: string.Format(additionalFileTextFormat, title), 2135fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedTitle), 2303additionalFileText: string.Format(additionalFileTextFormat, "MyDiagnostic. Title."), 2304fixedAdditionalFileText: string.Format(additionalFileTextFormat, "MyDiagnostic"), 2340additionalFileText: string.Format(additionalFileTextFormat, "MyDiagnostic. Title."), 2341fixedAdditionalFileText: string.Format(additionalFileTextFormat, "MyDiagnostic"), 2525additionalFileText: string.Format(additionalFileTextFormat, title), 2526fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedTitle), 2558additionalFileText: string.Format(additionalFileTextFormat, title), 2559fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedTitle), 2684source: string.Format(csharpSourceFormat, $"{{|#0:{csharpTitleExpression}|}}"), 2685fixedSource: string.Format(csharpSourceFormat, csharpTitleExpression), 2687additionalFileText: string.Format(additionalFileTextFormat, title), 2688fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedTitle), 2717source: string.Format(basicSourceFormat, $"{{|#0:{basicTitleExpression}|}}"), 2718fixedSource: string.Format(basicSourceFormat, basicTitleExpression), 2720additionalFileText: string.Format(additionalFileTextFormat, title), 2721fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedTitle), 2914additionalFileText: string.Format(additionalFileTextFormat, message), 2915fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedMessage), 2947additionalFileText: string.Format(additionalFileTextFormat, message), 2948fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedMessage), 3229additionalFileText: string.Format(additionalFileTextFormat, message), 3230fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedMessage), 3262additionalFileText: string.Format(additionalFileTextFormat, message), 3263fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedMessage), 3411additionalFileText: string.Format(additionalFileTextFormat, message), 3412fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedMessage), 3444additionalFileText: string.Format(additionalFileTextFormat, message), 3445fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedMessage), 3634additionalFileText: string.Format(additionalFileTextFormat, description), 3635fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedDescription), 3667additionalFileText: string.Format(additionalFileTextFormat, description), 3668fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedDescription), 3816additionalFileText: string.Format(additionalFileTextFormat, description), 3817fixedAdditionalFileText: string.Format(additionalFileTextFormat, fixedDescription), 3849additionalFileText: string.Format(additionalFileTextFormat, description), 3850fixedAdditionalFileText: 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.CodeStyle (10)
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
76throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 130return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 229return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
126failureReason = string.Format(CompilerExtensionsResources.Missing_prefix_colon_0, Prefix); 132failureReason = string.Format(CompilerExtensionsResources.Missing_suffix_colon_0, Suffix); 153? string.Format(CompilerExtensionsResources.Prefix_0_is_not_expected, prefix) 225reason = string.Format(resourceId, string.Join(", ", violations)); 265reason = string.Format(firstResourceId, Substring(name, wordSpan)); 281var restString = string.Format(restResourceId, string.Join(", ", violations));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.SequenceMatcher.cs (1)
29=> string.Format("({0})", string.Join(",", (object[])matchers));
Microsoft.CodeAnalysis.CodeStyle.Fixes (22)
src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (1)
166return string.Format(
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (1)
369var 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)
272: string.Format(CodeFixesResources.Take_0, topText); 277: string.Format(CodeFixesResources.Take_0, bottomText);
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.CodeAction.cs (1)
55return 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)
193return string.Format(
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (1)
94return string.Format(CodeFixesResources.Implement_interface_through_0, options.ThroughMember.Name);
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (1)
199string.Format(CodeFixesResources.Do_not_change_this_code_Put_cleanup_code_in_0_method, disposeMethodDisplayString),
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
46var title = string.Format(TitleFormat, type.Name);
src\Analyzers\Core\CodeFixes\UpgradeProject\AbstractUpgradeProjectCodeFixProvider.cs (2)
57var fixOneProjectTitle = string.Format(UpgradeThisProjectResource, newVersion); 65var fixAllProjectsTitle = string.Format(UpgradeAllProjectsResource, newVersion);
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)
43throw 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)
114throw 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)
76throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 130return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 229return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
Microsoft.CodeAnalysis.CSharp (20)
CommandLine\CSharpCommandLineParser.cs (1)
1413AddDiagnostic(diagnostics, ErrorCode.ERR_BadBaseNumber, string.Format("0x{0:X}", baseAddress));
Compilation\CSharpCompilation.cs (7)
4142throw new ArgumentException(string.Format(CSharpResources.CallingConventionTypeIsInvalid, type.ToDisplayString())); 4264throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps1, name), nameof(name)); 4268throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps3, name), nameof(name)); 4463throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps2, $"{csharpReturnType.ToDisplayString()} operator {name}({csharpLeftType.ToDisplayString()}, {csharpRightType.ToDisplayString()})")); 4490throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps1, name), nameof(name)); 4494throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps3, name), nameof(name)); 4545throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps2, $"{csharpReturnType.ToDisplayString()} operator {name}({csharpOperandType.ToDisplayString()})"));
Compilation\CSharpSemanticModel.cs (1)
1303string.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)
1129throw 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)
264throw new ArgumentException(string.Format(CSharpResources.ThisMethodCanOnlyBeUsedToCreateTokens, kind), nameof(kind)); 1620string 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 (3)
src\Analyzers\CSharp\CodeFixes\DisambiguateSameVariable\CSharpDisambiguateSameVariableCodeFixProvider.cs (1)
123title = string.Format(titleFormat, $"{memberContainer}.{matchingMember.Name}");
src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (2)
99string.Format(CodeFixesResources.Do_not_change_this_code_Put_cleanup_code_in_0_method, disposeMethodDisplayString), 107string.Format(CodeFixesResources.TODO_colon_override_finalizer_only_if_0_has_code_to_free_unmanaged_resources, disposeMethodDisplayString),
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (2)
src\Analyzers\CSharp\Tests\ConditionalExpressionInStringInterpolation\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProviderTests.cs (2)
39string.Format(template, initialMethodBody), 40string.Format(template, expectedMethodBody)).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (15)
CommandLineTests.cs (11)
1106desc = CSharpCommandLineParser.ParseResourceDescription("", String.Format("path,{0},private", longE), WorkingDirectory, diags, embedded: false); 1115desc = CSharpCommandLineParser.ParseResourceDescription("", String.Format("{0},e,private", longI), WorkingDirectory, diags, embedded: false); 7806string.Format("/target:{0}", target), 7807string.Format("/out:{0}", outputFileName), 7816string.Format("/target:{0}", target), 7817string.Format("/out:{0}", outputFileName), 9156var expectedOutput = string.Format("error CS0016: Could not write to output file '{0}' -- 'I/O error occurred.'", xmlPath); 9292string aWrnString = String.Format(cs2002, "a.cs"); 9304string AWrnString = String.Format(cs2002, "A.cs"); 9316string tmpDiraString = String.Format(cs2002, @"tmpDir\a.cs"); 11376var 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 (78)
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 (21)
584throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(a)}").Replace(""" 593throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(b)}").Replace(""" 602throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(c)}").Replace(""" 678throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(a)}").Replace(""" 687throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(b)}").Replace(""" 741throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(a)}").Replace(""" 750throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(c)}").Replace(""" 787throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(a)}").Replace(""" 796throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(c)}").Replace(""" 834throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(a)}").Replace(""" 848throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(c)}").Replace(""" 1970throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace(""" 2008throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_whitespace, "{nameof(s)}").Replace(""" 2079throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace(""" 2135throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(bar)}").Replace(""" 2728throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace(""" 2770throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace(""" 2813throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace(""" 2855if (string.IsNullOrEmpty(s)) throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace(""" 2896if (string.IsNullOrEmpty(s)) throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").Replace(""" 2939throw new ArgumentException($"{{string.Format(FeaturesResources._0_cannot_be_null_or_empty, "{nameof(s)}").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)
652await VerifyItemExistsAsync(string.Format(template, $"public static S operator {operatorSign}(S _)"), operatorSign, inlineDescription: inlineDescription); 653await VerifyItemExistsAsync(string.Format(template, $"public static bool operator {operatorSign}(S _)"), operatorSign, inlineDescription: inlineDescription); 654await VerifyNoItemsExistAsync(string.Format(template, $"public static object operator {operatorSign}(S _)")); 655await VerifyNoItemsExistAsync(string.Format(template, $"public static S operator {operatorSign}(S a, S b, S c)")); 678await VerifyItemExistsAsync(string.Format(template, $"public static S operator {operatorSign}(S a, S b)"), operatorSign, inlineDescription: inlineDescription); 679await VerifyItemExistsAsync(string.Format(template, $"public static int operator {operatorSign}(S a, S b)"), operatorSign, inlineDescription: inlineDescription); 680await VerifyNoItemsExistAsync(string.Format(template, $"public static object operator {operatorSign}(S a, S b)")); 681await VerifyNoItemsExistAsync(string.Format(template, $"public static S operator {operatorSign}(S a, object b)")); 682await VerifyNoItemsExistAsync(string.Format(template, $"public static S operator {operatorSign}(S a, S b, S c)")); 704await VerifyItemExistsAsync(string.Format(template, $"public static bool operator {operatorSign}(S a, S b)"), operatorSign, inlineDescription: $"x {operatorSign} y"); 705await VerifyNoItemsExistAsync(string.Format(template, $"public static int operator {operatorSign}(S a, S b)")); 706await VerifyNoItemsExistAsync(string.Format(template, $"public static bool operator {operatorSign}(S a, S b, S c)")); 707await 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)
54=> XElement.Parse(string.Format("""
QuickInfo\SemanticQuickInfoSourceTests.cs (21)
97var xmlString = string.Format(""" 114var xmlString = string.Format(""" 1985await TestAsync(markup, MainDescription(string.Format(FeaturesResources.Awaited_task_returns_0, "struct System.Int32"))); 2002await TestAsync(markup, MainDescription(string.Format(FeaturesResources.Awaited_task_returns_0, "struct System.Int32"))); 2054await TestAsync(markup, MainDescription(string.Format(FeaturesResources.Awaited_task_returns_0, $"({CSharpFeaturesResources.awaitable}) class System.Threading.Tasks.Task<TResult>")), 2094await TestAsync(markup, MainDescription(string.Format(FeaturesResources.Awaited_task_returns_0, "struct System.Int32"))); 6717await TestAsync(markup, MainDescription(string.Format(FeaturesResources.Awaited_task_returns_0, "int[]"))); 6735await TestAsync(markup, MainDescription(string.Format(FeaturesResources.Awaited_task_returns_0, "dynamic"))); 8074NullabilityAnalysis(string.Format(FeaturesResources._0_may_be_null_here, "s"))); 8094NullabilityAnalysis(string.Format(FeaturesResources._0_is_not_null_here, "s"))); 8115NullabilityAnalysis(string.Format(FeaturesResources._0_may_be_null_here, "s"))); 8137NullabilityAnalysis(string.Format(FeaturesResources._0_is_not_null_here, "s"))); 8156NullabilityAnalysis(string.Format(FeaturesResources._0_may_be_null_here, "P.field"))); 8175NullabilityAnalysis(string.Format(FeaturesResources._0_is_not_null_here, "P.field"))); 8196NullabilityAnalysis(string.Format(FeaturesResources._0_may_be_null_here, "S"))); 8218NullabilityAnalysis(string.Format(FeaturesResources._0_is_not_null_here, "S"))); 8244NullabilityAnalysis(string.Format(FeaturesResources._0_may_be_null_here, "s"))); 8270NullabilityAnalysis(string.Format(FeaturesResources._0_is_not_null_here, "s"))); 8292NullabilityAnalysis(string.Format(FeaturesResources._0_may_be_null_here, "s"))); 8314NullabilityAnalysis(string.Format(FeaturesResources._0_is_not_null_here, "s"))); 8378NullabilityAnalysis(string.Format(FeaturesResources._0_is_not_null_here, "s")));
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.", 905string.Format("event for 'RegisterDocumentOpenedHandler' was not fired within {0} minutes.", 909string.Format("event for 'RegisterDocumentClosedHandler' was not fired within {0} minutes.", 924string.Format("event for 'RegisterDocumentOpenedHandler' was called within {0} seconds though it was removed from the list.", 928string.Format("event for 'RegisterDocumentClosedHandler' was called within {0} seconds though it was removed from the list.", 966string.Format("event for 'RegisterTextDocumentOpenedHandler' was not fired within {0} minutes.", 970string.Format("event for 'RegisterTextDocumentClosedHandler' was not fired within {0} minutes.", 985string.Format("event for 'RegisterTextDocumentOpenedHandler' was called within {0} seconds though it was removed from the list.", 989string.Format("event for 'RegisterTextDocumentClosedHandler' was called within {0} seconds though it was removed from the list.", 1027string.Format("event for 'RegisterTextDocumentOpenedHandler' was not fired within {0} minutes.", 1031string.Format("event for 'RegisterTextDocumentClosedHandler' was not fired within {0} minutes.", 1046string.Format("event for 'RegisterTextDocumentOpenedHandler' was called within {0} seconds though it was removed from the list.", 1050string.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)
509<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[10..11)" Text="?" /> 542<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[10..11)" Text="?" /> 578<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[10..11)" Text="?" /> 615<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[10..11)" Text="?" /> 2482<Diagnostic Message="{{string.Format(FeaturesResources.Quantifier_0_following_nothing, '{')}}" Span="[10..11)" Text="{" /> 2510<Diagnostic Message="{{string.Format(FeaturesResources.Quantifier_0_following_nothing, '{')}}" Span="[10..11)" Text="{" /> 2597<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '*')}" Span="[9..10)" Text="*" /> 2628<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '*')}" Span="[10..11)" Text="*" /> 2660<Diagnostic Message="{string.Format(FeaturesResources.Nested_quantifier_0, "*")}" Span="[11..12)" Text="*" /> 2685<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '+')}" Span="[9..10)" Text="+" /> 2716<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '+')}" Span="[10..11)" Text="+" /> 2748<Diagnostic Message="{string.Format(FeaturesResources.Nested_quantifier_0, "+")}" Span="[11..12)" Text="+" /> 2773<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[9..10)" Text="?" /> 2804<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[10..11)" Text="?" /> 2838<Diagnostic Message="{string.Format(FeaturesResources.Nested_quantifier_0, "?")}" Span="[12..13)" Text="?" /> 2866<Diagnostic Message="{{string.Format(FeaturesResources.Quantifier_0_following_nothing, '{')}}" Span="[9..10)" Text="{" /> 2900<Diagnostic Message="{{string.Format(FeaturesResources.Quantifier_0_following_nothing, '{')}}" Span="[10..11)" Text="{" /> 2935<Diagnostic Message="{{string.Format(FeaturesResources.Nested_quantifier_0, "{")}}" Span="[11..12)" Text="{" /> 3698<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "m")}" Span="[11..12)" Text="m" /> 4048<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "m")}" Span="[11..12)" Text="m" /> 4522<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 7)}" Span="[11..12)" Text="7" /> 4574<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 8)}" Span="[11..12)" Text="8" /> 4808<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "k")}" Span="[11..12)" Text="k" /> 4837<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "k")}" Span="[11..12)" Text="k" /> 4866<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "k")}" Span="[11..12)" Text="k" /> 4982<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_name_0, "a")}" Span="[13..14)" Text="a" /> 5297<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "k")}" Span="[11..12)" Text="k" /> 5326<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "k")}" Span="[11..12)" Text="k" /> 5355<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "k")}" Span="[11..12)" Text="k" /> 5471<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_name_0, "a")}" Span="[13..14)" Text="a" /> 5540<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "k")}" Span="[11..12)" Text="k" /> 5569<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "k")}" Span="[11..12)" Text="k" /> 5831<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_name_0, "a")}" Span="[12..13)" Text="a" /> 6286<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_name_0, "a")}" Span="[12..13)" Text="a" /> 6534<Diagnostic Message="{{string.Format(FeaturesResources.Unknown_property_0, "xxx")}}" Span="[13..16)" Text="xxx" /> 8800<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[13..14)" Text="1" /> 9173<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 3)}" Span="[38..39)" Text="3" /> 9255<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 3)}" Span="[42..43)" Text="3" /> 9338<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 3)}" Span="[42..43)" Text="3" /> 9425<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 3)}" Span="[46..47)" Text="3" /> 9505<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 3)}" Span="[34..35)" Text="3" /> 9587<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[27..28)" Text="2" /> 9588<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 3)}" Span="[34..35)" Text="3" /> 9590<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[40..41)" Text="?" /> 9672<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 3)}" Span="[34..35)" Text="3" /> 9755<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 3)}" Span="[34..35)" Text="3" /> 9842<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[27..28)" Text="2" /> 9843<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 3)}" Span="[34..35)" Text="3" /> 9845<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[44..45)" Text="?" /> 9932<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 3)}" Span="[34..35)" Text="3" /> 10290<Diagnostic Message="{string.Format(FeaturesResources.Conditional_alternation_is_missing_a_closing_parenthesis_after_the_group_number_0, 0)}" Span="[12..13)" Text="0" /> 10590<Diagnostic Message="{string.Format(FeaturesResources.Conditional_alternation_is_missing_a_closing_parenthesis_after_the_group_number_0, 0)}" Span="[12..13)" Text="0" /> 10621<Diagnostic Message="{string.Format(FeaturesResources.Conditional_alternation_refers_to_an_undefined_group_number_0, 1)}" Span="[12..13)" Text="1" /> 11168<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[12..13)" Text="?" /> 11212<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[12..13)" Text="?" /> 11256<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[12..13)" Text="?" /> 11540<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[11..12)" Text="1" /> 11569<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[11..12)" Text="1" /> 12565<Diagnostic Message="{string.Format(FeaturesResources.Cannot_include_class_0_in_character_range, "w")}" Span="[13..15)" Text="\w" /> 12606<Diagnostic Message="{{string.Format(FeaturesResources.Unknown_property_0, "llll")}}" Span="[14..18)" Text="llll" /> 12688<Diagnostic Message="{{string.Format(FeaturesResources.Cannot_include_class_0_in_character_range, "p")}}" Span="[13..15)" Text="\p" /> 16036<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[13..14)" Text="2" /> 16103<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[13..14)" Text="1" /> 16134<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[13..14)" Text="2" /> 16170<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[15..16)" Text="2" /> 16261<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[21..22)" Text="2" /> 16308<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[19..20)" Text="1" /> 16309<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[21..22)" Text="2" /> 16355<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[19..20)" Text="1" /> 16356<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[21..22)" Text="2" /> 16402<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[19..20)" Text="1" /> 16403<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[21..22)" Text="2" /> 16449<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[19..20)" Text="1" /> 16450<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[21..22)" Text="2" /> 16631<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[20..21)" Text="1" /> 16632<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[22..23)" Text="2" /> 16678<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[22..23)" Text="2" /> 16821<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[19..20)" Text="1" /> 16822<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[21..22)" Text="2" /> 16919<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[20..21)" Text="1" /> 16920<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[22..23)" Text="2" /> 17015<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[20..21)" Text="1" /> 17016<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[22..23)" Text="2" /> 17111<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[21..22)" Text="1" /> 17112<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[23..24)" Text="2" /> 17266<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[24..25)" Text="1" /> 17267<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[26..27)" Text="2" /> 17319<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 1)}" Span="[24..25)" Text="1" /> 17320<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, 2)}" Span="[26..27)" Text="2" />
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests_DotnetNegativeTests.cs (55)
60<Diagnostic Message="{string.Format(FeaturesResources.Cannot_include_class_0_in_character_range, "d")}" Span="[17..19)" Text="\d" /> 90<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "k")}" Span="[11..12)" Text="k" /> 171<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, "1")}" Span="[11..12)" Text="1" /> 264<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[11..12)" Text="?" /> 783<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "k")}" Span="[11..12)" Text="k" /> 812<Diagnostic Message="{{string.Format(FeaturesResources.Unknown_property_0, "cat")}}" Span="[13..16)" Text="cat" /> 870<Diagnostic Message="{{string.Format(FeaturesResources.Unknown_property_0, "cat")}}" Span="[13..16)" Text="cat" /> 930<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[11..12)" Text="?" /> 1054<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "k")}" Span="[11..12)" Text="k" /> 1166<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[10..11)" Text="?" /> 1207<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[10..11)" Text="?" /> 1253<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[10..11)" Text="?" /> 1303<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[10..11)" Text="?" /> 1357<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[10..11)" Text="?" /> 1435<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[10..11)" Text="?" /> 1829<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[10..11)" Text="?" /> 1868<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[13..14)" Text="?" /> 2198<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[11..12)" Text="?" /> 2236<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[11..12)" Text="?" /> 2374<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[13..14)" Text="?" /> 2415<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[13..14)" Text="?" /> 2451<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[11..12)" Text="?" /> 2647<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[16..17)" Text="?" /> 2792<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '?')}" Span="[16..17)" Text="?" /> 2919<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_name_0, "catdog")}" Span="[31..37)" Text="catdog" /> 3041<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, "16")}" Span="[31..33)" Text="16" /> 3458<Diagnostic Message="{string.Format(FeaturesResources.Cannot_include_class_0_in_character_range, "D")}" Span="[14..16)" Text="\D" /> 3512<Diagnostic Message="{string.Format(FeaturesResources.Cannot_include_class_0_in_character_range, "s")}" Span="[17..19)" Text="\s" /> 3563<Diagnostic Message="{string.Format(FeaturesResources.Cannot_include_class_0_in_character_range, "S")}" Span="[17..19)" Text="\S" /> 3614<Diagnostic Message="{string.Format(FeaturesResources.Cannot_include_class_0_in_character_range, "w")}" Span="[17..19)" Text="\w" /> 3668<Diagnostic Message="{string.Format(FeaturesResources.Cannot_include_class_0_in_character_range, "W")}" Span="[17..19)" Text="\W" /> 3753<Diagnostic Message="{{string.Format(FeaturesResources.Cannot_include_class_0_in_character_range, "p")}}" Span="[14..16)" Text="\p" /> 3912<Diagnostic Message="{{string.Format(FeaturesResources.Cannot_include_class_0_in_character_range, "P")}}" Span="[14..16)" Text="\P" /> 4163<Diagnostic Message="{string.Format(FeaturesResources.Unrecognized_escape_sequence_0, "o")}" Span="[18..19)" Text="o" /> 4326<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_name_0, "cat2")}" Span="[38..42)" Text="cat2" /> 4395<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, "8")}" Span="[38..39)" Text="8" /> 4447<Diagnostic Message="{{string.Format(FeaturesResources.Nested_quantifier_0, "*")}}" Span="[21..22)" Text="*" /> 4490<Diagnostic Message="{string.Format(FeaturesResources.Nested_quantifier_0, "+")}" Span="[18..19)" Text="+" /> 4533<Diagnostic Message="{string.Format(FeaturesResources.Nested_quantifier_0, "*")}" Span="[18..19)" Text="*" /> 4576<Diagnostic Message="{string.Format(FeaturesResources.Nested_quantifier_0, "*")}" Span="[18..19)" Text="*" /> 4622<Diagnostic Message="{string.Format(FeaturesResources.Nested_quantifier_0, "+")}" Span="[19..20)" Text="+" /> 4668<Diagnostic Message="{string.Format(FeaturesResources.Nested_quantifier_0, "*")}" Span="[19..20)" Text="*" /> 4717<Diagnostic Message="{{string.Format(FeaturesResources.Nested_quantifier_0, "*")}}" Span="[22..23)" Text="*" /> 4763<Diagnostic Message="{string.Format(FeaturesResources.Nested_quantifier_0, "*")}" Span="[19..20)" Text="*" /> 4809<Diagnostic Message="{{string.Format(FeaturesResources.Nested_quantifier_0, "{")}}" Span="[18..19)" Text="{" /> 4855<Diagnostic Message="{{string.Format(FeaturesResources.Nested_quantifier_0, "{")}}" Span="[18..19)" Text="{" /> 5009<Diagnostic Message="{{string.Format(FeaturesResources.Nested_quantifier_0, "{")}}" Span="[18..19)" Text="{" /> 5086<Diagnostic Message="{{string.Format(FeaturesResources.Nested_quantifier_0, "*")}}" Span="[24..25)" Text="*" /> 5132<Diagnostic Message="{{string.Format(FeaturesResources.Nested_quantifier_0, "*")}}" Span="[21..22)" Text="*" /> 5197<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, "8")}" Span="[38..39)" Text="8" /> 5374<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_number_0, "7")}" Span="[17..18)" Text="7" /> 5527<Diagnostic Message="{{string.Format(FeaturesResources.Nested_quantifier_0, "*")}}" Span="[20..21)" Text="*" /> 5702<Diagnostic Message="{string.Format(FeaturesResources.Nested_quantifier_0, "*")}" Span="[19..20)" Text="*" /> 5824<Diagnostic Message="{string.Format(FeaturesResources.Quantifier_0_following_nothing, '*')}" Span="[20..21)" Text="*" /> 5928<Diagnostic Message="{{string.Format(FeaturesResources.Nested_quantifier_0, "*")}}" Span="[23..24)" Text="*" />
EmbeddedLanguages\RegularExpressions\CSharpRegexParserTests_ReferenceTests.cs (2)
1289<Diagnostic Message="{string.Format(FeaturesResources.Reference_to_undefined_group_name_0, "Open")}" Span="[20..24)" Text="Open" /> 1979<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)
5868CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL); 5869CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL); 5919CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL); 5920CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL); 6367CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", expectedIL); 6368CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", expectedIL); 6430CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", expectedIL); 6431CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Fails).VerifyIL("C.M", expectedIL); 6537CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeDebugExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL, sequencePoints: "C.Main"); 6538CompileAndVerify(string.Format(template, "checked "), options: TestOptions.UnsafeDebugExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL, sequencePoints: "C.Main"); 6594CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL); 6595CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseExe, expectedOutput: expectedOutput, verify: Verification.Fails).VerifyIL("C.Main", expectedIL); 6636CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).VerifyIL("C.M", expectedIL); 6637CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).VerifyIL("C.M", expectedIL); 6705CompileAndVerify(string.Format(template, "unchecked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).VerifyIL("C.M", expectedIL); 6706CompileAndVerify(string.Format(template, "checked"), options: TestOptions.UnsafeReleaseDll, verify: Verification.Passes).VerifyIL("C.M", expectedIL); 8672string.Format(casesTemplate, pointedAtType), 10768CompileAndVerify(string.Format(template, "int"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes); 10769CompileAndVerify(string.Format(template, "int*"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes); 10770CompileAndVerify(string.Format(template, "int**"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes); 10771CompileAndVerify(string.Format(template, "int[]"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes); 10772CompileAndVerify(string.Format(template, "int[][]"), options: TestOptions.UnsafeReleaseExe, expectedOutput: @"True", verify: Verification.Passes); 10773CompileAndVerify(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 (5)
Emit\EditAndContinue\EditAndContinueTests.cs (2)
12895var compilation0 = CreateCompilation(String.Format(source, 1), options: TestOptions.DebugDll); 12904var compilation1 = compilation0.WithSource(String.Format(source, i));
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)
739var message = string.Format("'{0}' must have a non-null non-empty 'Category'", descriptor.Id); 854string message = new ArgumentException(string.Format(CodeAnalysisResources.UnsupportedDiagnosticReported, AnalyzerReportingUnsupportedDiagnostic.UnsupportedDescriptor.Id), "diagnostic").Message; 855IFormattable context = $@"{string.Format(CodeAnalysisResources.ExceptionContext, $@"Compilation: {compilation.AssemblyName}")} 860{string.Format(CodeAnalysisResources.DisableAnalyzerDiagnosticsMessage, "ID_1")}"; 912string message = new ArgumentException(string.Format(CodeAnalysisResources.InvalidDiagnosticIdReported, AnalyzerWithInvalidDiagnosticId.Descriptor.Id), "diagnostic").Message; 914IFormattable context = $@"{string.Format(CodeAnalysisResources.ExceptionContext, $@"Compilation: {compilation.AssemblyName}")} 919{string.Format(CodeAnalysisResources.DisableAnalyzerDiagnosticsMessage, "Invalid ID")}"; 952string message = new ArgumentException(string.Format(CodeAnalysisResources.SupportedDiagnosticsHasNullDescriptor, analyzerFullName), "SupportedDiagnostics").Message; 1064IFormattable context = $@"{string.Format(CodeAnalysisResources.ExceptionContext, contextDetail)} 1069{string.Format(CodeAnalysisResources.DisableAnalyzerDiagnosticsMessage, "ID")}"; 1109IFormattable context = $@"{string.Format(CodeAnalysisResources.ExceptionContext, $@"Compilation: {compilation.AssemblyName} 1115{string.Format(CodeAnalysisResources.DisableAnalyzerDiagnosticsMessage, "ID")}"; 1478var tree = CSharpSyntaxTree.ParseText(string.Format(source, treeNum++), path: "SourceFileRegular.cs"); 1480tree = CSharpSyntaxTree.ParseText(string.Format(source, treeNum++), path: "AssemblyInfo.cs"); 1486tree = CSharpSyntaxTree.ParseText(string.Format(source, treeNum++), path: fileName); 1496tree = CSharpSyntaxTree.ParseText(string.Format(autoGeneratedPrefix + source, treeNum++), path: $"SourceFileWithAutoGeneratedComment{i++}.cs"); 1506tree = CSharpSyntaxTree.ParseText(string.Format(source, treeNum++), path: myGeneratedFileTrueName); 1514tree = CSharpSyntaxTree.ParseText(string.Format(source, treeNum++), path: myGeneratedFileCaseInsensitiveTrueName); 1520tree = CSharpSyntaxTree.ParseText(string.Format(source, treeNum++), path: "MyGeneratedFileFalse.cs"); 1526tree = CSharpSyntaxTree.ParseText(string.Format(source, treeNum++), path: "MyGeneratedFileAuto.cs"); 1729var squiggledText = string.Format("GeneratedCode{0}", i); 1737squiggledText = string.Format("Nested{0}", i); 1745squiggledText = string.Format("NonGeneratedCode{0}", i); 1753squiggledText = string.Format("NestedGeneratedCode{0}", i); 1776names.Add(string.Format("GeneratedCode{0}(IsGeneratedCode:True)", i)); 1777names.Add(string.Format("Nested{0}(IsGeneratedCode:True)", i)); 1779names.Add(string.Format("NestedGeneratedCode{0}(IsGeneratedCode:True)", i)); 1787addNames = 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)
20353var source2 = string.Format(source2Template, fillIn); 20537var source2 = string.Format(source2Template, fillIn);
Semantics\PatternMatchingTests3.cs (1)
2621var source = string.Format(@"
Microsoft.CodeAnalysis.CSharp.Features (10)
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (1)
65var titleComment = Comment(string.Format(" // {0}", title)).WithAdditionalAnnotations(Formatter.Annotation);
ConvertToExtension\ConvertToExtensionCodeRefactoringProvider.cs (1)
166string.Format(CSharpFeaturesResources.Convert_0_extension_methods_to_extension, specificExtension.Value.FirstParameter.Type.ToDisplayString()),
ImplementInterface\AbstractChangeImplementationCodeRefactoringProvider.cs (1)
110string.Format(Implement_0, string.Join(", ", interfaceNames)),
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider.cs (2)
155string.Format(FeaturesResources.Create_and_assign_field_0, field.Name), 158string.Format(FeaturesResources.Create_and_assign_property_0, property.Name),
SimplifyTypeNames\SimplifyTypeNamesCodeFixProvider.cs (2)
37return string.Format(FeaturesResources.Simplify_name_0, nodeText); 40return string.Format(FeaturesResources.Simplify_member_access_0, nodeText);
src\Analyzers\CSharp\CodeFixes\DisambiguateSameVariable\CSharpDisambiguateSameVariableCodeFixProvider.cs (1)
123title = string.Format(titleFormat, $"{memberContainer}.{matchingMember.Name}");
src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (2)
99string.Format(CodeFixesResources.Do_not_change_this_code_Put_cleanup_code_in_0_method, disposeMethodDisplayString), 107string.Format(CodeFixesResources.TODO_colon_override_finalizer_only_if_0_has_code_to_free_unmanaged_resources, disposeMethodDisplayString),
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (131)
EditAndContinue\ActiveStatementTests.cs (1)
12599Diagnostic(RudeEditKind.UpdateAroundActiveStatement, "B();", string.Format(FeaturesResources._0_directive, "line")));
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (1)
766? $"ENC0089: {string.Format(FeaturesResources.Modifying_source_file_0_requires_restarting_the_application_because_the_file_is_too_big, filePath)}"
EmbeddedLanguages\ValidateJsonStringTests.cs (10)
47diagnosticMessage: string.Format(FeaturesResources.JSON_issue_0, FeaturesResources.Constructors_not_allowed)); 65diagnosticMessage: string.Format(FeaturesResources.JSON_issue_0, FeaturesResources.Constructors_not_allowed)); 83diagnosticMessage: string.Format(FeaturesResources.JSON_issue_0, 84string.Format(FeaturesResources._0_unexpected, '}'))); 110diagnosticMessage: string.Format(FeaturesResources.JSON_issue_0, 137diagnosticMessage: string.Format(FeaturesResources.JSON_issue_0, 208diagnosticMessage: string.Format(FeaturesResources.JSON_issue_0, 235diagnosticMessage: string.Format(FeaturesResources.JSON_issue_0, 310diagnosticMessage: string.Format(FeaturesResources.JSON_issue_0, 341diagnosticMessage: string.Format(FeaturesResources.JSON_issue_0,
EmbeddedLanguages\ValidateRegexStringTests.cs (2)
49diagnosticMessage: string.Format(FeaturesResources.Regex_issue_0, FeaturesResources.Too_many_close_parens)); 69diagnosticMessage: string.Format(FeaturesResources.Regex_issue_0, FeaturesResources.Too_many_close_parens));
GenerateFromMembers\AddConstructorParametersFromMembers\AddConstructorParametersFromMembersTests.cs (33)
93CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 135CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 184CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i, string s)"), codeAction.Title) 231CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i, string s)"), codeAction.Title) 278CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i, string s)"), codeAction.Title) 320CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_optional_parameters_to_0, "Program(int i)"), codeAction.Title) 375CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "Program(int i, string s)"), codeAction.Title) 430CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "Program(int i, string s)"), codeAction.Title) 470CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(bool b)"), codeAction.Title) 511CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_optional_parameters_to_0, "Program(bool b)"), codeAction.Title) 1199CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i)"), codeAction.Title) 1244CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i, int j)"), codeAction.Title) 1290CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i, int j, int k)"), codeAction.Title) 1335CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i)"), codeAction.Title) 1381CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i, int j)"), codeAction.Title) 1426CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i, int j, int k)"), codeAction.Title) 1487CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i, double j, int k)"), codeAction.Title) 1544CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i, double j)"), codeAction.Title) 1586CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int i)"), codeAction.Title) 1631CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(CodeFixesResources.Add_to_0, "C(int l, double m, int n)"), codeAction.Title) 1948CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 1988CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 2028CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 2068CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 2108CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 2148CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 2189CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 2230CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 2270CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 2310CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 2350CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 2390CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "Program(int i)"), codeAction.Title) 2693CodeActionVerifier = (codeAction, verifier) => verifier.Equal(string.Format(FeaturesResources.Add_parameters_to_0, "C(int original, int original2)"), codeAction.Title)
GenerateVariable\GenerateVariableTests.cs (29)
91string.Format(CodeFixesResources.Generate_field_0, "goo"), 92string.Format(CodeFixesResources.Generate_read_only_field_0, "goo"), 93string.Format(CodeFixesResources.Generate_property_0, "goo"), 94string.Format(CodeFixesResources.Generate_local_0, "goo"), 95string.Format(CodeFixesResources.Generate_parameter_0, "goo"), 113string.Format(CodeFixesResources.Generate_field_0, "_goo"), 114string.Format(CodeFixesResources.Generate_read_only_field_0, "_goo"), 355[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")]); 376[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")]); 553[string.Format(CodeFixesResources.Generate_field_0, "goo"), string.Format(CodeFixesResources.Generate_local_0, "goo"), string.Format(CodeFixesResources.Generate_parameter_0, "goo")]); 2430[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")]); 5319await TestExactActionSetOfferedAsync(code, [string.Format(CodeFixesResources.Generate_local_0, "Bar"), string.Format(CodeFixesResources.Generate_parameter_0, "Bar")]); 10550string.Format(CodeFixesResources.Generate_property_0, "Field"), 10551string.Format(CodeFixesResources.Generate_field_0, "Field"), 10574string.Format(CodeFixesResources.Generate_property_0, "Field"), 10575string.Format(CodeFixesResources.Generate_field_0, "Field"),
IntroduceVariable\IntroduceVariableTests.cs (5)
2187await TestExactActionSetOfferedAsync(code, [string.Format(FeaturesResources.Introduce_local_constant_for_0, "5")]); 2229[string.Format(FeaturesResources.Introduce_local_constant_for_0, "5"), string.Format(FeaturesResources.Introduce_local_constant_for_all_occurrences_of_0, "5")]); 3629string.Format(FeaturesResources.Introduce_local_constant_for_0, """ 3651string.Format(FeaturesResources.Introduce_constant_for_0, """
src\Analyzers\CSharp\Tests\AddExplicitCast\AddExplicitCastTests.cs (9)
2609title: string.Format(CodeFixesResources.Convert_type_to_0, "Derived")); 2629title: string.Format(CodeFixesResources.Convert_type_to_0, "Derived2")); 2677title: string.Format(CodeFixesResources.Convert_type_to_0, "Derived")); 2697title: string.Format(CodeFixesResources.Convert_type_to_0, "Derived2")); 2837title: string.Format(CodeFixesResources.Convert_type_to_0, "Derived")); 2860title: string.Format(CodeFixesResources.Convert_type_to_0, "Derived2")); 2919title: string.Format(CodeFixesResources.Convert_type_to_0, "string")); 2945title: string.Format(CodeFixesResources.Convert_type_to_0, "Derived")); 2971title: 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)
123""", index: 1, title: string.Format(AnalyzersResources.Implement_through_0, "inner")); 156""", index: 1, title: string.Format(AnalyzersResources.Implement_through_0, "inner")); 186""", index: 1, title: string.Format(AnalyzersResources.Implement_through_0, "inner")); 221""", index: 1, title: string.Format(AnalyzersResources.Implement_through_0, "inner")); 285""", index: 1, title: string.Format(AnalyzersResources.Implement_through_0, "inner")); 318""", index: 1, title: string.Format(AnalyzersResources.Implement_through_0, "inner")); 345string.Format(AnalyzersResources.Implement_through_0, "Inner"), 346string.Format(AnalyzersResources.Implement_through_0, "IInterface.Inner"), 397""", index: 1, title: string.Format(AnalyzersResources.Implement_through_0, "inner")); 427""", index: 1, title: string.Format(AnalyzersResources.Implement_through_0, "inner")); 502""", index: 1, title: string.Format(AnalyzersResources.Implement_through_0, "inner")); 593""", index: 1, title: string.Format(AnalyzersResources.Implement_through_0, "inner")); 630""", index: 1, title: string.Format(AnalyzersResources.Implement_through_0, "inner")); 680""", index: 1, title: string.Format(AnalyzersResources.Implement_through_0, "inner")); 713""", index: 1, title: string.Format(AnalyzersResources.Implement_through_0, "inner")); 746""", index: 1, title: string.Format(AnalyzersResources.Implement_through_0, "inner")); 796""", index: 1, title: string.Format(AnalyzersResources.Implement_through_0, "inner")); 829""", index: 1, title: string.Format(AnalyzersResources.Implement_through_0, "inner")); 932""", [AnalyzersResources.Implement_abstract_class, string.Format(AnalyzersResources.Implement_through_0, "_base")]); 950""", [AnalyzersResources.Implement_abstract_class, string.Format(AnalyzersResources.Implement_through_0, "_base")]); 968""", [AnalyzersResources.Implement_abstract_class, string.Format(AnalyzersResources.Implement_through_0, "B")]); 986""", [AnalyzersResources.Implement_abstract_class, string.Format(AnalyzersResources.Implement_through_0, "B")]);
src\Analyzers\CSharp\Tests\ImplementInterface\ImplementInterfaceTests.cs (3)
7774// // {{string.Format(CodeFixesResources.TODO_colon_override_finalizer_only_if_0_has_code_to_free_unmanaged_resources, "Dispose(bool disposing)")}} 7777// // {{string.Format(CodeFixesResources.Do_not_change_this_code_Put_cleanup_code_in_0_method, "Dispose(bool disposing)")}} 7783// {{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)
1486.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)
515string.Format(CSharpCodeFixesResources.Upgrade_this_project_to_csharp_language_version_0, "7.0"), 516string.Format(CSharpCodeFixesResources.Upgrade_all_csharp_projects_to_language_version_0, "7.0") 545string.Format(CSharpCodeFixesResources.Upgrade_this_project_to_csharp_language_version_0, "8.0"), 546string.Format(CSharpCodeFixesResources.Upgrade_all_csharp_projects_to_language_version_0, "8.0") 574string.Format(CSharpCodeFixesResources.Upgrade_this_project_to_csharp_language_version_0, "7.0") 603string.Format(CSharpCodeFixesResources.Upgrade_this_project_to_csharp_language_version_0, "7.0") 633string.Format(CSharpCodeFixesResources.Upgrade_this_project_to_csharp_language_version_0, defaultVersion), 634string.Format(CSharpCodeFixesResources.Upgrade_all_csharp_projects_to_language_version_0, defaultVersion) 658[string.Format(CSharpCodeFixesResources.Upgrade_this_project_to_csharp_language_version_0, "8.0")]); 686string.Format(CSharpCodeFixesResources.Upgrade_this_project_to_csharp_language_version_0, defaultEffectiveVersion), 687string.Format(CSharpCodeFixesResources.Upgrade_all_csharp_projects_to_language_version_0, defaultEffectiveVersion)
UseNamedArguments\UseNamedArgumentsTests.cs (2)
103ExactActionSetOffered = [string.Format(FeaturesResources.Add_argument_name_0, "arg2")], 647ExactActionSetOffered = [string.Format(FeaturesResources.Add_argument_name_0, "arg2")],
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Hosting\CSharpReplServiceProvider.cs (1)
25=> string.Format(CSharpScriptingResources.LogoLine1, CommonCompiler.GetProductVersion(typeof(CSharpReplServiceProvider)));
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (2)
CsiTests.cs (2)
60{string.Format(CSharpScriptingResources.LogoLine1, s_compilerVersion)} 76(1,1): error CS0006: {string.Format(CSharpResources.ERR_NoMetadataFile, "C.dll")}
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (10)
CommandLineRunnerTests.cs (10)
31private string LogoAndHelpPrompt => $@"{string.Format(CSharpScriptingResources.LogoLine1, s_compilerVersion)} 78var logoOutput = $@"{string.Format(CSharpScriptingResources.LogoLine1, s_compilerVersion)} 111var logoOutput = $@"{string.Format(CSharpScriptingResources.LogoLine1, s_compilerVersion)} 256var error = $@"error CS2001: {string.Format(CSharpResources.ERR_FileNotFound, Path.Combine(AppContext.BaseDirectory, "@arg1"))}"; 403var error = $@"error CS2001: {string.Format(CSharpResources.ERR_FileNotFound, Path.Combine(AppContext.BaseDirectory, "a + b"))}"; 416$@"{string.Format(CSharpScriptingResources.LogoLine1, s_compilerVersion)} 457var error = $@"error CS0246: {string.Format(CSharpResources.ERR_SingleTypeNameNotFound, "Alpha")}"; 650(1,1): error CS0006: {string.Format(CSharpResources.ERR_NoMetadataFile, "C.dll")} 660$@"(1,1): error CS0006: {string.Format(CSharpResources.ERR_NoMetadataFile, "C.dll")}", 915$@"{string.Format(CSharpScriptingResources.LogoLine1, s_compilerVersion)}
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (19)
Semantics\ImplicitObjectCreationTests.cs (2)
4387var libBv1 = CreateCompilation(string.Format(libBTemplate, "1"), assemblyName: "B", options: signedDll); 4388var 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)
22028var 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 (154)
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)
6298var 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)
68402return " + string.Format(returnTemplate, "x") + @"; 68407return " + string.Format(returnTemplate, "x") + @"; 68437" + string.Format(extraOpTemplate, "T2") + @" 68442" + 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)
1558var expectedMessage = "error CS8806: " + string.Format(CSharpResources.ERR_UnsupportedCallingConvention, "delegate* unmanaged[]<string>");
Symbols\IndexerTests.cs (1)
2532AssertEx.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 (5)
2967CreateCompilation(string.Format(sourceTemplate, "")).VerifyDiagnostics( 2973CreateCompilation(string.Format(sourceTemplate, "void M();")).VerifyDiagnostics( 2980CreateCompilation(string.Format(sourceTemplate, "void m();")).VerifyDiagnostics( 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\SymbolErrorTests.cs (17)
19877CreateCompilation(string.Format(template, "int Item;")).VerifyDiagnostics( 19885CreateCompilation(string.Format(template, "int get_Item;")).VerifyDiagnostics( 19892CreateCompilation(string.Format(template, "int set_Item;")).VerifyDiagnostics( 19900CreateCompilation(string.Format(template, "int Item() { return 0; }")).VerifyDiagnostics( 19905CreateCompilation(string.Format(template, "int set_Item() { return 0; }")).VerifyDiagnostics(); 19920CreateCompilation(string.Format(template, "int P;")).VerifyDiagnostics( 19928CreateCompilation(string.Format(template, "int get_P;")).VerifyDiagnostics( 19935CreateCompilation(string.Format(template, "int set_P;")).VerifyDiagnostics( 19943CreateCompilation(string.Format(template, "int P() { return 0; }")).VerifyDiagnostics( 19948CreateCompilation(string.Format(template, "int set_P() { return 0; }")).VerifyDiagnostics(); 19951CreateCompilation(string.Format(template, "int Item;")).VerifyDiagnostics( 19955CreateCompilation(string.Format(template, "int get_Item;")).VerifyDiagnostics( 19959CreateCompilation(string.Format(template, "int set_Item;")).VerifyDiagnostics( 19963CreateCompilation(string.Format(template, "int Item() { return 0; }")).VerifyDiagnostics(); 19964CreateCompilation(string.Format(template, "int set_Item() { return 0; }")).VerifyDiagnostics(); 21943var 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)
3804return 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)
28var commentText = string.Format(@"/// <see cref=""{0}""/>", text);
Parsing\NameAttributeValueParsingTests.cs (1)
29var commentText = string.Format(@"/// <param name=""{0}""/>", text);
Parsing\ParserErrorMessageTests.cs (1)
6541var 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 (7)
CSharpTestBase.cs (4)
1820var start = String.Format(bindStartFmt, i); 1821var end = String.Format(bindEndFmt, i); 1833var start2 = String.Format(bindStartFmt, which); 1834var end2 = String.Format(bindEndFmt, which);
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)
86throw new ArgumentException(string.Format(WorkspaceExtensionsResources.Cannot_generate_code_for_unsupported_operator_0, method.Name), nameof(method));
Microsoft.CodeAnalysis.Debugging.Package (8)
CustomDebugInfoReader.cs (8)
363throw new InvalidOperationException(string.Format("Expected at most one Using record for method {0}", FormatMethodToken(methodToken))); 372throw new InvalidOperationException(string.Format("Did not expect both Forward and ForwardToModule records for method {0}", FormatMethodToken(methodToken))); 390throw new InvalidOperationException(string.Format("Expected at most one ForwardToModule record for method {0}", FormatMethodToken(methodToken))); 432throw new InvalidOperationException(string.Format("Group size indicates more imports than there are import strings (method {0}).", FormatMethodToken(methodToken))); 438throw new InvalidOperationException(string.Format("Encountered extern alias info before all import strings were consumed (method {0}).", FormatMethodToken(methodToken))); 458throw new InvalidOperationException(string.Format("Expected only extern alias info strings after consuming the indicated number of imports (method {0}).", FormatMethodToken(methodToken))); 472throw new InvalidOperationException(string.Format("Group size indicates fewer imports than there are import strings (method {0}).", FormatMethodToken(methodToken))); 845return string.Format("0x{0:x8}", methodToken);
Microsoft.CodeAnalysis.EditorFeatures (16)
BackgroundWorkIndicator\BackgroundWorkIndicatorContext.cs (1)
242_trackingSpan, [string.Format(EditorFeaturesResources._0_Esc_to_cancel, data.description)]);
ChangeSignature\AbstractChangeSignatureCommandHandler.cs (1)
125string.Format(EditorFeaturesResources.Preview_Changes_0, EditorFeaturesResources.Change_Signature),
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)
95message: string.Format(EditorFeaturesWpfResources.Error_performing_rename_0, ex.Message),
InlineRename\UI\Adornment\RenameFlyoutViewModel.cs (3)
377StatusText = string.Format(EditorFeaturesResources._0_unresolvable_conflict_s, unresolvedConflicts); 384StatusText = string.Format(EditorFeaturesResources._0_conflict_s_will_be_resolved, resolvableConflicts); 406SearchText = string.Format(EditorFeaturesResources.Rename_will_update_0_references_in_1_file, referenceCount);
Navigation\AbstractDefinitionLocationService.cs (4)
99? string.Format(EditorFeaturesResources._0_declarations, symbolDisplayName) 100: string.Format(EditorFeaturesResources._0_declarations_and_interceptors, symbolDisplayName); 155var title = string.Format(EditorFeaturesResources._0_implemented_members, 214var title = string.Format(EditorFeaturesResources._0_intercepted_locations,
Preview\AbstractPreviewFactoryService.cs (2)
203string.Format(EditorFeaturesResources.Adding_project_0, project.Name))); 210string.Format(EditorFeaturesResources.Removing_project_0, project.Name)));
Suggestions\FixAll\FixAllGetFixesService.cs (1)
23string.Format(EditorFeaturesResources.Preview_Changes_0, fixAllPreviewChangesTitle),
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (484)
CodeGeneration\CodeGenerationTests.cs (1)
260var expectedMessage = string.Format(WorkspaceExtensionsResources.Cannot_generate_code_for_unsupported_operator_0, method.Name);
EditAndContinue\EditAndContinueLanguageServiceTests.cs (1)
197$"RestartRequired ENC0033: {document.FilePath}(0, 2, 0, 3): {string.Format(FeaturesResources.Deleting_0_requires_restarting_the_application, "x")}"
InheritanceMargin\InheritanceMarginTests.cs (4)
1445memberName: string.Format(FeaturesResources.Directives_from_0, "Test2.cs"), 1464memberName: string.Format(FeaturesResources.Directives_from_0, "Test2.cs"), 1488memberName: string.Format(FeaturesResources.Directives_from_0, "Test2.cs"), 1507memberName: string.Format(FeaturesResources.Directives_from_0, "Test2.cs"),
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
280xmlString = string.Concat(xmlString, string.Format(@"
MetadataAsSource\MetadataAsSourceTests.cs (404)
75{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 77{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 78{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 79{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 92{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 94{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 95{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 96{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 140{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 142{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 143{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 144{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 157{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 159{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 160{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 161{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 207{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 209{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 210{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 211{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 224{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 226{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 227{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 228{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 281{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 283{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 284{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 285{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 301{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 303{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 304{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 305{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 356{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 358{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 359{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 360{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 374{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 376{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 377{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 378{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 429{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 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")}} 447{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 449{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 450{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 451{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 509{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 511{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 512{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 513{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 529{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 531{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 532{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 533{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 591{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 593{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 594{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 595{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 611{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 613{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 614{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 615{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 668{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 670{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 671{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 672{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 688{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 690{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 691{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 692{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 745{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 747{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 748{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 749{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 765{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 767{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 768{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 769{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 822{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 824{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 825{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 826{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 842{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 844{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 845{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 846{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 893{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 895{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 896{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 897{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 911{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 913{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 914{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 915{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 968{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 970{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 971{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 972{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 988{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 990{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 991{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 992{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1045{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 1047{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1048{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1049{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1064{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 1066{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1067{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1068{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1190{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 1192{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1193{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1194{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1208{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 1210{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1211{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1212{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1273{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 1275{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1276{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1277{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1291{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 1293{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1294{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1295{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1342{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 1344{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1345{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1346{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1362{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 1364{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1365{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1366{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1420{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 1422{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1423{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1424{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1441{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 1443{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1444{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1445{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1496{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 1498{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1499{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1500{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1514{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 1516{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1517{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1518{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1581{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 1583{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1584{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1585{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1601{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 1603{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1604{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1605{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1663{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 1665{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1666{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1667{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1681{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 1683{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1684{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1685{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1735{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 1737{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1738{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1739{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1753{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 1755{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1756{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1757{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1827{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 1829{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1830{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1831{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1847{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 1849{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1850{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1851{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 2237{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 2239{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2240{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2241{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 2327{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 2329{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2330{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2331{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 2507{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 2509{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2510{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2511{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 2588{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 2590{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2591{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2592{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 2682{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 2684{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2685{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2686{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 2688{{string.Format(FeaturesResources.Resolve_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2689{{string.Format(FeaturesResources.Found_single_assembly_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2690{{string.Format(FeaturesResources.Load_from_0, "System.v4_6_1038_0.dll")}} 2708{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 2710{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2711{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2712{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 2714{{string.Format(FeaturesResources.Resolve_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2715{{string.Format(FeaturesResources.Found_single_assembly_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2716{{string.Format(FeaturesResources.Load_from_0, "System.v4_6_1038_0.dll")}} 2784{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 2786{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2787{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2788{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 2806{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 2808{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2809{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2810{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 2881{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 2883{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2884{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2885{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 2904{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 2906{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2907{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 2908{{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")}} 3124{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 3126{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3127{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3128{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3212{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 3214{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3215{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3216{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3240{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 3242{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3243{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3244{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3310{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 3312{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3313{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3314{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3332{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 3334{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3335{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3336{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3451{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 3453{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3454{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3455{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3457{{string.Format(FeaturesResources.Resolve_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3458{{string.Format(FeaturesResources.Found_single_assembly_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3459{{string.Format(FeaturesResources.Load_from_0, "System.v4_6_1038_0.dll")}} 3477{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 3479{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3480{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3481{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3483{{string.Format(FeaturesResources.Resolve_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3484{{string.Format(FeaturesResources.Found_single_assembly_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3485{{string.Format(FeaturesResources.Load_from_0, "System.v4_6_1038_0.dll")}} 3787{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 3789{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3790{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3791{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3805{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 3807{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3808{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3809{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3863{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 3865{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3866{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3867{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3881{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 3883{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3884{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3885{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3941{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 3943{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3944{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3945{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 3961{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 3963{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3964{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 3965{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4021{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 4023{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4024{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4025{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4041{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 4043{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4044{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4045{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4105{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 4107{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4108{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4109{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4128{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 4130{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4131{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4132{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4193{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 4195{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4196{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4197{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4216{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 4218{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4219{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4220{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4274{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 4276{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4277{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4278{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4292{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 4294{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4295{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4296{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4350{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 4352{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4353{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4354{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4368{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 4370{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4371{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4372{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4433{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 4435{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4436{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4437{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4451{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 4453{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4454{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4455{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4511{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 4513{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4514{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4515{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4529{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 4531{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4532{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4533{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4599{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 4601{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4602{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4603{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4629{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 4631{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4632{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4633{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4699{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 4701{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4702{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4703{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4729{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 4731{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4732{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4733{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4799{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 4801{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4802{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4803{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4829{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 4831{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4832{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4833{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4896{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 4898{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4899{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4900{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4917{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 4919{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4920{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4921{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 4993{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 4995{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4996{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 4997{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 5023{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 5025{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 5026{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 5027{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 5097{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 5099{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 5100{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 5101{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 5127{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 5129{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 5130{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 5131{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 5202{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 5204{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 5205{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 5206{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 5232{{string.Format(FeaturesResources._0_items_in_cache, 9)}} 5234{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 5235{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 5236{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}}
MetadataAsSource\MetadataAsSourceTests.CSharp.cs (58)
74{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 76{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 77{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 78{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 124{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 126{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 127{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 128{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 170{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 172{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 173{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 174{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 176{{string.Format(FeaturesResources.Resolve_0, "System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51")}} 177{{string.Format(FeaturesResources.Found_single_assembly_0, "System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51")}} 178{{string.Format(FeaturesResources.Load_from_0, "System.ValueTuple (net461)")}} 394{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 396{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 397{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 398{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 400{{string.Format(FeaturesResources.Resolve_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 401{{string.Format(FeaturesResources.Found_single_assembly_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 402{{string.Format(FeaturesResources.Load_from_0, "System.v4_6_1038_0.dll")}} 443{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 445{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 446{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 447{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 511{string.Format(FeaturesResources._0_items_in_cache, 6)} 513{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")} 514{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")} 515{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")} 610{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 612{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 613{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 614{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 704{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 706{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 707{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 708{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 766{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 768{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 769{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 770{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 825{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 827{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 828{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 829{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 875{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 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")}} 944{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 946{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 947{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 948{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}} 1012{{string.Format(FeaturesResources._0_items_in_cache, 6)}} 1014{{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1015{{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")}} 1016{{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")}}
MetadataAsSource\MetadataAsSourceTests.VisualBasic.cs (15)
55{string.Format(FeaturesResources._0_items_in_cache, 9)} 57{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")} 58{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")} 59{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")} 61{string.Format(FeaturesResources.Resolve_0, "Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")} 62{string.Format(FeaturesResources.Found_single_assembly_0, "Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")} 63{string.Format(FeaturesResources.Load_from_0, "Microsoft.VisualBasic (net461)")} 172{string.Format(FeaturesResources._0_items_in_cache, 9)} 401{string.Format(FeaturesResources._0_items_in_cache, 9)} 403{string.Format(FeaturesResources.Resolve_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")} 404{string.Format(FeaturesResources.Found_single_assembly_0, "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")} 405{string.Format(FeaturesResources.Load_from_0, "mscorlib.v4_6_1038_0.dll")} 407{string.Format(FeaturesResources.Resolve_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")} 408{string.Format(FeaturesResources.Found_single_assembly_0, "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")} 409{string.Format(FeaturesResources.Load_from_0, "System.v4_6_1038_0.dll")}
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (8)
Diagnostics\DiagnosticServiceTests.vb (3)
611Dim expectedMessage = String.Format(OperationAnalyzer.Descriptor.MessageFormat.ToString(), actionKind) 846Dim expectedMessage = String.Format(StatefulCompilationAnalyzer.Descriptor.MessageFormat.ToString(), 1) 879Dim expectedMessage = String.Format(StatefulCompilationAnalyzer.Descriptor.MessageFormat.ToString(), 1)
IntelliSense\CompletionServiceTests_Exclusivitiy.vb (3)
49Assert.Equal(String.Format(CompletionItemExclusive, 2), list.ItemsList.First.DisplayText) 50Assert.Equal(String.Format(CompletionItemExclusive, 3), list.ItemsList.Last.DisplayText) 91context.AddItem(CompletionItem.Create(String.Format(s_itemText, s_index)))
IntelliSense\CSharpCompletionCommandHandlerTests.vb (1)
2893Assert.Contains(String.Format("Numeros num = Nu{0}", c), state.GetLineTextFromCaretPosition(), StringComparison.Ordinal)
Rename\RenameEngineResult.vb (1)
218AssertEx.Fail(String.Format("The label '{0}' was not mentioned in the test.", label))
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)
69displayValue: 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)
259throw new ArgumentException(string.Format("Nested braces in '{0}'", formatString)); 267throw new ArgumentException(string.Format("Unmatched closing brace in '{0}'", formatString)); 376throw 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)
69displayValue: 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.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.Features (98)
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.AddConstructorParametersCodeAction.cs (3)
96return string.Format(CodeFixesResources.Add_to_0, signature); 101? string.Format(FeaturesResources.Add_optional_parameters_to_0, signature) 102: string.Format(FeaturesResources.Add_parameters_to_0, signature);
AddImport\References\AssemblyReference.cs (1)
30var 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 (1)
69var description = string.Format(FeaturesResources.Add_reference_to_0, missingAssemblyIdentity.GetDisplayName());
AddPackage\InstallPackageDirectlyCodeActionOperation.cs (1)
60? string.Format(FeaturesResources.Find_and_install_latest_version_of_0, _packageName)
CodeFixes\Configuration\ConfigureCodeStyle\ConfigureCodeStyleOptionCodeFixProvider.TopLevelConfigureCodeStyleOptionCodeAction.cs (1)
15: base(nestedActions, string.Format(FeaturesResources.Configure_0_code_style, diagnostic.Id))
CodeFixes\Service\CodeFixService.cs (2)
423? string.Format(FeaturesResources.Error_creating_instance_of_CodeFixProvider_0, lazyFixer.Metadata.Name) 871string.Format(
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (1)
75return string.Format(s_suppressionsFileCommentTemplate, SingleLineCommentStart);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction.cs (1)
52: base(fixer, title: string.Format(FeaturesResources.Remove_Suppression_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.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)
139string.Format(FeaturesResources.Await_the_preceding_expression_and_add_ConfigureAwait_0, _falseKeyword),
Completion\Providers\RecommendedKeyword.cs (1)
35textContentBuilder.AddText(string.Format(FeaturesResources._0_Keyword, keyword));
EmbeddedLanguages\Json\JsonParser.cs (7)
56private static readonly string s_closeBracketExpected = string.Format(FeaturesResources._0_expected, ']'); 57private static readonly string s_closeBraceExpected = string.Format(FeaturesResources._0_expected, '}'); 58private static readonly string s_openParenExpected = string.Format(FeaturesResources._0_expected, '('); 59private static readonly string s_closeParenExpected = string.Format(FeaturesResources._0_expected, ')'); 60private static readonly string s_commaExpected = string.Format(FeaturesResources._0_expected, ','); 197string.Format(FeaturesResources._0_unexpected, ','), 204string.Format(FeaturesResources._0_unexpected, ':'),
EmbeddedLanguages\Json\JsonParser.JsonNetSyntaxChecks.cs (1)
168return new EmbeddedDiagnostic(string.Format(FeaturesResources._0_expected, ','), GetFirstToken(nextChild).GetSpan());
EmbeddedLanguages\Json\JsonParser.StrictSyntaxChecker.cs (3)
137return new EmbeddedDiagnostic(string.Format(FeaturesResources._0_unexpected, ","), child.GetSpan()); 142return new EmbeddedDiagnostic(string.Format(FeaturesResources._0_expected, ","), GetFirstToken(child).GetSpan()); 260=> 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\RegexParser.cs (2)
1108string.Format(FeaturesResources.Reference_to_undefined_group_number_0, val), 1118string.Format(FeaturesResources.Reference_to_undefined_group_name_0, val),
Emit\CompilationOutputs.cs (1)
124throw new InvalidOperationException(string.Format(FeaturesResources.MethodMustReturnStreamThatSupportsReadAndSeek, methodName));
EncapsulateField\AbstractEncapsulateFieldService.cs (2)
99string.Format(FeaturesResources.Encapsulate_field_colon_0_and_use_property, field.Name), 103string.Format(FeaturesResources.Encapsulate_field_colon_0_but_still_use_field, field.Name),
Extensions\ExtensionFolder.cs (3)
121throw new InvalidOperationException(string.Format(FeaturesResources.Extension_0_is_already_registered, assemblyFilePath)); 144throw new InvalidOperationException(string.Format(FeaturesResources.Extension_0_was_not_registered, assemblyFilePath)); 159throw 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)
238string.Format( 251string.Format( 276return new OperationStatus(succeeded: true, string.Format(FeaturesResources.Asynchronous_method_cannot_have_ref_out_parameters_colon_bracket_0_bracket, string.Join(", ", names))); 890return 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)
71string.Format(FeaturesResources._0_implementations,
FindUsages\AbstractFindUsagesService_FindReferences.cs (1)
111string.Format(FeaturesResources._0_references,
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersCodeRefactoringProvider.cs (1)
276string.Format(FeaturesResources.Implement_0, displayName),
GoToBase\AbstractGoToBaseService.cs (1)
53string.Format(FeaturesResources._0_bases,
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);
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\MetadataAsSourceGeneratedFileInfo.cs (2)
71? string.Format(@"[assembly: System.Reflection.AssemblyVersion(""{0}"")]", AssemblyIdentity.Version) 72: string.Format(@"<Assembly: System.Reflection.AssemblyVersion(""{0}"")>", AssemblyIdentity.Version);
NavigateTo\RoslynNavigateToItem.cs (1)
131(false, true) => string.Format(FeaturesResources.project_0, combinedProjectName),
PdbSourceDocument\IPdbSourceDocumentLogger.cs (1)
20=> logger.Log(string.Format(message, arg0));
QuickInfo\QuickInfoUtilities.cs (2)
144NullableFlowState.MaybeNull => string.Format(FeaturesResources._0_may_be_null_here, symbol.ToDisplayString(s_nullableDisplayFormat)), 145NullableFlowState.NotNull => string.Format(FeaturesResources._0_is_not_null_here, symbol.ToDisplayString(s_nullableDisplayFormat)),
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)
166return string.Format(
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (1)
369var title = string.Format(resourceString, signature);
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (2)
272: string.Format(CodeFixesResources.Take_0, topText); 277: string.Format(CodeFixesResources.Take_0, bottomText);
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.CodeAction.cs (1)
55return 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)
193return string.Format(
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (1)
94return string.Format(CodeFixesResources.Implement_interface_through_0, options.ThroughMember.Name);
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (1)
199string.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)
57var fixOneProjectTitle = string.Format(UpgradeThisProjectResource, newVersion); 65var fixAllProjectsTitle = string.Format(UpgradeAllProjectsResource, newVersion);
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (8)
363throw new InvalidOperationException(string.Format("Expected at most one Using record for method {0}", FormatMethodToken(methodToken))); 372throw new InvalidOperationException(string.Format("Did not expect both Forward and ForwardToModule records for method {0}", FormatMethodToken(methodToken))); 390throw new InvalidOperationException(string.Format("Expected at most one ForwardToModule record for method {0}", FormatMethodToken(methodToken))); 432throw new InvalidOperationException(string.Format("Group size indicates more imports than there are import strings (method {0}).", FormatMethodToken(methodToken))); 438throw new InvalidOperationException(string.Format("Encountered extern alias info before all import strings were consumed (method {0}).", FormatMethodToken(methodToken))); 458throw new InvalidOperationException(string.Format("Expected only extern alias info strings after consuming the indicated number of imports (method {0}).", FormatMethodToken(methodToken))); 472throw new InvalidOperationException(string.Format("Group size indicates fewer imports than there are import strings (method {0}).", FormatMethodToken(methodToken))); 845return string.Format("0x{0:x8}", methodToken);
Microsoft.CodeAnalysis.Features.UnitTests (14)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (9)
606AssertEx.Equal([$"{project.FilePath}: (0,0)-(0,0): Error ENC1006: {string.Format(FeaturesResources.UnableToReadSourceFileOrPdb, sourceFile.Path)}"], InspectDiagnostics(emitDiagnostics)); 652AssertEx.Equal([$"{document1.Project.FilePath}: (0,0)-(0,0): Error ENC1006: {string.Format(FeaturesResources.UnableToReadSourceFileOrPdb, sourceFile.Path)}"], InspectDiagnostics(emitDiagnostics)); 983AssertEx.Equal(["ENC0110: " + string.Format(FeaturesResources.Changing_the_signature_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.method)], 1124AssertEx.Equal(["ENC0110: " + string.Format(FeaturesResources.Changing_the_signature_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.method)], 1205"ENC0110: " + string.Format(FeaturesResources.Changing_the_signature_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.method) 1277["ENC0023: " + string.Format(FeaturesResources.Adding_an_abstract_0_or_overriding_an_inherited_0_requires_restarting_the_application, FeaturesResources.method)], 1320["ENC0110: " + string.Format(FeaturesResources.Changing_the_signature_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.method)], 1334["ENC0110: " + string.Format(FeaturesResources.Changing_the_signature_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.method)], 1400["ENC0023: " + string.Format(FeaturesResources.Adding_an_abstract_0_or_overriding_an_inherited_0_requires_restarting_the_application, FeaturesResources.method)],
EditAndContinue\EmitSolutionUpdateResultsTests.cs (2)
157$@"RestartRequired ENC0021: {sourcePath} (0,1)-(0,10): {string.Format(FeaturesResources.Adding_0_requires_restarting_the_application, "a")}", 158$@"RestartRequired ENC0033: {sourcePath} (0,1)-(0,10): {string.Format(FeaturesResources.Deleting_0_requires_restarting_the_application, "b")}",
EditAndContinue\UnitTestingHotReloadServiceTests.cs (1)
74["ENC0110: " + string.Format(FeaturesResources.Changing_the_signature_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.method)],
EditAndContinue\WatchHotReloadServiceTests.cs (2)
110["P: ENC0110: " + string.Format(FeaturesResources.Changing_the_signature_of_0_requires_restarting_the_application_because_it_is_not_supported_by_the_runtime, FeaturesResources.method)], 132["CS0103: " + string.Format(CSharpResources.ERR_NameNotInContext, "Unknown")],
Microsoft.CodeAnalysis.InteractiveHost (7)
Interactive\Core\InteractiveHost.cs (1)
213WriteOutputInBackground(isError: true, string.Format(InteractiveHostResources.Hosting_process_exited_with_exit_code_0, exitCode.Value));
Interactive\Core\InteractiveHost.LazyRemoteService.cs (1)
166string.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)
76throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 130return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 229return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
Microsoft.CodeAnalysis.LanguageServer (20)
HostWorkspace\LanguageServerProjectLoader.cs (4)
145_logger.LogInformation(string.Format(LanguageServerResources.Completed_reload_of_all_projects_in_0, stopwatch.Elapsed)); 239_logger.LogInformation(string.Format(LanguageServerResources.Successfully_completed_load_of_0, projectPath)); 247var message = string.Format(LanguageServerResources.Exception_thrown_0, e); 271message = string.Format(LanguageServerResources.There_were_problems_loading_project_0_See_log_for_details, Path.GetFileName(projectPath));
HostWorkspace\LanguageServerProjectSystem.cs (1)
65_logger.LogInformation(string.Format(LanguageServerResources.Loading_0, solutionFilePath));
HostWorkspace\ProjectDependencyHelper.cs (2)
56logger.LogWarning(string.Format(LanguageServerResources.Project_0_has_unresolved_dependencies, projectFileInfo.FilePath)); 98var message = string.Format(LanguageServerResources.Project_0_has_unresolved_dependencies, projectFileInfo.FilePath)
HostWorkspace\WorkspaceProjectFactoryService.cs (1)
45_logger.LogInformation(string.Format(LanguageServerResources.Project_0_loaded_by_CSharp_Dev_Kit, creationInfo.FilePath));
LanguageServer\Handler\Restore\RestoreHandler.cs (3)
54var stageName = string.Format(LanguageServerResources.Restoring_0, Path.GetFileName(path)); 55ReportProgress(progress, stageName, string.Format(LanguageServerResources.Running_dotnet_restore_on_0, path)); 73ReportProgress(progress, stageName, string.Format(LanguageServerResources.Failed_to_run_restore_on_0, path));
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)
57_progress.Report(partialResult with { Message = string.Format(LanguageServerResources.Test_run_error, testRunCompleteArgs.Error) });
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Extensions\Extensions.cs (1)
252throw new ArgumentException(string.Format("Document project language {0} is not valid", document.Project.Language));
Features\CodeCleanup\AbstractCodeCleanupService.cs (1)
226progressTracker.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)
44Title = string.Format(FeaturesResources._0_references_unquoted, "-"),
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (30)
CodeActions\CodeActionResolveTests.cs (23)
89var titlePath = new string[] { FeaturesResources.Introduce_constant, string.Format(FeaturesResources.Introduce_constant_for_0, "1") }; 91title: string.Format(FeaturesResources.Introduce_constant_for_0, "1"), 95FeaturesResources.Introduce_constant + "|" + string.Format(FeaturesResources.Introduce_constant_for_0, "1"), 121title: string.Format(FeaturesResources.Introduce_constant_for_0, "1"), 125FeaturesResources.Introduce_constant + "|" + string.Format(FeaturesResources.Introduce_constant_for_0, "1"), 160var titlePath = new string[] { string.Format(FeaturesResources.Rename_file_to_0, "ABC.cs") }; 162title: string.Format(FeaturesResources.Rename_file_to_0, "ABC.cs"), 166string.Format(FeaturesResources.Rename_file_to_0, "ABC.cs"), 183title: string.Format(FeaturesResources.Rename_file_to_0, "ABC.cs"), 187string.Format(FeaturesResources.Rename_file_to_0, "ABC.cs"), 228var titlePath = new string[] { string.Format(FeaturesResources.Encapsulate_field_colon_0_and_use_property, "_value") }; 230title: string.Format(FeaturesResources.Encapsulate_field_colon_0_and_use_property, "_value"), 234string.Format(FeaturesResources.Encapsulate_field_colon_0_and_use_property, "_value"), 278var titlePath = new string[] { string.Format(FeaturesResources.Move_type_to_0, "ABC.cs") }; 280title: string.Format(FeaturesResources.Move_type_to_0, "ABC.cs"), 284string.Format(FeaturesResources.Move_type_to_0, "ABC.cs"), 360title: string.Format(FeaturesResources.Move_type_to_0, "ABC.cs"), 364string.Format(FeaturesResources.Move_type_to_0, "ABC.cs"), 402var titlePath = new string[] { string.Format(FeaturesResources.Move_type_to_0, "BCD.cs") }; 404title: string.Format(FeaturesResources.Move_type_to_0, "BCD.cs"), 408string.Format(FeaturesResources.Move_type_to_0, "BCD.cs"), 486title: string.Format(FeaturesResources.Move_type_to_0, "BCD.cs"), 490string.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)
51var titlePath = new[] { string.Format(FeaturesResources.Move_type_to_0, "B.cs") }; 52var 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)
522var expectedMarkdown = $@"{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.Rebuild (2)
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));
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.Scripting (1)
Hosting\CommandLine\CommandLineRunner.cs (1)
401Console.Error.WriteLine(string.Format(ScriptingResources.PlusAdditionalError, notShown));
Microsoft.CodeAnalysis.Test.Utilities (21)
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 (5)
63return string.Format("\"{0}\"", symbol == null ? (object)reference : symbol.ToDisplayString(_symbolDisplayFormat)); 219sb.Append(string.Format(" {0,-10}", GetInstructionName(block.BranchCode))); 231sb.Append(string.Format(" IL_{0:x4}", branchBlock.Start)); 248sb.Append(string.Format(" {0,-10}", GetInstructionName(block.BranchCode))); 249sb.Append(string.Format(" IL_{0:x4}:", block.BranchesCount));
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)
76throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 130return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 229return 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 (16)
Compilation\VisualBasicCompilation.vb (4)
945Throw New ArgumentNullException(String.Format(VBResources.Trees0, i)) 949Throw New ArgumentException(String.Format(VBResources.TreesMustHaveRootNode, i)) 957Throw New ArgumentException(VBResources.SyntaxTreeAlreadyPresent, String.Format(VBResources.Trees0, i)) 1055Throw 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)
331Dim 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.VisualBasic.CodeStyle.Fixes (3)
src\Analyzers\VisualBasic\CodeFixes\Iterator\VisualBasicConvertToIteratorCodeFixProvider.vb (1)
98Dim title = String.Format(VisualBasicCodeFixesResources.Convert_0_to_Iterator, methodStatementNode.Identifier)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SymbolDisplayPartExtensions.vb (1)
21Return New SymbolDisplayPart(SymbolDisplayPartKind.ErrorTypeName, Nothing, String.Format("[{0}]", text))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (1)
393Throw New NotSupportedException(String.Format("Accessibility '{0}' not supported.", accessibility))
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests (10)
src\Analyzers\VisualBasic\Tests\AddExplicitCast\AddExplicitCastTests.vb (7)
2973Await TestInRegularAndScriptAsync(initialMarkup, String.Format(expect_format, "Derived"), index:=0, 2976Await TestInRegularAndScriptAsync(initialMarkup, String.Format(expect_format, "Derived2"), index:=1, 3039Await TestInRegularAndScriptAsync(initialMarkup, String.Format(expect_format, "Derived"), index:=0, 3042Await TestInRegularAndScriptAsync(initialMarkup, String.Format(expect_format, "Derived2"), index:=1, 3234Await TestInRegularAndScriptAsync(initialMarkup, String.Format(expect_format, "CStr(b)"), index:=0, 3237Await TestInRegularAndScriptAsync(initialMarkup, String.Format(expect_format, "CType(b, Derived)"), index:=1, 3240Await TestInRegularAndScriptAsync(initialMarkup, String.Format(expect_format, "CType(b, Derived2)"), index:=2,
src\Analyzers\VisualBasic\Tests\AliasAmbiguousType\AliasAmbiguousTypeTests.vb (2)
64Await TestInRegularAndScriptAsync(initialMarkup, String.Format(expectedMarkupTemplate, "Imports Ambiguous = N1.Ambiguous"), index:=0) 65Await TestInRegularAndScriptAsync(initialMarkup, String.Format(expectedMarkupTemplate, "Imports Ambiguous = N2.Ambiguous"), index:=1)
src\Features\VisualBasicTest\Utils.vb (1)
45Dim code = String.Format(format, statement)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (17)
CommandLineTests.vb (16)
1332desc = VisualBasicCommandLineParser.ParseResourceDescription("", String.Format("{0},e,private", longI), _baseDirectory, diags, embedded:=False) 4138Dim output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc+ {0}", src.ToString()), startFolder:=dir.ToString(), expectedRetCode:=0) 4188Dim output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc+ {0}", src.ToString()), startFolder:=dir.ToString(), expectedRetCode:=0) 4223output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc+ {0}", src.ToString()), startFolder:=dir.ToString(), expectedRetCode:=0) 4264Dim output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc:abcdfg.xyz /doc+ {0}", src.ToString()), startFolder:=dir.ToString()) 4283Dim output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc /out:MyXml.dll {0}", src.ToString()), startFolder:=dir.ToString()) 4302Dim output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc:doc.xml /doc+ {0}", src.ToString()), startFolder:=dir.ToString()) 4321Dim output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc:doc.xml /out:out.dll {0}", src.ToString()), startFolder:=dir.ToString()) 4340Dim output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc:doc.xml /doc /out:out.dll {0}", src.ToString()), startFolder:=dir.ToString()) 4359Dim output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc:doc.xml /out:out.dll /doc+ {0}", src.ToString()), startFolder:=dir.ToString()) 6836String.Format("/target:{0}", target), 6837String.Format("/out:{0}", outputFileName), 6844String.Format("/target:{0}", target), 6845String.Format("/out:{0}", outputFileName), 6846String.Format("/win32manifest:{0}", Path.GetFileName(manifestFile.Path)), 8672Dim output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, String.Format("/nologo /doc:doc.xml /out:out.exe /resource:doc.xml {0}", src.ToString()), startFolder:=dir.ToString())
TouchedFileLoggingTests.vb (1)
146expectedDoc = String.Format(expectedDoc,
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (34)
Attributes\AttributeTests_MarshalAs.vb (2)
391Dim fldName As String = String.Format("m_{0:X}", i) 518Dim fldName As String = String.Format("m_{0:X}", i)
CodeGen\CodeGenTuples.vb (2)
21666Dim corlibWithoutVT = CreateEmptyCompilation({String.Format(versionTemplate, "1") + corlib_vb}, options:=TestOptions.DebugDll, assemblyName:="corlib") 21670Dim corlibWithVT = CreateEmptyCompilation({String.Format(versionTemplate, "2") + corlib_vb + valuetuple_vb}, options:=TestOptions.DebugDll, assemblyName:="corlib")
Emit\EditAndContinue\EditAndContinueStateMachineTests.vb (12)
3179Dim source0 = MarkedSource(String.Format(template, " 3189Dim source1 = MarkedSource(String.Format(template, " 4195Dim source0 = MarkedSource(String.Format(template, " 4200Dim source1 = MarkedSource(String.Format(template, " 4456Dim source0 = MarkedSource(String.Format(template, " 4463Dim source1 = MarkedSource(String.Format(template, " 4925Dim source0 = MarkedSource(String.Format(template, " 4938Dim source1 = MarkedSource(String.Format(template, " 5455Dim source0 = MarkedSource(String.Format(template, " 5461Dim source1 = MarkedSource(String.Format(template, " 5888Dim source0 = MarkedSource(String.Format(template, " 5897Dim source1 = MarkedSource(String.Format(template, "
Emit\ResourceTests.vb (1)
337Assert.True([lib] <> IntPtr.Zero, String.Format("LoadLibrary failed with HResult: {0:X}", Marshal.GetLastWin32Error()))
ExpressionTrees\CodeGenExprLambda.vb (14)
176Dim descr1 = String.Format("-=-=-=-=-=-=-=-=- {0} {{0}} => {{0}} -=-=-=-=-=-=-=-=-", operation) 178list.Add(New ExpressionTreeTest With {.Description = String.Format(descr1, type1), 180String.Format("Func(Of {0}, {0})", type1), 181.Lambda = String.Format("Function(x) {0} x ", operation)}) 220Dim descr1 = String.Format("-=-=-=-=-=-=-=-=- {{0}} {0} Nothing => {{1}} -=-=-=-=-=-=-=-=-", operation) 225.Lambda = String.Format("Function(x) x {0} Nothing", operation)}) 596Dim descr1 = String.Format("-=-=-=-=-=-=-=-=- {{0}} {0} {{1}} => {{2}} -=-=-=-=-=-=-=-=-", operation) 601.Lambda = String.Format("Function(x, y) x {0} y", operation)}) 1843Dim descr1 = String.Format("-=-=-=-=-=-=-=-=- {0} -> {{0}} -=-=-=-=-=-=-=-=-", nothingLiteral) 1845list.Add(New ExpressionTreeTest With {.Description = String.Format(descr1, type), 1847String.Format("Func(Of {0})", type), 1848.Lambda = String.Format("Function() {0}", nothingLiteral)}) 1947testbuilder.AppendLine(String.Format("Console.WriteLine(""{0}"")", tst.Description)) 1949testbuilder.AppendLine(String.Format("Console.WriteLine(exprtree{0}.Dump)", count))
XmlLiteralTests.vb (3)
4531Dim [imports] = GlobalImport.Parse({String.Format("<xmlns:p=""{0}"">", identifier)}) 4533Dim source = String.Format(<![CDATA[ 4554Dim errors = String.Format(<![CDATA[
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
EvaluationContext.vb (1)
364diagnostics.Add(New SimpleMessageDiagnostic(String.Format(Resources.InvalidDebuggerStatement, syntax.Kind)))
Microsoft.CodeAnalysis.VisualBasic.Features (15)
CodeFixes\GenerateEndConstruct\GenerateEndConstructCodeFixProvider.vb (3)
202Return String.Format(VBFeaturesResources.Insert_the_missing_0, "End " + SyntaxFacts.GetText(endBlockSyntax.BlockKeyword.Kind)) 207Return String.Format(VBFeaturesResources.Insert_the_missing_0, SyntaxFacts.GetText(SyntaxKind.LoopKeyword)) 210Return String.Format(VBFeaturesResources.Insert_the_missing_0, SyntaxFacts.GetText(SyntaxKind.NextKeyword))
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.AddKeywordCodeAction.vb (1)
35Return String.Format(VBFeaturesResources.Insert_0, SyntaxFacts.GetText(BlockKindToKeywordKind(_createBlockKind)))
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.vb (1)
330Return String.Format(VBFeaturesResources.Delete_the_0_statement1, node.ToString().Trim())
CodeFixes\MoveToTopOfFile\MoveToTopOfFileCodeFixProvider.vb (1)
192Return String.Format(VBFeaturesResources.Delete_the_0_statement2, kind)
CodeFixes\Suppression\VisualBasicSuppressionCodeFixProvider.vb (1)
67Dim titleComment = SyntaxFactory.CommentTrivia(String.Format(" ' {0}", title)).WithAdditionalAnnotations(Formatter.Annotation)
Completion\KeywordRecommenders\Declarations\EndBlockKeywordRecommender.vb (5)
69Return String.Format(VBFeaturesResources.Terminates_a_0_block, keyword) 71Return String.Format(VBFeaturesResources.Terminates_an_0_block, keyword) 73Return String.Format(VBFeaturesResources.Terminates_the_definition_of_a_0_statement, keyword & " Case") 75Return String.Format(VBFeaturesResources.Terminates_the_definition_of_a_0_statement, keyword) 77Return String.Format(VBFeaturesResources.Terminates_the_definition_of_an_0_statement, keyword)
Completion\KeywordRecommenders\Expressions\CastOperatorsKeywordRecommender.vb (1)
41String.Format(VBFeaturesResources._0_function, SyntaxFacts.GetText(keyword)),
Completion\KeywordRecommenders\Expressions\IfKeywordRecommender.vb (1)
21$"{String.Format(VBFeaturesResources._0_function, "If")} (+1 {FeaturesResources.overload})",
src\Analyzers\VisualBasic\CodeFixes\Iterator\VisualBasicConvertToIteratorCodeFixProvider.vb (1)
98Dim title = String.Format(VisualBasicCodeFixesResources.Convert_0_to_Iterator, methodStatementNode.Identifier)
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (1)
Utils.vb (1)
45Dim code = String.Format(format, statement)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (17)
Compilation\ReferenceManagerTests.vb (4)
1269Dim il = String.Format(ilTemplate.Value, "") 1276Dim il = String.Format(ilTemplate.Value, " .publickeytoken = (31 BF 38 56 AD 36 4E 35 ) // 1.8V.6N5") 1283Dim il = String.Format(ilTemplate.Value, " .ver 4:0:0:0") 1290Dim il = String.Format(ilTemplate.Value, " .locale = (65 00 6E 00 2D 00 63 00 61 00 00 00 ) // e.n.-.c.a...")
Diagnostics\DiagnosticAnalyzerTests.vb (13)
488Dim message = String.Format("'{0}' must have a non-null non-empty 'Category'", descriptor.Id) 857Dim tree = VisualBasicSyntaxTree.ParseText(String.Format(source, treeNum), path:="SourceFileRegular.vb") 861tree = VisualBasicSyntaxTree.ParseText(String.Format(source, treeNum), path:="AssemblyInfo.vb") 867tree = VisualBasicSyntaxTree.ParseText(String.Format(source, treeNum), path:=fileName) 876tree = VisualBasicSyntaxTree.ParseText(String.Format(autoGeneratedPrefix + source, treeNum), path:=$"SourceFileWithAutoGeneratedComment{i}.vb") 1189Dim squiggledText = String.Format("GeneratedCode{0}", i) 1197squiggledText = String.Format("Nested{0}", i) 1205squiggledText = String.Format("NonGeneratedCode{0}", i) 1213squiggledText = String.Format("NestedGeneratedCode{0}", i) 1235names.Add(String.Format("GeneratedCode{0}(IsGeneratedCode:True)", index)) 1236names.Add(String.Format("Nested{0}(IsGeneratedCode:True)", index)) 1238names.Add(String.Format("NestedGeneratedCode{0}(IsGeneratedCode:True)", index)) 1247names.Add(String.Format("NonGeneratedCode{0}(IsGeneratedCode:False)", index))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (13)
DocumentationComments\DocCommentTests.vb (1)
10985Assert.Equal(String.Format("Function Clazz.{0}(a As Clazz, b As System.Int32) As Clazz", opName),
SymbolsTests\CompilationCreationTests.vb (1)
2207Dim path = String.Format("{0}.vb", className)
SymbolsTests\Metadata\WinMdEventTest.vb (5)
1026Dim ilRef = CompileIL(String.Format(_eventInterfaceILTemplate, "I")) 1064Dim ilRef = CompileIL(String.Format(_eventInterfaceILTemplate, "I1") + String.Format(_eventInterfaceILTemplate, "I2")) 1094Dim ilRef = CompileIL(String.Format(_eventInterfaceILTemplate, "I1") + String.Format(_eventInterfaceILTemplate, "I2"))
SymbolsTests\Source\ClsComplianceTests.vb (2)
2709Dim tree1 = VisualBasicSyntaxTree.ParseText(String.Format(sourceTemplate, 1), path:="a.vb") 2710Dim tree2 = VisualBasicSyntaxTree.ParseText(String.Format(sourceTemplate, 2), path:="b.vb")
SymbolsTests\Source\EnumTests.vb (4)
1257Dim source = GenerateEnum(6000, Function(i, n) If(i = 0, String.Format("M{0} + 1", n - 1), "")) 1283Dim source = GenerateEnum(count, Function(i, n) String.Format("M{0} + 1", If(i = 0, n - 1, i - 1))) 1314Dim source = GenerateEnum(count, Function(i, n) If(i < n - 1, String.Format("M{0} - 1", i + 1), i.ToString())) 1334builder.Append(String.Format(" M{0}", i))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (9)
Parser\ParseDirectives.vb (1)
3388Assert.True(index >= 0, String.Format("'{0}' not found", text))
Parser\ParseExpression.vb (3)
2822Dim line = String.Format("Dim x{0} = Sub()", i) 2879Dim line = String.Format("Dim x{0} = Sub()", i) 2900Dim line = String.Format("Dim x{0} = Sub()", i)
Parser\ParseXml.vb (4)
3537Dim tree1 = Parse(String.Format(sourceTemplate, "e")) 3538tree1.GetDiagnostics().Verify(commonExpectedErrors.Concat({Diagnostic(ERRID.ERR_MissingXmlEndTag, String.Format(squiggleTemplate, "e"))}).ToArray()) 3540Dim tree2 = Parse(String.Format(sourceTemplate, "ee")) 3541tree2.GetDiagnostics().Verify(commonExpectedErrors.Concat({Diagnostic(ERRID.ERR_MissingXmlEndTag, String.Format(squiggleTemplate, "ee"))}).ToArray())
TestSyntaxNodes.vb (1)
1072Return String.Format("Error {0}", code)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SymbolDisplayPartExtensions.vb (1)
21Return New SymbolDisplayPart(SymbolDisplayPartKind.ErrorTypeName, Nothing, String.Format("[{0}]", text))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (1)
393Throw New NotSupportedException(String.Format("Accessibility '{0}' not supported.", accessibility))
Utilities\IntrinsicOperators\PredefinedCastExpressionDocumentation.vb (1)
19Return String.Format(VBWorkspaceResources.Converts_an_expression_to_the_0_data_type, _resultingType.ToDisplayString())
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
Formatting\FormattingTests.vb (1)
4189Dim parameterList = SyntaxFactory.ParseParameterList(String.Format("(value As {0})", "Integer"))
Microsoft.CodeAnalysis.Workspaces (50)
CodeFixes\CodeFixContext.cs (1)
252throw new ArgumentException(string.Format(WorkspacesResources.Diagnostic_must_have_span_0, span.ToString()), nameof(diagnostics));
CodeFixes\ExportCodeFixProviderAttribute.cs (1)
54var 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)
275throw new ArgumentException(string.Format(WorkspacesResources.The_symbol_0_cannot_be_located_within_the_current_solution, argSymbol.Name)); 413throw 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)
104return 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)
291var matchString = string.Format(@"\b{0}\b", matchText);
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
76throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 130return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 229return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
126failureReason = string.Format(CompilerExtensionsResources.Missing_prefix_colon_0, Prefix); 132failureReason = string.Format(CompilerExtensionsResources.Missing_suffix_colon_0, Suffix); 153? string.Format(CompilerExtensionsResources.Prefix_0_is_not_expected, prefix) 225reason = string.Format(resourceId, string.Join(", ", violations)); 265reason = string.Format(firstResourceId, Substring(name, wordSpan)); 281var restString = string.Format(restResourceId, string.Join(", ", violations));
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)
43throw 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)
114throw 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)
818throw new ArgumentException(string.Format(WorkspacesResources._0_is_in_a_different_project, documentId));
Workspace\Solution\Solution.cs (1)
1127=> this.SolutionState.GetProjectState(projectId) ?? throw new InvalidOperationException(string.Format(WorkspacesResources._0_is_not_part_of_the_workspace, projectId));
Workspace\Workspace.cs (9)
1602progressTracker.Report(CodeAnalysisProgress.Description(string.Format(WorkspacesResources.Applying_changes_to_0, projectChanges.NewProject.Name))); 1789throw new NotSupportedException(string.Format(WorkspacesResources.Changing_document_0_is_not_supported, document.FilePath ?? document.Name)); 2394throw new ArgumentException(string.Format( 2407throw new ArgumentException(string.Format( 2456throw new ArgumentException(string.Format(WorkspacesResources._0_is_not_present, analyzerReference)); 2467throw new ArgumentException(string.Format(WorkspacesResources._0_is_already_present, analyzerReference)); 2478throw new ArgumentException(string.Format(WorkspacesResources._0_is_not_present, analyzerReference)); 2489throw new ArgumentException(string.Format(WorkspacesResources._0_is_already_present, analyzerReference)); 2548throw new ArgumentException(string.Format(
Microsoft.CodeAnalysis.Workspaces.MSBuild (17)
MSBuild\BuildHostProcessManager.cs (1)
233throw 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.cs (1)
180throw new Exception(string.Format(WorkspaceMSBuildResources.Failed_to_load_solution_filter_0, solutionFilePath));
MSBuild\MSBuildProjectLoader.Worker.cs (3)
148string.Format(WorkspaceMSBuildResources.Duplicate_project_discovered_and_skipped_0, absoluteProjectPath))); 246string.Format(WorkspaceMSBuildResources.Found_project_with_the_same_file_path_and_output_path_as_another_project_0, projectFileInfo.FilePath)); 412var message = string.Format(WorkspaceMSBuildResources.Unable_to_find_0, nameof(IAnalyzerService));
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (2)
260string.Format(WorkspaceMSBuildResources.Unresolved_metadata_reference_removed_from_project_0, filePath), 302string.Format(WorkspaceMSBuildResources.Found_project_reference_without_a_matching_metadata_reference_0, projectReferencePath),
MSBuild\MSBuildWorkspace.cs (5)
346string.Format(WorkspaceMSBuildResources.Project_path_for_0_was_null, project.Name), 395var message = string.Format(WorkspaceMSBuildResources.Path_for_document_0_was_null, document.Name); 413var message = string.Format(WorkspaceMSBuildResources.Path_for_additional_document_0_was_null, document.Name); 578var message = string.Format(WorkspaceMSBuildResources.Unable_to_add_metadata_reference_0, metadataReference.Display); 614var 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),
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
Build\ProjectBuildManager.cs (1)
287log.Add(string.Format(WorkspaceMSBuildBuildHostResources.Project_does_not_contain_0_target, target), projectInstance.FullPath);
src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
76throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 130return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 229return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
SolutionGeneration.cs (1)
203return 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)
88Assert.True(document.IsGeneratedCode(CancellationToken.None), string.Format("Expected file '{0}' to be interpreted as generated code", fileName)); 92Assert.False(document.IsGeneratedCode(CancellationToken.None), string.Format("Did not expect file '{0}' to be interpreted as generated code", fileName));
LinkedFileDiffMerging\LinkedFileDiffMergingTests.TextMerging.cs (9)
62<<<<<<< {string.Format(WorkspacesResources.TODO_Unmerged_change_from_project_0, "ProjectName1")}, {WorkspacesResources.Before_colon} 80<<<<<<< {string.Format(WorkspacesResources.TODO_Unmerged_change_from_project_0, "ProjectName1")}, {WorkspacesResources.Before_colon} 117<<<<<<< {string.Format(WorkspacesResources.TODO_Unmerged_change_from_project_0, "ProjectName1")}, {WorkspacesResources.Before_colon} 161<<<<<<< {string.Format(WorkspacesResources.TODO_Unmerged_change_from_project_0, "ProjectName1")}, {WorkspacesResources.Before_colon} 169<<<<<<< {string.Format(WorkspacesResources.TODO_Unmerged_change_from_project_0, "ProjectName1")}, {WorkspacesResources.Before_colon} 193<<<<<<< {string.Format(WorkspacesResources.TODO_Unmerged_change_from_project_0, "ProjectName2")}, {WorkspacesResources.Before_colon} 199<<<<<<< {string.Format(WorkspacesResources.TODO_Unmerged_change_from_project_0, "ProjectName3")}, {WorkspacesResources.Before_colon} 221<<<<<<< {string.Format(WorkspacesResources.TODO_Unmerged_change_from_project_0, "ProjectName1")}, {WorkspacesResources.Before_colon} 243<<<<<<< {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.ContextualOptions (1)
src\Generators\Shared\DiagDescriptorsBase.cs (1)
36string.Format(DiagnosticIds.UrlFormat, id),
Microsoft.Gen.Logging (1)
src\Generators\Shared\DiagDescriptorsBase.cs (1)
36string.Format(DiagnosticIds.UrlFormat, id),
Microsoft.Gen.MetadataExtractor (1)
src\Generators\Shared\DiagDescriptorsBase.cs (1)
36string.Format(DiagnosticIds.UrlFormat, id),
Microsoft.Gen.Metrics (1)
src\Generators\Shared\DiagDescriptorsBase.cs (1)
36string.Format(DiagnosticIds.UrlFormat, id),
Microsoft.Gen.MetricsReports (1)
src\Generators\Shared\DiagDescriptorsBase.cs (1)
36string.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 (3)
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),
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.Transforms (17)
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(
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)
733var dirName = string.Format(TransformDirTemplate, i);
Text\WordBagTransform.cs (1)
722tmpColName = string.Format("_tmp{0:000}", tmp++);
Microsoft.NET.StringTools (1)
WeakStringCacheInterner.cs (1)
156result.AppendLine(string.Format("##########Top Top Interned Strings: \n{0} ", string.Join("\n==============\n", topInternedStrings.ToArray())));
Microsoft.NET.StringTools.net35 (1)
WeakStringCacheInterner.cs (1)
156result.AppendLine(string.Format("##########Top Top Interned Strings: \n{0} ", string.Join("\n==============\n", topInternedStrings.ToArray())));
Microsoft.VisualBasic.Core (1)
src\libraries\Common\src\System\SR.vb (1)
69Return String.Format(resourceFormat, p1)
Microsoft.VisualStudio.LanguageServices (56)
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)
573return string.Format(ServicesVSResources.Remove_0, AllParameters[SelectedIndex!.Value].ShortAutomationText); 586return string.Format(ServicesVSResources.Restore_0, AllParameters[SelectedIndex!.Value].ShortAutomationText);
ChangeSignature\ChangeSignatureDialogViewModel.ParameterViewModels.cs (1)
126return ServicesVSResources.Added_Parameter + baseText + 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)
145command.Text = string.Format(ServicesVSResources.Run_Code_Analysis_on_0, project.Name); 256var statusMessageWhileRunning = string.Format(ServicesVSResources.Running_code_analysis_for_0, progressName); 257var statusMessageOnCompleted = string.Format(ServicesVSResources.Code_analysis_completed_for_0, progressName); 258var 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),
InheritanceMargin\MarginGlyph\InheritanceMarginContextMenu.xaml.cs (1)
63defaultDescription: string.Format(ServicesVSResources.Navigate_to_0, viewModel.DisplayContent),
InheritanceMargin\MarginGlyph\InheritanceMarginGlyphViewModel.cs (1)
142var automationName = string.Format(ServicesVSResources.Multiple_members_are_inherited_on_line_0, tag.LineNumber);
KeybindingReset\KeybindingResetDetector.cs (3)
250string.Format(message, ReSharperExtensionName), 254new InfoBarUI(title: string.Format(ServicesVSResources.Apply_0_keymapping_scheme, ReSharperKeyboardMappingName), 257new InfoBarUI(title: string.Format(ServicesVSResources.Apply_0_keymapping_scheme, VSCodeKeyboardMappingName),
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,
Progression\GraphNodeCreation.cs (1)
56throw new ArgumentException(string.Format(ServicesVSResources.Can_t_create_a_node_id_for_this_symbol_kind_colon_0, symbol));
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)
460throw new ArgumentException(string.Format(ServicesVSResources.Could_not_find_project_0, projectId)); 1249message: 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");
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)
20public string MakeAbstractCheckBoxAutomationText => string.Format(ServicesVSResources.Make_0_abstract, Symbol.Name);
Workspace\SourceGeneratedFileManager.cs (3)
363infoToShow = (KnownMonikers.StatusError, string.Format(ServicesVSResources.The_generator_0_that_generated_this_file_has_stopped_generating_this_file, GeneratorDisplayName)); 367infoToShow = (KnownMonikers.StatusError, string.Format(ServicesVSResources.The_generator_0_that_generated_this_file_has_been_removed_from_the_project, GeneratorDisplayName)); 479windowFrame.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 (1)
SemanticSearch\SemanticSearchToolWindow.cs (1)
44Title = string.Format(ServicesVSResources.Semantic_search_0, LanguageNames.CSharp);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (36)
CallHierarchy\CSharpCallHierarchyTests.cs (36)
103testState.VerifyRoot(root, "N.C.Goo()", [string.Format(EditorFeaturesResources.Calls_To_0, "Goo")]); 104testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), ["N.G.Main()", "N.G.Main2()"]); 143testState.VerifyRoot(root, "N.C.Goo()", [string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), string.Format(EditorFeaturesResources.Calls_To_Interface_Implementation_0, "N.I.Goo()")]); 144testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), ["N.G.Main2()"]); 145testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_Interface_Implementation_0, "N.I.Goo()"), ["N.G.Main()"]); 179testState.VerifyRoot(root, "N.C.Goo()", [string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), EditorFeaturesResources.Calls_To_Overrides]); 180testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), ["N.D.Bar()"]); 215testState.VerifyRoot(root, "N.D.Goo()", [string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), string.Format(EditorFeaturesResources.Calls_To_Base_Member_0, "N.C.Goo()")]); 216testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), ["N.D.Baz()"]); 217testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_Base_Member_0, "N.C.Goo()"), ["N.D.Bar()"]); 236testState.VerifyRoot(root, "N.C.Goo()", [string.Format(EditorFeaturesResources.Calls_To_0, "Goo")]); 237testState.VerifyResultName(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), [EditorFeaturesResources.Initializers]); 256testState.VerifyRoot(root, "N.C.goo", [string.Format(EditorFeaturesResources.References_To_Field_0, "goo")]); 257testState.VerifyResult(root, string.Format(EditorFeaturesResources.References_To_Field_0, "goo"), ["N.C.Goo()"]); 285testState.VerifyRoot(root, "N.C.val.get", [string.Format(EditorFeaturesResources.Calls_To_0, "get_val")]); 286testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "get_val"), ["N.C.goo()"]); 312testState.VerifyRoot(root, "N.C.generic<T>(this string, ref T)", [string.Format(EditorFeaturesResources.Calls_To_0, "generic")]); 313testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "generic"), ["N.C.goo()"]); 342testState.VerifyRoot(root, "ConsoleApplication10.Extensions.BarString(this string)", [string.Format(EditorFeaturesResources.Calls_To_0, "BarString")]); 343testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "BarString"), ["ConsoleApplication10.Program.Main(string[])"]); 366testState.VerifyRoot(root, "System.Linq.Enumerable.Single<TSource>(this System.Collections.Generic.IEnumerable<TSource>)", [string.Format(EditorFeaturesResources.Calls_To_0, "Single")]); 367testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Single"), ["N.Program.Main(string[])"]); 406testState.VerifyRoot(root, "N.I.Goo()", [string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), string.Format(EditorFeaturesResources.Implements_0, "Goo")]); 407testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), ["N.G.Main()"]); 408testState.VerifyResult(root, string.Format(EditorFeaturesResources.Implements_0, "Goo"), ["N.C.Goo()"]); 453testState.VerifyRoot(root, "N.C.Goo()", [string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), EditorFeaturesResources.Overrides_]); 478testState.VerifyRoot(root, "Base.M()", [string.Format(EditorFeaturesResources.Calls_To_0, "M"), EditorFeaturesResources.Overrides_, EditorFeaturesResources.Calls_To_Overrides]); 506testState.VerifyRoot(root, "N.C.Goo()", [string.Format(EditorFeaturesResources.Calls_To_0, "Goo"),]); 507testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "Goo"), expectedCallers: ["N.C.M()"]); 528testState.VerifyRoot(root, "N.C.Property.set", [string.Format(EditorFeaturesResources.Calls_To_0, "set_Property")]); 529testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, "set_Property"), ["N.C.M()"]); 550testState.VerifyRoot(root, "Class1.Class1(string)", [string.Format(EditorFeaturesResources.Calls_To_0, ".ctor")]); 551testState.VerifyResult(root, string.Format(EditorFeaturesResources.Calls_To_0, ".ctor"), ["D.M()"]);
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (2)
PropertyChangedTestMonitor.vb (2)
40_failures.Add(String.Format("Property '{0}' was updated more times than expected.", e.PropertyName)) 43_failures.Add(String.Format("Property '{0}' was unexpectedly updated.", e.PropertyName))
Microsoft.VisualStudio.LanguageServices.VisualBasic (8)
CodeModel\SyntaxExtensions.vb (1)
49Debug.Fail(String.Format("Unexpected node kind: {0}", method.Kind))
CodeModel\VisualBasicCodeModelService.CodeModelEventCollector.vb (3)
590Debug.Fail(String.Format("Unexpected member kind: {0}", oldMember.Kind)) 1052Debug.Fail(String.Format("Unknown kind: {0}", oldType.Kind)) 1099Debug.Fail(String.Format("Unknown kind: {0}", oldName.Kind))
CodeModel\VisualBasicCodeModelService.NodeLocator.vb (2)
123Debug.Fail(String.Format("Unsupported node kind: {0}", CType(node.Kind, SyntaxKind))) 213Debug.Fail(String.Format("Unsupported node kind: {0}", CType(node.Kind, SyntaxKind)))
CodeModel\VisualBasicCodeModelService.vb (1)
948Debug.Fail(String.Format("Invalid node kind: {0}", node.Kind))
CodeModel\VisualBasicCodeModelService_Prototype.vb (1)
58Debug.Fail(String.Format("Invalid symbol kind: {0}", symbol.Kind))
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);
MSBuild (1)
CommunicationsUtilities.cs (1)
739TraceCore(nodeId, string.Format(format, arg0));
MSBuildTaskHost (1)
CommunicationsUtilities.cs (1)
739TraceCore(nodeId, string.Format(format, arg0));
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
PresentationCore (7)
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));
System\Windows\Media\Knowncolors.cs (1)
176string aRGBString = String.Format("#{0,8:X8}", (uint)colorValue);
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.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 (8)
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)
411throw new NotSupportedException(string.Format(
System\Private\Windows\Ole\TypeBinder.cs (1)
90: throw new NotSupportedException(string.Format(
Windows\Win32\Graphics\GdiPlus\StatusExtensions.cs (1)
58return new ArgumentException(string.Format(SR.GdiplusFontFamilyNotFound, "?"));
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.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.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 (1)
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)
4866select 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.Web.Services.Description (1)
src\Common\src\System\SR.cs (1)
41return 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 (337)
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)
392throw new ArgumentException(string.Format(SR.InvalidResXFile, e.Message), e); 404throw new ArgumentException(string.Format(SR.InvalidResXFile, xmlEx.Message), xmlEx); 609throw 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)
1335throw new InvalidOperationException(string.Format(SR.Win32WindowAlreadyCreated, nameof(SetCompatibleTextRenderingDefault))); 1364throw 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 (2)
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)
1299throw new Win32Exception(lastWin32Error, string.Format(SR.LoadDLLError, Libraries.Comctl32)); 2118throw new InvalidOperationException(string.Format(SR.IllegalCrossThreadCall, Name)); 4713throw new InvalidOperationException(string.Format(SR.ClosingWhileCreatingHandle, "Dispose")); 4815throw 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)
1016throw new ArgumentException(string.Format(SR.DataGridView_EmptyColor, "BackgroundColor")); 1018throw new ArgumentException(string.Format(SR.DataGridView_TransparentColor, "BackgroundColor")); 1244throw new ArgumentException(string.Format(SR.DataGridView_CustomCellBorderStyleInvalid, "CellBorderStyle")); 1461throw new ArgumentException(string.Format(SR.DataGridView_CustomCellBorderStyleInvalid, "ColumnHeadersBorderStyle")); 2642throw new ArgumentException(string.Format(SR.DataGridView_EmptyColor, nameof(GridColor))); 2644throw new ArgumentException(string.Format(SR.DataGridView_TransparentColor, nameof(GridColor))); 3248throw new ArgumentException(string.Format(SR.DataGridView_CustomCellBorderStyleInvalid, "RowHeadersBorderStyle")); 3753throw new InvalidOperationException(string.Format(SR.DataGridView_SelectionModeAndSortModeClash, (value).ToString())); 4964string.Format(
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (12)
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")); 6847throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 10781throw new InvalidOperationException(string.Format(SR.DataGridView_WeightSumCannotExceedLongMaxValue, ushort.MaxValue)); 10913throw new InvalidOperationException(string.Format(SR.DataGridView_WeightSumCannotExceedLongMaxValue, ushort.MaxValue)); 11162?? throw new InvalidOperationException(string.Format(SR.InvalidNullArgument, "e.Column")); 13531throw new InvalidOperationException(string.Format(SR.DataGridView_WeightSumCannotExceedLongMaxValue, ushort.MaxValue)); 14621: string.Format(SR.DataGridView_ErrorMessageText_WithException, e.Exception); 27458throw new ArgumentOutOfRangeException(nameof(width), width, string.Format(SR.DataGridView_SizeTooLarge, (UpperSize).ToString(CultureInfo.CurrentCulture))); 27463throw 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)
243throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.DataGridViewColumn_DisplayIndexTooLarge, int.MaxValue)); 890throw 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))); 608string.Format(SR.DateTimePickerMaxDate, FormatDateTime(MaxDateTime))); 664string.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)
737_defaultGroup ??= new ListViewGroup(string.Format(SR.ListViewGroupDefaultGroup, "1")) 3817throw new ArgumentException(string.Format(SR.OnlyOneControl, ch.Text), nameof(ch)); 4013throw new ArgumentException(string.Format(SR.OnlyOneControl, items[i].Text), nameof(items)); 4040throw new ArgumentException(string.Format(SR.OnlyOneControl, item.Text), nameof(items)); 4423? string.Format(SR.ListViewGroupCollapsedStateName, listViewGroup.Header) 4424: 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)
491throw new ArgumentException(string.Format(SR.MonthCalendarMaxSelCount, value.ToString("D")), nameof(value)); 915throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value)), nameof(value)); 936throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value)), nameof(value)); 957throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value)), nameof(value));
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
1691throw new ArgumentException(string.Format(SR.PropertyGridNoBitmap, tab.GetType().FullName)); 1696throw new ArgumentException(string.Format(SR.PropertyGridTabName, tab.GetType().FullName)); 2962string.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)); 1852throw new ArgumentOutOfRangeException(nameof(end), end, string.Format(SR.RichTextFindEndInvalid, end)); 1862throw 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)
487throw 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)
283throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.TrackBarLargeChangeError, value)); 486throw 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)
1290throw 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)
307throw 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)
218throw new InvalidOperationException(string.Format(SR.IllegalCrossThreadCall, nameof(TaskDialog))); 557throw new InvalidOperationException(string.Format(SR.TaskDialogInstanceAlreadyShown, nameof(TaskDialog))); 619throw new InvalidOperationException(string.Format( 1217throw new InvalidOperationException(string.Format( 1641throw 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)
3182throw new InvalidOperationException(string.Format(SR.ClosingWhileCreatingHandle, "Close")); 5368throw new InvalidOperationException(string.Format(SR.OwnsSelfOrOwner, nameof(Show))); 5373throw new InvalidOperationException(string.Format(SR.ShowDialogOnVisible, nameof(Show))); 5378throw new InvalidOperationException(string.Format(SR.ShowDialogOnDisabled, nameof(Show))); 5383throw new InvalidOperationException(string.Format(SR.ShowDialogOnNonTopLevel, nameof(Show))); 5414throw new ArgumentException(string.Format(SR.OwnsSelfOrOwner, nameof(Show)), nameof(owner)); 5562throw new ArgumentException(string.Format(SR.OwnsSelfOrOwner, nameof(ShowDialog)), nameof(owner)); 5567throw new InvalidOperationException(string.Format(SR.ShowDialogOnVisible, nameof(ShowDialog))); 5572throw new InvalidOperationException(string.Format(SR.ShowDialogOnDisabled, nameof(ShowDialog))); 5577throw new InvalidOperationException(string.Format(SR.ShowDialogOnNonTopLevel, nameof(ShowDialog))); 5582throw new InvalidOperationException(string.Format(SR.ShowDialogOnModal, nameof(ShowDialog))); 5641throw 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\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)
2502trans = host.CreateTransaction(string.Format(SR.WindowsFormsAddEvent, defaultEvent.Name));
System\Windows\Forms\Design\ControlCommandSet.cs (5)
600trans = host.CreateTransaction(string.Format(SR.DragDropSizeComponents, selSvc.SelectionCount)); 604trans = host.CreateTransaction(string.Format(SR.DragDropSizeComponent, comp.Site.Name)); 862trans = host.CreateTransaction(string.Format(SR.CommandSetLockControls, components.Count)); 998batchString = string.Format(SR.CommandSetBringToFront, selectedComponents.Length); 1002batchString = 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); 1126trans = _host.CreateTransaction(string.Format(SR.DragDropMoveComponents, components.Length)); 1132trans = _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)); 1640string.Format(isRow 1755using DesignerTransaction t = host.CreateTransaction(string.Format( 1878using DesignerTransaction t = host.CreateTransaction(string.Format( 1975using DesignerTransaction t = host.CreateTransaction(string.Format(SR.TableLayoutPanelDesignerChangeSizeTypeUndoUnit, Table.Site.Name));
System\Windows\Forms\Design\ToolStripDesigner.cs (3)
530DesignerTransaction outerTransaction = _host.CreateTransaction(string.Format(SR.ToolStripAddingItem, t.Name)); 1891transDesc = string.Format(copy ? SR.BehaviorServiceCopyControl : SR.BehaviorServiceMoveControl, name); 1895transDesc = 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)
2702transDesc = string.Format(copy ? SR.BehaviorServiceCopyControl : SR.BehaviorServiceMoveControl, name); 2706transDesc = 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 (2)
System\ServiceExtensions.cs (1)
88?? throw new InvalidOperationException(string.Format(SR.General_MissingService, typeof(TInterface).FullName))
System\Windows\Forms\Internals\ScaleHelper.DpiAwarenessScope.cs (1)
85throw new Win32Exception(Marshal.GetLastWin32Error(), string.Format(SR.Win32SetThreadsDpiContextFailed, _originalDpiAwarenessContext));
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);
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)
1306string.Format("/utf8output /nologo /t:library {0}", srcFile)); 1330string.Format("/utf8output /nologo /vbruntime* /t:library {0}", srcFile));
VisualBasicErrorFactsGenerator (1)
Program.vb (1)
59outputText.AppendLine(String.Format(" Public Function {0}(code as ERRID) As Boolean", functionName))
VisualBasicSyntaxGenerator (22)
RedNodes\RedNodeFactoryWriter.vb (4)
611Dim result = String.Format("SyntaxFactory.Token(SyntaxKind.{0})", childNodeKind.Name) 619Return String.Format("SyntaxFactory.SingletonSeparatedList(SyntaxFactory.{0}())", FactoryName(childNodeKind)) 621Return String.Format("SyntaxFactory.SingletonList(SyntaxFactory.{0}())", FactoryName(childNodeKind)) 623Return String.Format("SyntaxFactory.{0}()", FactoryName(childNodeKind))
RedNodes\RedNodeWriter.vb (3)
709GenerateSummaryXmlComment(_writer, String.Format("Returns a copy of this with the specified changes. Returns this instance if there are no actual changes.", nodeStructure.Name)) 712GenerateParameterXmlComment(_writer, "kind", String.Format("The new kind.", nodeStructure.Name)) 716GenerateParameterXmlComment(_writer, LowerFirstCharacter(OptionalChildName(child)), String.Format("The value for the {0} property.", child.Name))
Tests\TestWriter.vb (1)
501withStat += String.Format(".With{0}(objectUnderTest.{0})", child.Name)
Util\WriteUtils.vb (13)
206result = String.Format(If(isGreen, "SeparatedSyntaxList(Of {0})", "SeparatedSyntaxList(Of {0})"), BaseTypeReference(nodeChild)) 209result = String.Format("SyntaxList(Of {0})", BaseTypeReference(nodeChild)) 215result = String.Format("SyntaxList(Of {0})", BaseTypeReference(nodeChild)) 260Return String.Format("Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.{0}", result) 262Return String.Format("InternalSyntax.{0}", result) 272Return String.Format(If(isGreen, "GreenNode", "SeparatedSyntaxList(Of {0})"), BaseTypeReference(nodeChild)) 274Return String.Format(If(isGreen, "GreenNode", "SyntaxList(Of {0})"), BaseTypeReference(nodeChild)) 291Return String.Format("SyntaxList(Of {0})", SeparatorsBaseTypeReference(nodeChild)) 316Return String.Format("Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList(of GreenNode)", BaseTypeReference(nodeChild)) 318Return String.Format("SeparatedSyntaxList(Of {0})", BaseTypeReference(nodeChild)) 322Return String.Format("Global.Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList(of GreenNode)", StructureTypeName(_parseTree.RootStructure)) 327Return String.Format("SyntaxList(of {0})", BaseTypeReference(nodeChild)) 334Return String.Format("SyntaxToken", BaseTypeReference(nodeChild))
XML\ParseTreeDescription.vb (1)
67fullMessage += String.Format("({0})", lineInfo.LineNumber)
WindowsFormsIntegration (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
XmlFileLogger (2)
UnknownTaskParameterPrefixException.cs (1)
13: base(string.Format("Unknown task parameter type: {0}", prefix))
XmlFileLogger.cs (1)
85_build.AddMessage(new Message(string.Format("XmlFileLogger Error: {0}", e), DateTime.Now));
xunit.console (1)
common\AssemblyResolution\DependencyContextAssemblyCache.cs (1)
270var formattedUnmanagedDllName = string.Format(format, unmanagedLibraryName);