1768 references to Format
Aspire.Dashboard.Components.Tests (1)
Pages\ConsoleLogsTests.cs (1)
466string.Format(
Binding.Http.IntegrationTests (5)
BasicHttpBindingTests.4.0.0.cs (3)
43Assert.True(result == testString, String.Format("Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 128Assert.True(result == testString, String.Format("Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 185Assert.True(result == substituteString, String.Format("Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
NetHttpsBindingTests.4.1.0.cs (1)
38Assert.True(String.Equals(testString, result), String.Format("Expected result was {0}. Actual was {1}", testString, result));
WSHttpBindingTests.cs (1)
34Assert.True(result == testString, String.Format("Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
BoundTreeGenerator (2)
BoundNodeClassWriter.cs (2)
963Comma(AllSpecifiableFields(node), field => string.Format("{0} {1}", GetField(node, field.Name).Type, ToCamelCase(field.Name))); 1012Comma(AllSpecifiableFields(node), field => string.Format("{1} As {0}", field.Type, ToCamelCase(field.Name)));
BuildActionTelemetryTable (1)
src\Dependencies\Contracts\ExceptionUtilities.cs (1)
21string output = string.Format("Unexpected value '{0}' of type '{1}'", o, (o != null) ? o.GetType().FullName : "<unknown>");
Client.ChannelLayer.IntegrationTests (1)
DuplexChannelShapeTests.4.1.0.cs (1)
57Assert.True(String.Equals(expectedMessageID, actualMessageID), String.Format("Expected Message ID was {0}. Actual was {1}", expectedMessageID, actualMessageID));
Client.ClientBase.IntegrationTests (22)
ChannelBaseTests.4.0.0.cs (5)
42String.Format("Expected response was '{0}' but actual was '{1}'", echoText, result)); 91String.Format("Expected client to receive events '{0}' but actual was '{1}'", expected, actual)); 95String.Format("Expected proxy to receive events '{0}' but actual was '{1}'", expected, actual)); 145String.Format("Expected client to receive events '{0}' but actual was '{1}'", expected, actual)); 149String.Format("Expected proxy to receive events '{0}' but actual was '{1}'", expected, actual));
ClientBaseTestHelpers.cs (1)
22if (headerFullName == string.Format("{0}//{1}", customHeaderNamespace, customHeaderName))
ClientBaseTests.4.0.0.cs (4)
566String.Format("Expected client to receive events '{0}' but actual was '{1}'", expected, actual)); 570String.Format("Expected proxy to receive events '{0}' but actual was '{1}'", expected, actual)); 620String.Format("Expected client to receive events '{0}' but actual was '{1}'", expected, actual)); 624String.Format("Expected proxy to receive events '{0}' but actual was '{1}'", expected, actual));
ClientBaseTests.4.1.0.cs (2)
34string cookieSentOut = string.Format("{0}={1}", cookieName, cookieValue); 44string.Format("The expected cookie sent back from the server was '{0}', but the actual cookie was '{1}'", cookieSentOut, cookieSentBack));
DuplexClientBaseTests.4.1.0.cs (1)
87string.Format("The sent GUID does not match the returned GUID. Sent '{0}', Received: '{1}'", guid, returnedGuid));
MessageInspectorTests.4.4.0.cs (9)
47Assert.True(String.Equals(result1.Result, expectedErrorDescription), String.Format("Expected Error Description: {0}/Actual Error Description: {1}", expectedErrorDescription, result2.Result)); 49Assert.True(returnedErrorCode.Equals(TestTypes.ErrorCode.UserNotAuthenticated), String.Format("Expected Error Code: {0}/nActual Error Code: {1}", TestTypes.ErrorCode.UserNotAuthenticated, returnedErrorCode)); 50Assert.True(result1.HttpStatusCode.Equals(System.Net.HttpStatusCode.Unauthorized), String.Format("Expected HttpStatusCode: {0}/nActual HttpStatusCode: {1}", System.Net.HttpStatusCode.Unauthorized, result2.HttpStatusCode)); 54Assert.True(String.Equals(result2.Result, expectedErrorDescription), String.Format("Expected Error Description: {0}/nActual Error Description: {1}", expectedErrorDescription, result2.Result)); 56Assert.True(returnedErrorCode.Equals(TestTypes.ErrorCode.Ok), String.Format("Expected Error Code: {0}/nActual Error Code: {1}", TestTypes.ErrorCode.Ok, returnedErrorCode)); 57Assert.True(result2.HttpStatusCode.Equals(System.Net.HttpStatusCode.OK), String.Format("Expected HttpStatusCode: {0}/nActual HttpStatusCode: {1}", System.Net.HttpStatusCode.OK, result2.HttpStatusCode)); 96Assert.True(String.Equals(authorizationHeaderValue, accessToken), String.Format("Expected Authorization Header value: {0}/nActual Authorization Header value: {1}", accessToken, authorizationHeaderValue)); 97Assert.True(String.Equals(authTypeHeaderValue, authType.ToString()), String.Format("Expected AuthType Header value: {0}/nActual AuthType Header value: {1}", authType.ToString(), authTypeHeaderValue)); 101Assert.Fail(String.Format("One or both of the expected headers were not found.\nHeader: \"authType\" had value: {0}\nHeader: \"HttpRequestHeader.Authorization\" had value: {1}", authorizationHeaderValue, authTypeHeaderValue));
Client.ExpectedExceptions.IntegrationTests (13)
ExpectedExceptionTests.4.0.0.cs (3)
49Assert.True(String.Equals(exception.Message, exceptionMsg), String.Format("Expected exception message: {0}\nActual exception message: {1}", exceptionMsg, exception.Message)); 179Assert.True(String.Equals(exception.Detail.Message, faultMsg), String.Format("Expected fault message: {0}\nActual fault message: {1}", faultMsg, exception.Detail.Message)); 214Assert.True(String.Equals(exception.Detail.Message, faultMsg), String.Format("Expected fault message: {0}\nActual fault message: {1}", faultMsg, exception.Detail.Message));
ExpectedExceptionTests.4.1.0.cs (10)
51Assert.True(exception.Message.Contains(nonExistentHost), string.Format("Expected exception message to contain: '{0}'\nThe exception message was: {1}", nonExistentHost, exception.Message)); 110Assert.True(result == "Success!", string.Format("Test Case failed, expected the returned string to be: {0}, instead it was: {1}", "Success!", result)); 184Assert.True(exception.Message.Contains(notFoundUrl), string.Format("Expected exception message to contain: '{0}'\nThe exception message was:{1}", notFoundUrl, exception.Message)); 222Assert.True(exception.Message.Contains(protocolExceptionUri), string.Format("Expected exception message to contain: '{0}'\nThe exception was: '{1}'", protocolExceptionUri, exception.Message)); 273Assert.True(String.Equals(exceptionCodeName, exception.Code.Name), String.Format("Expected exception code name: {0}\nActual exception code name: {1}", exceptionCodeName, exception.Code.Name)); 274Assert.True(String.Equals(exceptionReason, exception.Reason.GetMatchingTranslation().Text), String.Format("Expected exception reason: {0}\nActual exception reason: {1}", exceptionReason, exception.Reason.GetMatchingTranslation().Text)); 326Assert.True(String.Equals(exceptionCodeName, exception.Code.Name), String.Format("Expected exception code name: {0}\nActual exception code name: {1}", exceptionCodeName, exception.Code.Name)); 327Assert.True(String.Equals(exceptionReason, exception.Reason.GetMatchingTranslation().Text), String.Format("Expected exception reason: {0}\nActual exception reason: {1}", exceptionReason, exception.Reason.GetMatchingTranslation().Text)); 409string.Format("Expected message contains {0}, actual message: {1}", 456string.Format("Expected message contains {0}, actual message: {1}",
Client.TypedClient.IntegrationTests (13)
TypedProxyTests.4.0.0.cs (12)
139Assert.True(String.Equals(result, "Hello"), String.Format("Expected response from Service: {0} Actual was: {1}", "Hello", result)); 195Assert.True(startThread == Environment.CurrentManagedThreadId, String.Format("Expected continuation to happen on thread {0} but actually continued on thread {1}", 202Assert.True(String.Equals(result, "Hello"), String.Format("Expected response from Service: {0} Actual was: {1}", "Hello", result)); 253String.Format("A response was received from the Service but it was not the expected Action, expected: {0} actual: {1}", 262String.Format("Actual MessageBodyContent from service did not match the expected MessageBodyContent, expected: {0} actual: {1}", 317String.Format("A response was received from the Service but it was not the expected Action, expected: {0} actual: {1}", 326String.Format("Actual MessageBodyContent from service did not match the expected MessageBodyContent, expected: {0} actual: {1}", 382String.Format("A response was received from the Service but it was not the expected Action, expected: {0} actual: {1}", 391String.Format("Actual MessageBodyContent from service did not match the expected MessageBodyContent, expected: {0} actual: {1}", 482Assert.True(String.Equals(result, "Hello"), String.Format("Expected response from Service: {0} Actual was: {1}", "Hello", result)); 523Assert.True(String.Equals(result, "Hello"), String.Format("Expected response from Service: {0} Actual was: {1}", "Hello", result)); 556Assert.True(String.Equals(result, "Hello"), String.Format("Expected response from Service: {0} Actual was: {1}", "Hello", result));
TypedProxyTests.4.1.0.cs (1)
75Assert.True(guid == returnedGuid, String.Format("The sent GUID does not match the returned GUID. Sent: {0} Received: {1}", guid, returnedGuid));
CodeStyleConfigFileGenerator (1)
src\Dependencies\Contracts\ExceptionUtilities.cs (1)
21string output = string.Format("Unexpected value '{0}' of type '{1}'", o, (o != null) ? o.GetType().FullName : "<unknown>");
ConfigurationSchemaGenerator (2)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (2)
722initExceptionMessage = string.Format(Emitter.ExceptionMessages.CannotBindToConstructorParameter, typeSymbol.GetFullName(), FormatParams(invalidParameters)); 732initExceptionMessage = string.Format(Emitter.ExceptionMessages.ConstructorParametersDoNotMatchProperties, typeSymbol.GetFullName(), FormatParams(missingParameters));
Contract.Data.IntegrationTests (8)
DataContractTests.4.0.0.cs (2)
45Assert.True(String.Equals(response.StringValue, expectedStringValue), String.Format("Expected CompositeType.StringValue \"{0}\", actual was \"{1}\"", 47Assert.True(response.BoolValue == request.BoolValue, String.Format("Expected CompositeType.BoolValue \"{0}\", actual was \"{1}\"",
DataContractTests.4.1.0.cs (2)
40Assert.True((guid == returnedType.GuidValue), String.Format("The Guid sent was not the same as the Guid returned.\nSent: {0}\nReturned: {1}", guid, returnedType.GuidValue)); 78Assert.True((guid.ToString() == returnedType.StringValue), String.Format("The Guid to string value sent was not the same as what was returned.\nSent: {0}\nReturned: {1}", guid.ToString(), returnedType.StringValue));
DataContractTests.4.1.1.cs (4)
42Assert.True(manager.GetType() == (typeof(Manager)), string.Format("Expected type: {0}, Actual type: {1}", typeof(Manager), manager.GetType())); 43Assert.True(((Manager)manager).Name == "jone", string.Format("Expected Name: {0}, Actual Name: {1}", "jone", ((Manager)manager).Name)); 44Assert.True(((Manager)manager).Age == "10", string.Format("Expected Age: {0}, Actual Age: {1}", "10", ((Manager)manager).Age)); 45Assert.True(((Manager)manager).OfficeId == 1, string.Format("Expected Id: {0}, Actual Id: {1}", 1, ((Manager)manager).OfficeId));
Contract.Fault.IntegrationTests (5)
FaultExceptionTests.4.0.0.cs (3)
45Assert.True(String.Equals(exception.Detail.Message, faultMsg), String.Format("Expected Fault Message: {0}, actual: {1}", faultMsg, exception.Detail.Message)); 79Assert.True(String.Equals(exception.Detail.Message, faultMsg), String.Format("Expected Fault Message: {0}, actual: {1}", faultMsg, exception.Detail.Message)); 251Assert.True(input.Length == response.Length, String.Format("Expected {0} response items but actual was {1}", input.Length, response.Length));
FaultExceptionTests.cs (2)
44Assert.True(TestFaultContractInfosBehavior.testFaultWithKnownTypeClientOp.FaultContractInfos[0].Action == action, string.Format("expected FaultContractInfo Action is {0}, actual: {1}", action, TestFaultContractInfosBehavior.testFaultWithKnownTypeClientOp.FaultContractInfos[0].Action)); 45Assert.True(TestFaultContractInfosBehavior.testFaultWithKnownTypeClientOp.FaultContractInfos[0].Detail == detail, string.Format("expected FaultContractInfo Detail is {0}, actual: {1}", detail.ToString(), TestFaultContractInfosBehavior.testFaultWithKnownTypeClientOp.FaultContractInfos[0].Detail.ToString()));
Contract.Message.IntegrationTests (13)
MessageContractTests.4.1.0.cs (8)
26string.Format("reader.LocalName - Expected: {0}, Actual: {1}", wrapperName, reader.LocalName)); 29string.Format("reader.NamespaceURI - Expected: {0}, Actual: {1}", MessageContractConstants.wrapperNamespace, reader.NamespaceURI)); 59string.Format("Unexpected element order (1/5). Expected {0}, Actual: {1}", wrapperName, reader.LocalName)); 64string.Format("Unexpected element order (2/5). Expected {0}, Actual: {1}", MessageContractConstants.dateElementName, reader.LocalName)); 71string.Format("Unexpected element order (3/5). Expected: {0}, Actual: {1}", MessageContractConstants.transactionElementName, reader.LocalName)); 78string.Format("Unexpected element order (4/5). Expected: {0}, Actual: {1}", MessageContractConstants.customerElementName, reader.LocalName)); 86string.Format("Unexpected element order (5/5). Expected: {0}, Actual: {1}", wrapperName, reader.LocalName)); 116string.Format("Expected element not found. Looking For: {0} && {1}", MessageContractConstants.customerElementName, MessageContractConstants.customerElementNamespace));
MessageContractTests.4.4.0.cs (3)
44String.Format("Expected Customer = '{0}', actual = '{1}'", 48String.Format("Expected Amount = '{0}', actual = '{1}'", 52String.Format("Expected RequestSingleValue = '{0}', actual = '{1}",
MessageTests.4.0.0.cs (2)
51string.Format("Actual MessageBodyContent from service did not match the expected MessageBodyContent, expected: {0} actual: {1}", expectedResponse, actualResponse)); 93Assert.True(result == expectedResult, string.Format("Error: expected response from service: '{0}' Actual was: '{1}'", expectedResult, result));
Contract.Service.IntegrationTests (14)
ServiceContractTests.4.0.0.cs (7)
50Assert.True((number == message.Count<char>()), String.Format("The local int variable was not correctly set, expected {0} but got {1}", message.Count<char>(), number)); 98String.Format("The 'stringValue' field in the instance of 'UniqueType' was not as expected. expected {0} but got {1}", message, uniqueType.stringValue)); 144String.Format("The value of the integer sent by reference was not the expected value. expected {0} but got {1}", message.Count<char>(), number)); 192String.Format("The 'stringValue' field in the instance of 'UniqueType' was not as expected. expected {0} but got {1}", message, uniqueType.stringValue)); 230String.Format("The value of the 'stringValue' field in the UniqueType instance was not as expected. expected {0} but got {1}", message, uniqueType.stringValue)); 238String.Format("The value of the 'stringValue' field in the UniqueType instance was not as expected. expected {0} but got {1}", message, uniqueType.stringValue)); 276String.Format("The value of the 'stringValue' field in the UniqueType instance was not as expected. expected {0} but got {1}", message, uniqueType.stringValue));
ServiceContractTests.4.1.0.cs (7)
657Assert.True(string.Equals(result, "Hello " + echoString), String.Format("Expected response from Service: {0} Actual was: {1}", "Hello " + echoString, result)); 737String.Format("First operation returned '{0}' but expected '{1}'.", expectedEcho1, actualEcho1)); 740String.Format("Second operation returned '{0}' but expected '{1}'.", expectedEcho2, actualEcho2)); 827String.Format("First operation returned '{0}' but expected '{1}'.", expectedEcho1, actualEcho1)); 830String.Format("Second operation returned '{0}' but expected '{1}'.", expectedEcho2, actualEcho2)); 918String.Format("First operation returned '{0}' but expected '{1}'.", expectedEcho1, actualEcho1)); 921String.Format("Second operation returned '{0}' but expected '{1}'.", expectedEcho2, actualEcho2));
Contract.XmlSerializer.IntegrationTests (6)
XmlSerializerFormatTest.cs (6)
183Assert.Equal(string.Format("{0}{1}", intParams.P1, intParams.P2), serviceProxy1.Concatenate(intParams)); 231Assert.Equal(string.Format("{0}{1}", intParams.P1, intParams.P2), serviceProxy1.Concatenate(intParams)); 279Assert.Equal(string.Format("{0}{1}", intParams.P1, intParams.P2), serviceProxy1.Concatenate(intParams)); 332Assert.Equal(string.Format("{0}{1}", intParams.P1, intParams.P2), serviceProxy1.Concatenate(intParams)); 389Assert.Equal(string.Format("{0}{1}", intParams.P1, intParams.P2), serviceProxy1.Concatenate(intParams)); 446Assert.Equal(string.Format("{0}{1}", intParams.P1, intParams.P2), serviceProxy1.Concatenate(intParams));
dotnet-svcutil.xmlserializer (3)
Microsoft\Tools\ServiceModel\SvcUtil\Options.cs (2)
451ToolConsole.WriteError(string.Format("Fail to load the assembly {0} with the error {1}", smassembly, e.Message)); 465ToolConsole.WriteError(string.Format("Fail to load the assembly {0} with the error {1}", smpassembly, e.Message));
src\Common\src\System\SR.cs (1)
51return String.Format(resourceFormat, p1, p2);
dotnet-svcutil.xmlserializer.IntegrationTests (6)
src\System.Private.ServiceModel\tests\Scenarios\Contract\XmlSerializer\XmlSerializerFormatTest.cs (6)
183Assert.Equal(string.Format("{0}{1}", intParams.P1, intParams.P2), serviceProxy1.Concatenate(intParams)); 231Assert.Equal(string.Format("{0}{1}", intParams.P1, intParams.P2), serviceProxy1.Concatenate(intParams)); 279Assert.Equal(string.Format("{0}{1}", intParams.P1, intParams.P2), serviceProxy1.Concatenate(intParams)); 332Assert.Equal(string.Format("{0}{1}", intParams.P1, intParams.P2), serviceProxy1.Concatenate(intParams)); 389Assert.Equal(string.Format("{0}{1}", intParams.P1, intParams.P2), serviceProxy1.Concatenate(intParams)); 446Assert.Equal(string.Format("{0}{1}", intParams.P1, intParams.P2), serviceProxy1.Concatenate(intParams));
dotnet-svcutil-lib (507)
CodeDomFixup\EndpointSelector.cs (14)
59s_bindingValidationErrors.Add(string.Format(SRServiceModel.UnsupportedSecuritySetting, "Mode", wsHttpBinding.Security.Mode)); 73s_bindingValidationErrors.Add(string.Format(SRServiceModel.UnsupportedSecuritySetting, "Mode", netTcpBinding.Security.Mode)); 83s_bindingValidationErrors.Add(string.Format(SRServiceModel.UnsupportedSecuritySetting, "Mode", netHttpBinding.Security.Mode)); 91s_bindingValidationErrors.Add(string.Format(SRServiceModel.UnsupportedSecuritySetting, "Mode", basicHttpBinding.Security.Mode)); 98s_bindingValidationErrors.Add(string.Format(SRServiceModel.UnsupportedSecuritySetting, "Mode", ws2007FederationHttpBinding.Security.Mode)); 105s_bindingValidationErrors.Add(string.Format(SRServiceModel.UnsupportedSecuritySetting, "Mode", wsFederationHttpBinding.Security.Mode)); 147s_bindingValidationErrors.Add(string.Format(SR.BindingBinaryMessageEncodingVersionNotSupportedFormat, 249s_bindingValidationErrors.Add(string.Format(SR.BindingTransportSecurityElementTypeNotSupportedFormat, 266s_bindingValidationErrors.Add(string.Format(SR.BindingTransportSecurityDefaultAlgorithmSuiteNotSupportedFormat, 291s_bindingValidationErrors.Add(string.Format(SR.BindingTransportMessageSecurityVersionNotSupportedFormat, transportSecurityBindingElement.MessageSecurityVersion, values)); 296s_bindingValidationErrors.Add(string.Format(SR.BindingTransportSecurityDefaultAlgorithmSuiteNotSupportedFormat, 306s_bindingValidationErrors.Add(string.Format(SR.BindingTransportSecurityTokenParamsInclusionModeValueNotSupportedFormat, 311s_bindingValidationErrors.Add(string.Format(SR.BindingTransportSecurityTokenParamsReferenceStyleNotSupportedFormat, 321s_bindingValidationErrors.Add(string.Format(SR.BindingTransportSecurityTokenParamsTypeNotSupportedFormat,
CommandProcessorOptions.cs (1)
866throw new ToolArgumentException(string.Format(SR.ErrDuplicateValuePassedToTypeArgFormat, cmd, typeArg));
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (1)
701throw new ArgumentException(string.Format(SRCodeDom.ArityDoesntMatch, baseType, e.TypeArguments.Count));
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (7)
1120throw new InvalidCastException(string.Format(ResXml.XmlBinary_CastNotSupported, _token, "Boolean")); 1210throw new InvalidCastException(string.Format(ResXml.XmlBinary_CastNotSupported, _token, "DateTime")); 1305throw new InvalidCastException(string.Format(ResXml.XmlBinary_CastNotSupported, _token, "Double")); 1400throw new InvalidCastException(string.Format(ResXml.XmlBinary_CastNotSupported, _token, "Float")); 1495throw new InvalidCastException(string.Format(ResXml.XmlBinary_CastNotSupported, _token, "Decimal")); 1590throw new InvalidCastException(string.Format(ResXml.XmlBinary_CastNotSupported, _token, "Int32")); 1685throw new InvalidCastException(string.Format(ResXml.XmlBinary_CastNotSupported, _token, "Int64"));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextWriter.cs (2)
1175throw new InvalidOperationException(string.Format(ResXml.Xml_WrongToken, s_tokenName[(int)token], s_stateName[(int)State.Error])); 1181throw new InvalidOperationException(string.Format(ResXml.Xml_WrongToken, s_tokenName[(int)token], s_stateName[(int)_currentState]));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriter.cs (2)
1952throw new InvalidOperationException(string.Format(ResXml.Xml_WrongToken, tokenName[(int)token], GetStateName(_currentState))); 2196string wrongTokenMessage = string.Format(ResXml.Xml_WrongToken, tokenName[(int)token], GetStateName(currentState));
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (1)
2088exception = new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, _dateTimeFlags.ToString()));
FrameworkFork\Microsoft.Xml\Xml\schema\FacetChecker.cs (1)
1020return new OverflowException(string.Format(ResXml.XmlConvert_Overflow, value.ToString(), datatype.TypeCodeString));
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (1)
1659_restrictionErrorMsg = string.Format(ResXml.Sch_ElementFromElement, derivedElement.QualifiedName, baseElement.QualifiedName);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (3)
2696builder.Append(string.Format(ResXml.Sch_ElementNameAndNamespace, name.Name, name.Namespace)); 2736builder.Append(string.Format(ResXml.Sch_ElementNameAndNamespace, subBuilder.ToString(), name.Namespace)); 2781return string.Format(ResXml.Sch_ElementNameAndNamespace, localName, ns);
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (7)
564return new InvalidCastException(string.Format(ResXml.XmlConvert_TypeBadMapping, XmlTypeName, sourceType.Name)); 724throw new InvalidCastException(string.Format(ResXml.XmlConvert_TypeNoNamespace, value, prefix)); 729throw new InvalidCastException(string.Format(ResXml.XmlConvert_TypeNoNamespace, value, prefix)); 855throw new InvalidCastException(string.Format(ResXml.XmlConvert_TypeNoPrefix, qname.ToString(), qname.Namespace)); 2913throw new InvalidCastException(string.Format(ResXml.XmlConvert_TypeToString, XmlTypeName, sourceType.Name)); 2916throw new InvalidCastException(string.Format(ResXml.XmlConvert_TypeFromString, XmlTypeName, destinationType.Name)); 3660return new InvalidCastException(string.Format(ResXml.XmlConvert_TypeListBadMapping, XmlTypeName, sourceType.Name));
FrameworkFork\Microsoft.Xml\Xml\schema\XsdDateTime.cs (2)
126throw new FormatException(string.Format(ResXml.XmlConvert_BadFormat, text, kinds)); 518throw new ArgumentException(string.Format(ResXml.Sch_XsdDateTimeCompare, left.TypeCode, right.TypeCode));
FrameworkFork\Microsoft.Xml\Xml\schema\XsdDuration.cs (4)
288throw new OverflowException(string.Format(ResXml.XmlConvert_Overflow, ToString(), "Duration")); 386exception = new OverflowException(string.Format(ResXml.XmlConvert_Overflow, durationType, "TimeSpan")); 676return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, durationType)); 679return new OverflowException(string.Format(ResXml.XmlConvert_Overflow, s, durationType));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Advanced\SchemaImporterExtension.cs (1)
209throw new InvalidOperationException(string.Format(ResXml.XmlExtensionDuplicateDefinition, _extension.GetType().FullName, _clrType));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Compilation.cs (3)
111MissingMethodException missingMethod = new MissingMethodException(string.Format("{0}:{1}", type.FullName, methodName)); 114throw new InvalidOperationException(string.Format(ResXml.XmlSerializerExpired, assembly.FullName, /*assembly.CodeBase*/ null), missingMethod); 123if (type == null) throw new InvalidOperationException(string.Format(ResXml.XmlMissingType, typeName, assembly.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (3)
638throw new InvalidOperationException(string.Format(ResXml.XmlIllegalSimpleContentExtension, TypeDesc.FullName, BaseMapping.TypeDesc.FullName)); 1276throw new InvalidOperationException(string.Format(ResXml.XmlSerializableSchemaError, typeof(IXmlSerializable).Name, args.Message)); 1363throw new InvalidOperationException(string.Format(ResXml.XmlGetSchemaEmptyTypeName, _type.FullName, _getSchemaMethod.Name));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Models.cs (1)
195throw new InvalidOperationException(string.Format(ResXml.XmlSerializerUnsupportedMember, member.DeclaringType.FullName + "." + member.Name, type.FullName), typeDesc.Exception);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaImporter.cs (1)
218throw new InvalidOperationException(string.Format(error, name.Name, name.Namespace));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapAttributeOverrides.cs (1)
45throw new InvalidOperationException(string.Format(ResXml.XmlMultipleAttributeOverrides, type.FullName, member));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (4)
202throw new InvalidOperationException(string.Format(ResXml.XmlInvalidDataTypeUsage, dataType, "SoapElementAttribute.DataType")); 723throw new InvalidOperationException(string.Format(ResXml.XmlIllegalSoapAttribute, accessorName, accessor.TypeDesc.FullName)); 776throw new InvalidOperationException(string.Format(ResXml.XmlInvalidDefaultEnumValue, a.SoapDefaultValue.GetType().FullName, fieldTypeDesc.FullName)); 780throw new InvalidOperationException(string.Format(ResXml.XmlInvalidDefaultValue, strValue, a.SoapDefaultValue.GetType().FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (1)
107throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateTypeName, newTypeName, newNamespace));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (13)
169throw new InvalidOperationException(string.Format(ResXml.RefSyntaxNotSupportedForElements0, element.RefName.Name, element.RefName.Namespace)); 175throw new InvalidOperationException(string.Format(ResXml.XmlElementHasNoName, parentType.Name, parentType.Namespace)); 213throw new InvalidOperationException(string.Format(ResXml.XmlInvalidSubstitutionGroupUse, parentType.Name, parentType.Namespace)); 273throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedRedefine, type.Name, typeNs)); 347throw new InvalidOperationException(string.Format(ResXml.XmlInvalidAnyAttributeUse, type.Name, type.QualifiedName.Namespace)); 356throw new InvalidOperationException(string.Format(ResXml.XmlSoapInvalidAttributeUse, type.Name, type.QualifiedName.Namespace)); 361if (attr.Use != XmlSchemaUse.Prohibited) throw new InvalidOperationException(string.Format(ResXml.XmlSoapInvalidAttributeUse, type.Name, type.QualifiedName.Namespace)); 395throw new InvalidOperationException(string.Format(ResXml.XmlSoapInvalidChoice, parentType.Name, parentType.Namespace)); 406throw new InvalidOperationException(string.Format(ResXml.XmlSoapUnsupportedGroupRef, parentType.Name, parentType.Namespace)); 412throw new InvalidOperationException(string.Format(ResXml.XmlSoapUnsupportedGroupRepeat, parentType.Name, parentType.Namespace)); 417throw new InvalidOperationException(string.Format(ResXml.XmlSoapUnsupportedGroupNested, parentType.Name, parentType.Namespace)); 421throw new InvalidOperationException(string.Format(ResXml.XmlSoapUnsupportedGroupAny, parentType.Name, parentType.Namespace)); 638throw new InvalidOperationException(string.Format(ResXml.XmlInvalidEnumContent, dataType.Content.GetType().Name, identifier));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (3)
927exception = new NotSupportedException(string.Format(ResXml.XmlUnsupportedInterfaceDetails, memberInfo.DeclaringType.FullName + "." + memberInfo.Name, type.FullName)); 1126throw new InvalidOperationException(string.Format(ResXml.XmlReadOnlyPropertyError, propertyInfo.DeclaringType, propertyInfo.Name)); 1350throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedIDictionaryDetails, memberInfo, type.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlAttributeOverrides.cs (1)
45throw new InvalidOperationException(string.Format(ResXml.XmlAttributeSetAgain, type.FullName, member));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (2)
387throw new InvalidOperationException(string.Format(ResXml.XmlInvalidDefaultValue, defaultValue, em.TypeDesc.FullName)); 478AddWarningComment(comments, string.Format(ResXml.XmlDropNonPrimitiveAttributeValue, attributeName, defaultValue.ToString()));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCustomFormatter.cs (2)
167throw new InvalidOperationException(string.Format(ResXml.XmlUnknownConstant, originalValue, typeName == null ? "enum" : typeName)); 397throw new InvalidOperationException(string.Format(ResXml.XmlUnknownConstant, parts[i], typeName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (24)
280throw new InvalidOperationException(string.Format(ResXml.XmlInvalidNotNullable, model.TypeDesc.BaseTypeDesc.FullName, "XmlRoot")); 340throw new InvalidOperationException(string.Format(ResXml.XmlMethodTypeNameConflict, accessor.Name, accessor.Namespace)); 397throw new InvalidOperationException(string.Format(ResXml.XmlInvalidDataTypeUsage, dataType, "XmlElementAttribute.DataType")); 455throw new InvalidOperationException(string.Format(ResXml.XmlSerializableAttributes, model.TypeDesc.FullName, typeof(XmlSchemaProviderAttribute).Name)); 582throw new InvalidOperationException(string.Format(ResXml.XmlSerializableSchemaError, typeof(IXmlSerializable).Name, args.Message)); 633return new InvalidOperationException(string.Format(ResXml.XmlIllegalTypeContext, typeDesc.FullName, GetContextName(context))); 918throw new InvalidOperationException(string.Format(ResXml.XmlSequenceInconsistent, "Order", member.Name)); 1453throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentiferMemberMissing, choice.MemberName, accessorName)); 1469throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentiferMemberMissing, choice.MemberName, accessorName)); 1483throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentiferMemberMissing, choice.MemberName, accessorName)); 1572throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAttrOrText, accessorName, accessor.TypeDesc.ArrayElementTypeDesc.FullName)); 1648throw new InvalidOperationException(string.Format(ResXml.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc.FullName, "XmlElement")); 1823throw new InvalidOperationException(string.Format(ResXml.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc.FullName, "XmlElement")); 1866throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAttrOrText, accessorName, accessor.TypeDesc)); 1891throw new InvalidOperationException(string.Format(ResXml.XmlInvalidNotNullable, typeModel.TypeDesc.BaseTypeDesc.FullName, "XmlElement")); 2052throw new InvalidOperationException(string.Format(ResXml.XmlRpcLitElementNamespace, "Namespace", xmlElement.Namespace)); 2056throw new InvalidOperationException(string.Format(ResXml.XmlRpcLitElementNullable, "IsNullable", "true")); 2061throw new InvalidOperationException(string.Format(ResXml.XmlRpcLitElementNamespace, "Namespace", a.XmlArray.Namespace)); 2078throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentiferMissing, typeof(XmlChoiceIdentifierAttribute).Name, accessorName)); 2089throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentiferMissing, typeof(XmlChoiceIdentifierAttribute).Name, accessorName)); 2127throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdDuplicate, choiceMapping.TypeName, choiceId)); 2148throw new InvalidOperationException(string.Format(ResXml.XmlInvalidDefaultValue, strValue, a.XmlDefaultValue.GetType().FullName)); 2181throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateElementName, existing.Name, existing.Namespace)); 2189throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateAttributeName, existing.Name, existing.Namespace));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (4)
288throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateTypeName, newTypeName, newNamespace)); 919if (value.GetType() != typeof(string)) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, string.Format(ResXml.XmlInvalidDefaultValue, value.ToString(), value.GetType().FullName))); 975throw new InvalidOperationException(string.Format(ResXml.XmlInvalidDefaultValue, value.ToString(), pm.TypeDesc.Name)); 978throw new InvalidOperationException(string.Format(ResXml.XmlInvalidDefaultValue, value.ToString(), pm.TypeDesc.Name));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (6)
332throw new InvalidOperationException(string.Format(ResXml.XmlElementHasNoName, parentType.Name, parentType.Namespace)); 453throw new InvalidOperationException(string.Format(ResXml.XmlImporterExtensionBadLocalTypeName, typeOwner.GetType().FullName, typeName)); 558throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedRedefine, type.Name, typeNs)); 649throw new InvalidOperationException(string.Format(ResXml.XmlTypeUsedTwice, type.QualifiedName.Name, type.QualifiedName.Namespace)); 1097throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateElementInScope, element.Name, element.Namespace)); 1101throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateElementInScope1, element.Name, element.Namespace));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemas.cs (3)
500throw new InvalidOperationException(string.Format(ResXml.XmlSchemaIncludeLocation, this.GetType().Name, external.SchemaLocation)); 672item = string.Format(ResXml.XmlSchema, ns, details); 697string err = string.Format(ResXml.XmlSerializableMergeItem, ns, GetSchemaItem(src, ns, null));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (2)
1401return new InvalidOperationException(string.Format(ResXml.XmlUnknownConstant, value, enumType.Name)); 1416return new InvalidCastException(string.Format(ResXml.XmlInvalidCast, value.GetType().FullName, type.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (4)
832return new InvalidOperationException(string.Format(ResXml.XmlUnknownAnyElement, name, ns)); 838return new InvalidOperationException(string.Format(ResXml.XmlInvalidChoiceIdentifierValue, type, identifier)); 851return new InvalidOperationException(string.Format(ResXml.XmlUnknownConstant, value, typeName)); 1483throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateNs, prefix, ns));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializer.cs (1)
494throw new InvalidOperationException(string.Format(ResXml.XmlSerializeErrorDetails, lineInfo.LineNumber.ToString(), lineInfo.LinePosition.ToString()), e);
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (24)
867throw new ArgumentException(string.Format(ResXml.Sch_InvalidDateTimeOption, dateTimeOption, "dateTimeOption")); 902throw new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Boolean")); 919return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Boolean")); 943return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Char")); 961return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Decimal")); 975return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Integer")); 993return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "SByte")); 1011return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Int16")); 1029return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Int32")); 1047return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Int64")); 1065return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Byte")); 1084return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "UInt16")); 1104return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "UInt32")); 1123return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "UInt64")); 1160return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Single")); 1201return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Double")); 1291throw new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "TimeSpan")); 1421throw new ArgumentException(string.Format(ResXml.Sch_InvalidDateTimeOption, dateTimeOption, "dateTimeOption")); 1476exception = new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Guid")); 1480exception = new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Guid")); 1524throw new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Uri")); 1530throw new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Uri")); 1544return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Uri")); 1549return new FormatException(string.Format(ResXml.XmlConvert_BadFormat, s, "Uri"));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (19)
532throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.UnexpectedContractType, DataContract.GetClrTypeFullName(this.GetType()), DataContract.GetClrTypeFullName(UnderlyingType)))); 541throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.UnexpectedContractType, DataContract.GetClrTypeFullName(this.GetType()), DataContract.GetClrTypeFullName(UnderlyingType)))); 594new SecurityException(string.Format( 608new SecurityException(string.Format( 628new SecurityException(string.Format( 637new SecurityException(string.Format( 682new SecurityException(string.Format( 696new SecurityException(string.Format( 716new SecurityException(string.Format( 725new SecurityException(string.Format( 810(new InvalidDataContractException(string.Format(SRSerialization.AttributedTypesCannotInheritFromNonAttributedSerializableTypes, 954ThrowInvalidDataContractException(string.Format(SRSerialization.TooManyDataMembers, DataContract.GetClrTypeFullName(member.DeclaringType), member.Name)); 969ThrowInvalidDataContractException(string.Format(SRSerialization.NoGetMethodForProperty, property.DeclaringType, property.Name)); 974ThrowInvalidDataContractException(string.Format(SRSerialization.NoSetMethodForProperty, property.DeclaringType, property.Name)); 978ThrowInvalidDataContractException(string.Format(SRSerialization.IndexedPropertyCannotBeSerialized, property.DeclaringType, property.Name)); 981ThrowInvalidDataContractException(string.Format(SRSerialization.InvalidMember, DataContract.GetClrTypeFullName(type), member.Name)); 987ThrowInvalidDataContractException(string.Format(SRSerialization.InvalidDataMemberName, member.Name, DataContract.GetClrTypeFullName(type))); 1019ThrowInvalidDataContractException(string.Format(SRSerialization.TooManyIgnoreDataMemberAttributes, DataContract.GetClrTypeFullName(member.DeclaringType), member.Name)); 1238DataContract.ThrowInvalidDataContractException(string.Format(SRSerialization.CallbackMustReturnVoid, DataContract.GetClrTypeFullName(method.DeclaringType), method), method.DeclaringType);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (3)
286throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.UnexpectedContractType, DataContract.GetClrTypeFullName(dataContract.GetType()), DataContract.GetClrTypeFullName(dataContract.UnderlyingType)))); 307throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.TypeCannotBeImported, typeName.Name, typeName.Namespace, string.Format(SRSerialization.CircularTypeReference, classContract.StableName.Name, classContract.StableName.Namespace)))); 1130string.Format(SRSerialization.CannotUseGenericTypeAsBase, dataContractName,
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (4)
714throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.NoGetMethodForProperty, property.DeclaringType, property))); 756throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.NoSetMethodForProperty, property.DeclaringType, property))); 1529throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.IsNotAssignableFrom, DataContract.GetClrTypeFullName(target), DataContract.GetClrTypeFullName(source)))); 1549throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.IsNotAssignableFrom, DataContract.GetClrTypeFullName(target), DataContract.GetClrTypeFullName(source))));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CollectionDataContract.cs (5)
640throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.InvalidCollectionContractKeyNoDictionary, DataContract.GetClrTypeFullName(UnderlyingType), collectionContractAttribute.KeyName))); 648throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.InvalidCollectionContractValueNoDictionary, DataContract.GetClrTypeFullName(UnderlyingType), collectionContractAttribute.ValueName))); 741string.Format(SRSerialization.DupKeyValueName, DataContract.GetClrTypeFullName(UnderlyingType), KeyName), 1215return (param == null) ? string.Format(message, nestedMessage) : string.Format(message, nestedMessage, param); 1375new SecurityException(string.Format(
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (7)
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)))); 309throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.UnexpectedContractType, DataContract.GetClrTypeFullName(this.GetType()), DataContract.GetClrTypeFullName(UnderlyingType)))); 314throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.UnexpectedContractType, DataContract.GetClrTypeFullName(this.GetType()), DataContract.GetClrTypeFullName(UnderlyingType)))); 2022throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.GenericNameBraceMismatch, format, genericNameProvider.GetGenericTypeName()))); 2112DataContract.ThrowInvalidDataContractException(string.Format(SRSerialization.KnownTypeAttributeUnknownMethod, methodName, DataContract.GetClrTypeFullName(type)), type); 2115DataContract.ThrowInvalidDataContractException(string.Format(SRSerialization.KnownTypeAttributeReturnType, DataContract.GetClrTypeFullName(type), methodName), type);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSerializer.cs (2)
349throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.IsAnyCannotBeSerializedAsDerivedType, graphType, contract.UnderlyingType))); 422throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationExceptionWithReaderDetails(string.Format(SRSerialization.ExpectingElement, expectedNs, expectedName), xmlReader));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSet.cs (1)
130throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.DupContractInDataContractSet, dataContract.StableName.Name, dataContract.StableName.Namespace)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\EnumDataContract.cs (7)
289ThrowInvalidDataContractException(string.Format(SRSerialization.TooManyEnumMembers, DataContract.GetClrTypeFullName(field.DeclaringType), field.Name)); 296ThrowInvalidDataContractException(string.Format(SRSerialization.InvalidEnumMemberValue, field.Name, DataContract.GetClrTypeFullName(type))); 307ThrowInvalidDataContractException(string.Format(SRSerialization.DataMemberOnEnumField, DataContract.GetClrTypeFullName(field.DeclaringType), field.Name)); 371throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.InvalidEnumValueOnWrite, value, DataContract.GetClrTypeFullName(UnderlyingType)))); 377throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.InvalidEnumValueOnWrite, value, DataContract.GetClrTypeFullName(UnderlyingType)))); 417throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.InvalidEnumValueOnRead, stringValue, DataContract.GetClrTypeFullName(UnderlyingType)))); 436throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.InvalidEnumValueOnRead, value.Substring(index, count), DataContract.GetClrTypeFullName(UnderlyingType))));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\PrimitiveDataContract.cs (1)
716throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.XmlForObjectCannotHaveContent, localName, ns), xes));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaExporter.cs (2)
60throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.MissingGetSchemaMethod, DataContract.GetClrTypeFullName(clrType), methodName))); 70throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.InvalidNonNullReturnValueByIsAny, DataContract.GetClrTypeFullName(clrType), methodName)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (14)
396throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.SpecifiedTypeNotFoundInSchema, typeName.Name, typeName.Namespace))); 677ThrowTypeCannotBeImportedException(dataContract.StableName.Name, dataContract.StableName.Namespace, string.Format(SRSerialization.DerivedTypeNotISerializable, baseTypeName.Name, baseTypeName.Namespace)); 827ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.IsValueTypeFormattedIncorrectly, isValueTypeInnerText, fe.Message)); 850ThrowISerializableTypeCannotBeImportedException(dataContract.StableName.Name, dataContract.StableName.Namespace, string.Format(SRSerialization.BaseTypeNotISerializable, baseTypeName.Name, baseTypeName.Namespace)); 901ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.ISerializableMustRefFactoryTypeAttribute, factoryTypeAttributeRefName.Name, factoryTypeAttributeRefName.Namespace)); 916ThrowTypeCannotBeImportedException(dataContract.StableName.Name, dataContract.StableName.Namespace, string.Format(dataContract.IsISerializable ? SRSerialization.InvalidISerializableDerivation : SRSerialization.InvalidClassDerivation, baseTypeName.Name, baseTypeName.Namespace)); 950ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.AnonymousTypeNotSupported, typeName.Name, typeName.Namespace)); 955ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.TopLevelElementRepresentsDifferentType, topLevelElement.SchemaTypeName.Name, topLevelElement.SchemaTypeName.Namespace)); 986ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.ElementRefOnLocalElementNotSupported, element.RefName.Name, element.RefName.Namespace)); 1096ThrowArrayTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.ElementRefOnLocalElementNotSupported, element.RefName.Name, element.RefName.Namespace)); 1116ThrowArrayTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.InvalidKeyValueTypeNamespace, element.Name, keyValueContract.Namespace)); 1163ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.IsDictionaryFormattedIncorrectly, isDictionaryInnerText, fe.Message)); 1295throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.GenericAnnotationAttributeNotFound, type.Name, Globals.GenericNameAttribute))); 1299throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.GenericAnnotationAttributeNotFound, type.Name, Globals.GenericNamespaceAttribute)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializer.cs (2)
362return String.Format(CultureInfo.InvariantCulture, "{0} {1}", string.Format(SRSerialization.ErrorInLine, reader.LineNumber, reader.LinePosition), errorMessage); 385return string.Format(errorMessage, typeInfo, innerExceptionMessage);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (3)
81throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.ArrayExceededSize, arraySize, 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)))); 474string.Format(SRSerialization.MaxArrayLengthExceeded, Int32.MaxValue,
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (1)
101throw XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.ClrTypeNotFound, assembly.FullName, typeName));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (4)
529throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SerializationException(string.Format(SRSerialization.RequiredMemberMustBeEmitted, memberName, type.FullName))); 602throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.ResolveTypeReturnedFalse, DataContract.GetClrTypeFullName(DataContractResolver.GetType()), DataContract.GetClrTypeFullName(objectType)))); 612throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.ResolveTypeReturnedNull, DataContract.GetClrTypeFullName(DataContractResolver.GetType()), DataContract.GetClrTypeFullName(objectType)))); 617throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.ResolveTypeReturnedNull, DataContract.GetClrTypeFullName(DataContractResolver.GetType()), DataContract.GetClrTypeFullName(objectType))));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (1)
223throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(XmlObjectSerializer.TryAddLineInfo(this, string.Format(SRSerialization.XmlInvalidConversion, value, type))));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XsdDataContractImporter.cs (2)
189throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.TypeHasNotBeenImported, typeName.Name, typeName.Namespace))); 204throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.TypeHasNotBeenImported, typeName.Name, typeName.Namespace)));
FrameworkFork\System.Runtime.Serialization\System\Text\Base64Encoding.cs (7)
96throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(SRSerialization.XmlInvalidBase64Sequence, new string(pch, 0, 4), index + (int)(pch - _chars)))); 106throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(SRSerialization.XmlInvalidBase64Sequence, new string(pch, 0, 4), index + (int)(pch - _chars)))); 167throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(SRSerialization.XmlInvalidBase64Sequence, new string(pch, 0, 4), charIndex + (int)(pch - _chars)))); 177throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(SRSerialization.XmlInvalidBase64Sequence, new string(pch, 0, 4), charIndex + (int)(pch - _chars)))); 249throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(SRSerialization.XmlInvalidBase64Sequence, "?", charIndex + (int)(pch - _chars)))); 259throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(SRSerialization.XmlInvalidBase64Sequence, "?", charIndex + (int)(pch - _chars)))); 285throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteCount", string.Format(SRSerialization.ValueMustBeInRange, 0, int.MaxValue / 4 * 3 - 2)));
FrameworkFork\System.Runtime.Serialization\System\Text\BinHexEncoding.cs (3)
87throw new FormatException(string.Format(SRSerialization.XmlInvalidBinHexSequence, new string(pch, 0, 2), charIndex + (int)(pch - _chars))); 91throw new FormatException(string.Format(SRSerialization.XmlInvalidBinHexSequence, new string(pch, 0, 2), charIndex + (int)(pch - _chars))); 111throw new ArgumentOutOfRangeException("byteCount", string.Format(SRSerialization.ValueMustBeInRange, 0, int.MaxValue / 2));
FrameworkFork\System.Runtime.Serialization\System\Xml\EncodingStreamWrapper.cs (2)
537throw new XmlException(string.Format(SRSerialization.XmlExpectedEncoding, GetEncodingName(expEnc), GetEncodingName(actualEnc))); 547throw new XmlException(string.Format(SRSerialization.XmlEncodingMismatch, declEnc, docEnc));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseReader.cs (2)
373XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlSpecificBindingPrefix, "xml", xmlNamespace))); 377XmlExceptionHelper.ThrowXmlException(this, new XmlException(string.Format(SRSerialization.XmlSpecificBindingPrefix, "xmlns", xmlnsNamespace)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseWriter.cs (16)
139throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteXmlnsAttribute", WriteState.ToString()))); 164throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteXmlnsAttribute", WriteState.ToString()))); 192throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteStartAttribute", WriteState.ToString()))); 261throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlSpecificBindingNamespace, "xmlns", ns))); 263throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlSpecificBindingNamespace, "xml", ns))); 299throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteEndAttribute", WriteState.ToString()))); 411throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteComment", WriteState.ToString()))); 437throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteFullEndElement", WriteState.ToString()))); 449throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteCData", WriteState.ToString()))); 480throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteStartElement", WriteState.ToString()))); 525throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteStartElement", WriteState.ToString()))); 587throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidDepth, "WriteEndElement", _depth.ToString(CultureInfo.InvariantCulture)))); 836throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteStartDocument", WriteState.ToString()))); 1594throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidWriteState, "WriteStartElement", WriteState.ToString()))); 1942throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlSpecificBindingNamespace, "xmlns", uri))); 1945throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlSpecificBindingNamespace, "xml", uri)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryString.cs (1)
32throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("key", string.Format(SRSerialization.ValueMustBeInRange, MinKey, MaxKey)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlExceptionHelper.cs (5)
35s += " " + string.Format(SRSerialization.XmlLineInfo, lineInfo.LineNumber, lineInfo.LinePosition); 47s += " " + string.Format(SRSerialization.XmlLineInfo, lineInfo.LineNumber, lineInfo.LinePosition); 67return string.Format(SRSerialization.XmlFoundElement, GetName(reader.Prefix, reader.LocalName), reader.NamespaceURI); 69return string.Format(SRSerialization.XmlFoundEndElement, GetName(reader.Prefix, reader.LocalName), reader.NamespaceURI); 269return new XmlException(string.Format(SRSerialization.XmlInvalidConversion, value, type), exception);
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\SecurityTokenAuthenticator.cs (2)
35throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(string.Format(SRServiceModel.CannotValidateSecurityTokenType, this, token.GetType()))); 51string errorMsg = string.Format(SRServiceModel.CannotValidateSecurityTokenType, this, token.GetType());
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\X509CertificateValidator.cs (1)
92throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityTokenValidationException(string.Format(SRServiceModel.X509ChainBuildFail,
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\KeyInfoSerializer.cs (1)
272throw /*System.ServiceModel.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SR_IdentityModel.CannotReadKeyIdentifierClause, reader.LocalName, reader.NamespaceURI)));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SecurityToken.cs (1)
28string.Format(SRServiceModel.TokenDoesNotSupportKeyIdentifierClauseCreation, GetType().Name, typeof(T).Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\BasicHttpBinding.cs (1)
21throw ExceptionHelper.PlatformNotSupported(string.Format(SRServiceModel.UnsupportedSecuritySetting, "securityMode", securityMode));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressHeader.cs (1)
118throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.ExpectedElementMissing, Name, Namespace)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressHeaderCollection.cs (1)
105throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.MultipleMessageHeaders, name, ns)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AsymmetricSecurityBindingElement.cs (3)
169throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.CannotImportProtectionLevelForContract, contract.Name, contract.Namespace))); 373throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.CannotImportProtectionLevelForContract, policyContext.Contract.Name, policyContext.Contract.Namespace))); 401throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.CannotImportProtectionLevelForContract, policyContext.Contract.Name, policyContext.Contract.Namespace)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncoder.cs (6)
832throw FxTrace.Exception.AsError(new ProtocolException(string.Format(SRServiceModel.EncoderUnrecognizedContentType, contentType, this.ContentType))); 851throw FxTrace.Exception.AsError(new ProtocolException(string.Format(SRServiceModel.EncoderUnrecognizedContentType, contentType, this.ContentType))); 1020string.Format(SRServiceModel.ValueMustBeInRange, 0, 0x4000))); 1043string.Format(SRServiceModel.ValueMustBeInRange, 0, 0xFF))); 1069string.Format(SRServiceModel.ValueMustBeInRange, 'a', 'z'))); 1113string.Format(SRServiceModel.ValueMustBeInRange, 1, 4)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Binding.cs (1)
245string.Format(SRServiceModel.TransportBindingElementMustBeLast, this.Name, transport.GetType().Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BindingContext.cs (1)
115throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelParameterCollection.cs (4)
88text = string.Format(SRServiceModel.ChannelParametersCannotBeModified, 93text = string.Format(SRServiceModel.CommunicationObjectInInvalidState, 116text = string.Format(SRServiceModel.ChannelParametersCannotBePropagated, 128text = string.Format(SRServiceModel.CommunicationObjectInInvalidState,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelRequirements.cs (1)
253exception = new InvalidOperationException(string.Format(SRServiceModel.CouldnTCreateChannelForType2, bindingName, contractChannelTypesString));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CommunicationObject.cs (3)
221return new InvalidOperationException(string.Format(SRServiceModel.CommunicationObjectCannotBeUsed, this.GetCommunicationObjectType().ToString(), _state.ToString())); 226return new InvalidOperationException(string.Format(SRServiceModel.CommunicationObjectCannotBeModifiedInState, this.GetCommunicationObjectType().ToString(), _state.ToString())); 231return new InvalidOperationException(string.Format(SRServiceModel.CommunicationObjectBaseClassMethodNotCalled, this.GetCommunicationObjectType().ToString(), method));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Connection.cs (2)
258string.Format(SRServiceModel.ValueMustBeInRange, -1, int.MaxValue))); 273string.Format(SRServiceModel.ValueMustBeInRange, -1, int.MaxValue)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (3)
138string.Format(SRServiceModel.SocketCloseReadTimeout, thisPtr.RemoteEndPoint, thisPtr._readFinTimeout), 260string.Format(SRServiceModel.SocketCloseReadTimeout, RemoteEndPoint, _readFinTimeout), timeoutException)); 304string.Format(SRServiceModel.SocketCloseReadTimeout, RemoteEndPoint, _readFinTimeout), timeoutException));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingChannels.cs (1)
427return new TimeoutException(string.Format(SRServiceModel.OpenTimedOutEstablishingTransportSession,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingDecoders.cs (3)
267return new ProtocolException(string.Format(SRServiceModel.FramingContentTypeMismatch, contentType, via)); 429return new InvalidDataException(string.Format(SRServiceModel.FramingRecordTypeMismatch, expectedType.ToString(), foundType.ToString())); 456return new ProtocolException(string.Format(SRServiceModel.FramingError, StreamPosition, CurrentStateAsString),
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (4)
353return new ArgumentException(string.Format(SRServiceModel.HttpToMustEqualVia, to, via)); 954throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(string.Format( 1019throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(string.Format( 1086new ProtocolException(string.Format(SRServiceModel.HttpSoapActionMismatch, action, value)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
154new ProtocolException(string.Format(SRServiceModel.UnexpectedHttpResponseCode,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpMessageHandlerFactory.cs (4)
59string.Format(SRServiceModel.HttpMessageHandlerTypeNotSupported, "null", s_delegatingHandlerType.Name)); 66string.Format(SRServiceModel.HttpMessageHandlerTypeNotSupported, handler.Name, s_delegatingHandlerType.Name)); 74string.Format(SRServiceModel.HttpMessageHandlerTypeNotSupported, handler.Name, s_delegatingHandlerType.Name)); 154throw FxTrace.Exception.Argument("handlers", string.Format(SRServiceModel.DelegatingHandlerArrayFromFuncContainsNullItem, s_delegatingHandlerType.Name, GetFuncDetails(_handlerFunc)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageHelper.cs (2)
341throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(string.Format(SRServiceModel.FramingContentTypeMismatch, _httpRequestMessage.Content.Headers.ContentType.ToString(), _httpRequestMessage.RequestUri))); 357string message = string.Format(SRServiceModel.HttpAuthorizationFailed, _factory.AuthenticationScheme,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageProperty.cs (1)
67string.Format(SRServiceModel.ValueMustBeInRange, 100, 599)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpTransportBindingElement.cs (2)
474throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("TChannel", string.Format(SRServiceModel.CouldnTCreateChannelForChannelType2, context.Binding.Name, typeof(TChannel))); 529string.Format(SRServiceModel.HttpTransportCannotHaveMultipleAuthenticationSchemes, policyContext.Contract.Namespace, policyContext.Contract.Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\LocalClientSecuritySettings.cs (1)
203string.Format(SRServiceModel.ValueMustBeInRange, 0, 100)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Message.cs (3)
473return string.Format(SRServiceModel.MessageBodyToStringError, e.GetType().ToString(), e.Message); 1250Exception versionMismatchException = new ArgumentException(string.Format(SRServiceModel.EncoderEnvelopeVersionMismatch, envelopeVersion, desiredVersion.Envelope), "reader"); 1452Exception versionMismatchException = new ArgumentException(string.Format(SRServiceModel.EncoderEnvelopeVersionMismatch, envelopeVersion, desiredVersion.Envelope), "reader");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageContent.cs (3)
73new ProtocolException(string.Format(SRServiceModel.HttpSoapActionMismatch, action, value))); 106new ProtocolException(string.Format(SRServiceModel.HttpSoapActionMismatchContentType, action, value))); 113new ProtocolException(string.Format(SRServiceModel.HttpContentTypeFormatException, formatException.Message, Headers.ContentType.ToString()), formatException));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageEncoder.cs (1)
228new ProtocolException(string.Format(SRServiceModel.EncoderMessageVersionMismatch, message.Version, MessageVersion)),
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeader.cs (1)
444throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.MessageHeaderVersionNotSupported, this.GetType().FullName, messageVersion.ToString()), "version"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeaders.cs (21)
335string.Format(SRServiceModel.ValueMustBeInRange, 0, _headerCount))); 399string.Format(SRServiceModel.HeaderAlreadyUnderstood, headerInfo.Name, headerInfo.Namespace), "headerInfo")); 494throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.MessageHeaderVersionMismatch, collection._version.ToString(), _version.ToString()), "collection")); 501string.Format(SRServiceModel.ValueMustBeInRange, 0, collection._headerCount))); 550string.Format(SRServiceModel.ValueMustBeInRange, 0, array.Length - _headerCount))); 584string.Format(SRServiceModel.MultipleMessageHeaders, name, _version.Addressing.Namespace), 620new MessageHeaderException(string.Format(SRServiceModel.MultipleMessageHeaders, name, ns), name, ns, true)); 647throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageHeaderException(string.Format(SRServiceModel.MultipleMessageHeaders, name, ns), name, ns, true)); 680throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageHeaderException(string.Format(SRServiceModel.MultipleMessageHeaders, name, ns), name, ns, true)); 843throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageHeaderException(string.Format(SRServiceModel.HeaderNotFound, name, ns), name, ns)); 853throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageHeaderException(string.Format(SRServiceModel.HeaderNotFound, name, ns), name, ns)); 863string.Format(SRServiceModel.ValueMustBeInRange, 0, _headerCount))); 967string.Format(SRServiceModel.ValueMustBeInRange, 0, _headerCount))); 1067string.Format(SRServiceModel.ValueMustBeInRange, 0, _headerCount))); 1211throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.MessageHeaderVersionNotSupported, 1236string.Format(SRServiceModel.ValueMustBeInRange, 0, _headerCount))); 1387string.Format(SRServiceModel.HeaderAlreadyNotUnderstood, headerInfo.Name, headerInfo.Namespace), "headerInfo")); 1417string.Format(SRServiceModel.ValueMustBeInRange, 0, _headerCount))); 1432string.Format(SRServiceModel.ValueMustBeInRange, 0, _headerCount))); 1583string.Format(SRServiceModel.ValueMustBeInRange, 0, _headerCount))); 1615string.Format(SRServiceModel.ValueMustBeInRange, 0, _headerCount)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (1)
731string.Format(SRServiceModel.ValueMustBeInRange, 0, array.Length - _propertyCount)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageVersion.cs (1)
159return string.Format(MessageVersionToStringFormat, _envelope.ToString(), _addressing.ToString());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ReliableSessionBindingElement.cs (3)
120string.Format(SRServiceModel.ValueMustBeInRange, 0, 16384))); 151string.Format(SRServiceModel.ValueMustBeInRange, 0, 4096))); 309new InvalidOperationException(string.Format(SRServiceModel.TransferModeNotSupported,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ReliableSessionBindingElementImporter.cs (1)
412string exceptionString = string.Format(SRServiceModel.AssertionNotSupported,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (4)
595string text = string.Format(SRServiceModel.SFxRequestHasInvalidReplyToOnClient, replyTo.Uri, localUri); 603string text = string.Format(SRServiceModel.SFxRequestHasInvalidFaultToOnClient, faultTo.Uri, localUri); 882return new TimeoutException(string.Format(SRServiceModel.TimeoutServiceChannelConcurrentOpen2, address, timeout)); 1169string.Format(SRServiceModel.SFxVersionMismatchInOperationContextAndMessage2, context.OutgoingMessageVersion, message.Headers.MessageVersion)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SocketConnection.cs (2)
249return new CommunicationObjectAbortedException(string.Format(SRServiceModel.TcpTransferError, (int)socketException.SocketErrorCode, socketException.Message), originalException); 253CommunicationException communicationException = new CommunicationException(string.Format(SRServiceModel.TcpTransferError, (int)socketException.SocketErrorCode, socketException.Message), originalException);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (3)
175throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("kind", string.Format(SRServiceModel.StreamUpgradeUnsupportedChannelBindingKind, this.GetType(), kind)); 197throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("kind", string.Format(SRServiceModel.StreamUpgradeUnsupportedChannelBindingKind, this.GetType(), kind)); 263throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TextMessageEncoder.cs (1)
482string.Format(SRServiceModel.ValueMustBeInRange, 0, maxMessageSize)), message);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransactionFlowBindingElementImporter.cs (1)
180string.Format(SRServiceModel.UnsupportedBooleanAttribute, TransactionPolicyStrings.OptionalLocal, e.Message)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportChannelFactory.cs (1)
175throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("via", string.Format(SRServiceModel.InvalidUriScheme,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (2)
515string.Format(SRServiceModel.SendToViaTimedOut, Via, timeout), 620string.Format(SRServiceModel.SendToViaTimedOut, Via, timeout),
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
233throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketHelper.cs (1)
232errorMsg = string.Format(SRServiceModel.WebSocketOperationTimedOut, operation, timeout);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportSettings.cs (1)
111throw FxTrace.Exception.Argument("value", string.Format(SRServiceModel.WebSocketInvalidProtocolInvalidCharInProtocolString, value, invalidChar));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WindowsStreamSecurityBindingElement.cs (1)
119string.Format(SRServiceModel.ExpectedElementMissing, TransportPolicyConstants.ProtectionLevelName, TransportPolicyConstants.DotNetFramingNamespace)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientCredentials.cs (1)
131throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(NotImplemented.ByDesignWithMessage(string.Format(SRServiceModel.CloneNotImplementedCorrectly, GetType(), (result != null) ? result.ToString() : "null")));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
172ParameterModeException parameterModeException = new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_ElementIsNotNillable, part.Name, part.Namespace));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DispatcherBuilder.cs (1)
308string text = string.Format(SRServiceModel.SFxBindingMustContainTransport2, binding.Name, binding.Namespace);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (12)
311throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxWsdlOperationInputNeedsMessageAttribute2, wsdlOperation.Name, wsdlOperation.PortType.Name))); 313throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxWsdlOperationOutputNeedsMessageAttribute2, wsdlOperation.Name, wsdlOperation.PortType.Name))); 332AddError(string.Format(SRServiceModel.SFxInconsistentWsdlOperationUseInBindingMessages, messageBinding.OperationBinding.Name, messageBinding.OperationBinding.Binding.Name)); 344AddError(string.Format(SRServiceModel.SFxInconsistentWsdlOperationUseInBindingFaults, faultBinding.OperationBinding.Name, faultBinding.OperationBinding.Binding.Name)); 381throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxWsdlOperationInputNeedsMessageAttribute2, wsdlOperation.Name, wsdlOperation.PortType.Name))); 383throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxWsdlOperationOutputNeedsMessageAttribute2, wsdlOperation.Name, wsdlOperation.PortType.Name))); 608TraceFaultCannotBeImported(fault.Name, description.Name, string.Format(SRServiceModel.SFxWsdlOperationFaultNeedsMessageAttribute2, fault.Name, fault.Operation.PortType.Name)); 803throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxSchemaDoesNotContainElement, elementName.Name, elementName.Namespace))); 832throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxSchemaDoesNotContainType, typeName.Name, typeName.Namespace))); 1299AddError(string.Format(SRServiceModel.SFxInconsistentWsdlOperationUseInBindingExtensions, messageBinding.OperationBinding.Name, messageBinding.OperationBinding.Binding.Name)); 1311AddError(string.Format(SRServiceModel.SFxInconsistentWsdlOperationUseInBindingExtensions, messageBinding.OperationBinding.Name, messageBinding.OperationBinding.Binding.Name)); 1372AddError(string.Format(SRServiceModel.SFxInconsistentWsdlOperationUseInBindingExtensions, faultBinding.OperationBinding.Name, faultBinding.OperationBinding.Binding.Name));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExporter.cs (1)
146string errorMessage = string.Format(SRServiceModel.PolicyExtensionExportError, exporter.GetType(), e.Message);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataImporter.cs (1)
141string errorMessage = string.Format(SRServiceModel.PolicyExtensionImportError, importer.GetType(), e.Message);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (2)
757throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SfxUseTypedMessageForCustomAttributes, setting.Name, localAttributes[0].AttributeType.BaseType))); 882throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_NamespaceMismatch, setting.Namespace, defaultNS)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\PolicyReader.cs (2)
69string warningMsg = string.Format(SRServiceModel.ExceededMaxPolicyComplexity, node.Name, PolicyHelper.GetFragmentIdentifier((XmlElement)node)); 93string warningMsg = string.Format(SRServiceModel.UnrecognizedPolicyElementInNamespace, node.Name, node.NamespaceURI);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\SchemaHelper.cs (1)
66throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxConflictingGlobalType, type.Name, schema.TargetNamespace)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (11)
157throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.SFXUnvalidNamespaceValue, ns, propName)); 388throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxContractInheritanceRequiresInterfaces2, service, t))); 405throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxContractInheritanceRequiresInterfaces, service, t))); 488string.Format(SRServiceModel.SFxErrorReflectingOnType2, attrType.Name, type.Name), e)); 537throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.tooManyAttributesOfTypeOn2, attrType, attrProvider.ToString()))); 550throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.couldnTFindRequiredAttributeOfTypeOn2, typeof(T), attrProvider.ToString()))); 582throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.couldnTFindRequiredAttributeOfTypeOn2, typeof(T), attrProvider.ToString()))); 666new InvalidOperationException(string.Format(SRServiceModel.SFxBadByValueParameterMetadata, 675new InvalidOperationException(string.Format(SRServiceModel.SFxBadByReferenceParameterMetadata, 808throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.InvalidAsyncEndMethodSignatureForMethod2, endMethod.Name, endMethod.DeclaringType.FullName))); 841throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.InvalidAsyncBeginMethodSignatureForMethod2, method.Name, method.DeclaringType.FullName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (10)
112string.Format(SRServiceModel.SFxContractInheritanceRequiresInterfaces, actualContractType, service))); 143throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format( 731string.Format(SRServiceModel.InAContractInheritanceHierarchyTheServiceContract3_2, 859string.Format(SRServiceModel.EndMethodsCannotBeDecoratedWithOperationContractAttribute, 976throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.OneWayAndFaultsIncompatible2, methodInfo.DeclaringType.FullName, operationName.EncodedName))); 1088string.Format(SRServiceModel.SFxFaultContractDuplicateDetailType, operationName, fault.DetailType))); 1190throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxMultipleUnknownHeaders, methodInfo, methodInfo.DeclaringType))); 1230throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidMessageContractException(string.Format(SRServiceModel.SFxDuplicateMessageParts, partDescription.Name, partDescription.Namespace))); 1297throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxMessageContractBaseTypeNotValid, baseType, typedMessageType))); 1552throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidMessageContractException(string.Format(SRServiceModel.SFxDuplicateMessageParts, partDescription.Name, partDescription.Namespace)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlExporter.cs (3)
262throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.DuplicateContractQNameNameOnExport, contract.Name, contract.Namespace))); 1203string errorMessage = string.Format(SRServiceModel.WsdlExtensionContractExportError, exporter.GetType(), contractIdentifier); 1221string errorMessage = string.Format(SRServiceModel.WsdlExtensionEndpointExportError, exporter.GetType(), endpointIdentifier);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (5)
774string errorMsg = string.Format(SRServiceModel.RequiredWSDLExtensionIgnored, qName.Name, qName.Namespace); 906throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInvalidWsdlBindingOpMismatch2, wsdlOperationBinding.Binding.Name, wsdlOperationBinding.Name))); 989throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnableToLocateOperation2, wsdlOperationBinding.Name, contract.Name))); 1896string errorMessage = string.Format(SRServiceModel.WsdlExtensionBeforeImportError, importer.GetType().AssemblyQualifiedName, e.Message); 1909string errorMessage = string.Format(SRServiceModel.WsdlExtensionImportError, importer.GetType().FullName, e.Message);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (3)
525throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxFaultTypeAnonymous, this.Operation.Name, fault.DetailType.FullName))); 860throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(isWrapped ? SRServiceModel.SFxInvalidXmlAttributeInWrapped : SRServiceModel.SFxInvalidXmlAttributeInBare, invalidAttributeType, elementName.DecodedName))); 862throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxXmlArrayNotAllowedForMultiple, elementName.DecodedName, ns)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
495return new InvalidOperationException(string.Format(SRServiceModel.SFxChannelDispatcherUnableToOpen2, _listener.Uri, endpointContractNames), e);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelHandler.cs (1)
273throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxNoEndpointMatchingAddressForConnectionOpeningMessage, message.Headers.Action, "Open")));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (2)
424string.Format(SRServiceModel.SFxInvalidMessageBodyErrorDeserializingParameter, part.Description.Namespace, part.Description.Name), e)); 429string.Format(SRServiceModel.SFxInvalidMessageBodyErrorDeserializingParameter, part.Description.Namespace, part.Description.Name), e));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (1)
300string message = string.Format(SRServiceModel.SFxNullReplyFromFormatter2, this.Formatter.GetType().ToString(), (_name ?? ""));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (1)
250return new TimeoutException(string.Format(SRServiceModel.SFxRequestTimedOut2, address, timeout));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ImmutableClientRuntime.cs (1)
187(string.Format(SRServiceModel.SFxNeedProxyBehaviorOperationSelector2,
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationFormatter.cs (6)
144string.Format(SRServiceModel.SFxErrorDeserializingReplyBodyMore, _operationName, xe.Message), xe)); 149string.Format(SRServiceModel.SFxErrorDeserializingReplyBodyMore, _operationName, fe.Message), fe)); 154string.Format(SRServiceModel.SFxErrorDeserializingReplyBodyMore, _operationName, se.Message), se)); 207string.Format(SRServiceModel.SFxErrorDeserializingRequestBodyMore, _operationName, xe.Message), 214string.Format(SRServiceModel.SFxErrorDeserializingRequestBodyMore, _operationName, fe.Message), 220string.Format(SRServiceModel.SFxErrorDeserializingRequestBodyMore, _operationName, se.Message),
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (7)
297throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxMessagePartDescriptionMissingType, bodyDescription.Name, bodyDescription.Namespace))); 395string.Format(SRServiceModel.SFxErrorDeserializingReplyBodyMore, _operation.Name, xe.Message), xe)); 400string.Format(SRServiceModel.SFxErrorDeserializingReplyBodyMore, _operation.Name, fe.Message), fe)); 405string.Format(SRServiceModel.SFxErrorDeserializingReplyBodyMore, _operation.Name, se.Message), se)); 435string.Format(SRServiceModel.SFxErrorDeserializingRequestBodyMore, _operation.Name, xe.Message), 442string.Format(SRServiceModel.SFxErrorDeserializingRequestBodyMore, _operation.Name, fe.Message), 448string.Format(SRServiceModel.SFxErrorDeserializingRequestBodyMore, _operation.Name, se.Message),
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (1)
202throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(string.Format(SRServiceModel.SFxHeaderNotUnderstood, headersNotUnderstood[0].Name, headersNotUnderstood[0].Namespace)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (2)
86throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInputParametersToServiceInvalid, _inputParameterCount, inputs.Length))); 139ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityExecuteMethod, _method.DeclaringType.FullName, _method.Name), ActivityType.ExecuteUserCode);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (2)
144new InvalidOperationException(string.Format(SRServiceModel.SFxInputParametersToServiceInvalid, _inputParameterCount, 199string.Format(SRServiceModel.ActivityExecuteMethod, _taskMethod.DeclaringType.FullName, _taskMethod.Name),
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (2)
127string.Format(SRServiceModel.SFxErrorSerializingHeader, messageDescription.MessageName, e.Message), e)); 301string.Format(SRServiceModel.SFxErrorSerializingBody, messageDescription.MessageName, e.Message), e));
FrameworkFork\System.ServiceModel\System\ServiceModel\DnsEndpointIdentity.cs (1)
29throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.UnrecognizedClaimTypeForIdentity, identity.ClaimType, ClaimTypes.Dns));
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (4)
711throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateXmlException(reader, string.Format(SRServiceModel.UnexpectedDuplicateElement, XD.AddressingDictionary.Identity.Value, XD.AddressingDictionary.IdentityExtensionNamespace.Value))); 716throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateXmlException(reader, string.Format(SRServiceModel.AddressingExtensionInBadNS, reader.LocalName, reader.NamespaceURI))); 1104throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateXmlException(reader, string.Format(SRServiceModel.AddressingExtensionInBadNS, reader.LocalName, reader.NamespaceURI))); 1161throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(CreateXmlException(reader, string.Format(SRServiceModel.AddressingExtensionInBadNS, reader.LocalName, reader.NamespaceURI)));
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointIdentity.cs (3)
121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.UnexpectedEmptyElementExpectingClaim, XD.AddressingDictionary.Identity.Value, XD.AddressingDictionary.IdentityExtensionNamespace.Value))); 144throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.UnrecognizedIdentityType, reader.Name, reader.NamespaceURI))); 153throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.UnrecognizedIdentityType, reader.Name, reader.NamespaceURI)));
FrameworkFork\System.ServiceModel\System\ServiceModel\HttpBindingBase.cs (2)
320throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.UnsupportedSecuritySetting, "Mode", mode))); 330throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.UnsupportedSecuritySetting, "Transport.ClientCredentialType", transport.ClientCredentialType)));
FrameworkFork\System.ServiceModel\System\ServiceModel\MustUnderstandSoapException.cs (1)
34FaultReason reason = new FaultReason(string.Format(SRServiceModel.SFxHeaderNotUnderstood, name, ns), CultureInfo.CurrentCulture);
FrameworkFork\System.ServiceModel\System\ServiceModel\NetHttpBinding.cs (2)
147throw ExceptionHelper.PlatformNotSupported(string.Format(SRServiceModel.UnsupportedBindingProperty, "MessageEncoding", MessageEncoding)); 267throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.UnsupportedBindingProperty, "MessageEncoding", this.MessageEncoding)));
FrameworkFork\System.ServiceModel\System\ServiceModel\NetHttpsBinding.cs (3)
22throw ExceptionHelper.PlatformNotSupported(string.Format(SRServiceModel.UnsupportedSecuritySetting, "securityMode", securityMode)); 103throw ExceptionHelper.PlatformNotSupported(string.Format(SRServiceModel.UnsupportedBindingProperty, "MessageEncoding", MessageEncoding)); 132throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.UnsupportedBindingProperty, "MessageEncoding", MessageEncoding)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\EncryptedKey.cs (1)
381string.Format(SRServiceModel.RequiredAttributeMissing, XD.XmlSignatureDictionary.Algorithm.Value, ElementName.Value)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\IdentityVerifier.cs (5)
74throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(string.Format(errorString, identity, serviceReference))); 122result = new MessageSecurityException(string.Format(SRServiceModel.DnsIdentityCheckFailedForIncomingMessage, expectedDnsName, actualDnsName)); 133result = new MessageSecurityException(string.Format(SRServiceModel.DnsIdentityCheckFailedForOutgoingMessage, expectedDnsName, actualDnsName)); 138result = new MessageSecurityException(string.Format(errorString, identity, serviceReference)); 143result = new MessageSecurityException(string.Format(errorString, identity, serviceReference));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityAlgorithmSuite.cs (1)
317throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SigningTokenHasNoKeysSupportingTheAlgorithmSuite, token, this)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocolFactory.cs (2)
1105string.Format(SRServiceModel.PropertySettingErrorOnProtocolFactory, propertyName, this), 1119string.Format(SRServiceModel.PropertySettingErrorOnProtocolFactory, _requestReplyErrorPropertyName, this),
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityTimestamp.cs (1)
165throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(string.Format(SRServiceModel.TimeStampHasCreationAheadOfExpiry, this.CreationTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), this.ExpiryTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture))));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\DerivedKeySecurityToken.cs (1)
142throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(string.Format(SRServiceModel.DerivedKeyTokenOffsetTooHigh, offset, maxOffset)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WindowsClientCredential.cs (1)
44throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.UnsupportedTokenImpersonationLevel, "AllowedImpersonationLevel", value.ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecureConversation.cs (2)
205throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(string.Format(SRServiceModel.DerivedKeyTokenLabelTooLong, label.Length, _maxKeyDerivationLabelLength))); 215throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new MessageSecurityException(string.Format(SRServiceModel.DerivedKeyTokenNonceTooLong, nonce.Length, _maxKeyDerivationNonceLength)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (3)
1946importer.Errors.Add(new MetadataConversionError(string.Format(SRServiceModel.UnsupportedBooleanAttribute, OptionalName, e.Message), false)); 2921importer.Errors.Add(new MetadataConversionError(string.Format(SRServiceModel.UnableToObtainIssuerMetadata, mexAddress, mexException), false)); 2955importer.Errors.Add(new MetadataConversionError(string.Format(SRServiceModel.ErrorImportingIssuerMetadata, mexAddress, InsertEllipsisIfTooLong(error.Message)), error.IsWarning));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy11.cs (1)
96importer.Errors.Add(new MetadataConversionError(string.Format(SRServiceModel.UnsupportedBooleanAttribute, RequireClientCertificateName, e.Message), false));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityTokenSerializer.cs (1)
489throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.RequiredAttributeMissing, idAttributeLocalName, issuedTokenXml.LocalName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSTrust.cs (1)
142throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(string.Format(SRServiceModel.UnexpectedBinarySecretType, _parent.SerializerDictionary.SymmetricKeyBinarySecret.Value, secretType)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\XmlHelper.cs (5)
170throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.ChildNodeTypeMissing, parentName, expectedNodeType))); 175throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.ChildNodeTypeMissing, parent.Name, expectedNodeType))); 200throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.RequiredAttributeMissing, attrName, elementName))); 205throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.ExpectedElementMissing, elementName, elementNamespace))); 259new XmlException(string.Format(SRServiceModel.EmptyBase64Attribute, name, ns)));
FrameworkFork\System.ServiceModel\System\ServiceModel\SpnEndpointIdentity.cs (1)
55throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.UnrecognizedClaimTypeForIdentity, identity.ClaimType, ClaimTypes.Spn));
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (3)
86string.Format(SRServiceModel.ValueMustBeInRange, 0, _items.Count - 1))); 148string.Format(SRServiceModel.ValueMustBeInRange, 0, _items.Count))); 187string.Format(SRServiceModel.ValueMustBeInRange, 0, _items.Count - 1)));
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedKeyedCollection.cs (1)
52string.Format(SRServiceModel.ValueMustBeInRange, -1, int.MaxValue)));
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
268string message = string.Format(SRServiceModel.SFxCollectionWrongType2, type.ToString(), typeof(T).ToString());
FrameworkFork\System.ServiceModel\System\ServiceModel\X509CertificateEndpointIdentity.cs (2)
54throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.UnexpectedEmptyElementExpectingClaim, XD.AddressingDictionary.X509v3Certificate.Value, XD.AddressingDictionary.IdentityExtensionNamespace.Value))); 73throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.UnexpectedEmptyElementExpectingClaim, XD.AddressingDictionary.X509v3Certificate.Value, XD.AddressingDictionary.IdentityExtensionNamespace.Value)));
FrameworkFork\System.ServiceModel\System\ServiceModel\XmlUtil.cs (2)
139throw new XmlException(string.Format(SRServiceModel.XmlInvalidConversion, string.Empty, "DateTime"), exception); 143throw new XmlException(string.Format(SRServiceModel.XmlInvalidConversion, string.Empty, "DateTime"), exception);
FrameworkFork\System.Web.Services\Services\Description\ServiceDescription.cs (1)
3241message = string.Format(ResWebServices.WebDuplicateUnknownElement, type, elemName);
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptions.cs (1)
185throw new ArgumentException(string.Format(ResWebServices.WebDescriptionMissing, name.ToString(), name.Namespace), "name");
HelpGenerator.cs (1)
51ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.Verbosity.Name, SR.ParametersVerbosity, string.Format(SR.HelpVerbosityFormat, string.Join(", ", System.Enum.GetNames(typeof(Verbosity))), CommandProcessorOptions.Switches.Verbosity.Abbreviation)),
OutputPathHelper.cs (2)
98throw new ToolArgumentException(string.Format(SR.ErrPathTooLongDirOnlyFormat, path, CommandProcessorOptions.Switches.OutputDirectory.Name), ptle); 104throw new ToolArgumentException(string.Format(SR.ErrInvalidPathFormat, path, option), e);
ToolMexException.cs (1)
19: base(string.Format(SR.ErrUnableToRetrieveMetadataFromUriFormat, serviceUri.AbsoluteUri, SR.EnableMetadataHelpMessage))
TypeLoader.cs (1)
33ToolConsole.WriteWarning(string.Format(SR.ErrUnableToLoadReferenceFormat, path, ex.Message));
dotnet-svcutil-lib.Tests (3)
ProjectUtils.cs (1)
164var errMsg = string.Format(E2ETest.g_ToReproduceProblemMessageFormat, project.DirectoryPath, options);
TestInit.cs (2)
331var commandMsg = string.Format(g_CommandAndWorkdirMessageFormat, options, workingDir); 460return string.Format(g_UnvalidatedBaselineMessageFormat, unvalidatedBaselines
Encoding.Encoders.IntegrationTests (3)
BinaryEncodingTests.4.0.0.cs (2)
40Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 79Assert.True(compositeObject.Equals(result), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", compositeObject, result));
TextEncodingTests.4.0.0.cs (1)
40Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
Encoding.MessageVersion.IntegrationTests (7)
MessageVersionTests.4.0.0.cs (2)
39Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 75Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
MessageVersionTests.cs (5)
39Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 75Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 111Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 147Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 183Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
Extensibility.MessageEncoder.IntegrationTests (2)
CustomTextMessageEncoder.cs (1)
26_contentType = string.Format("{0}; charset={1}",
TextTests.4.1.0.cs (1)
115String.Format("Expected returned stream length = {0}, actual = {1}",
Extensibility.WebSockets.IntegrationTests (3)
WebSocketTests.4.1.0.cs (3)
728Assert.True(guid == returnedGuid, string.Format("The sent GUID does not match the returned GUID. Sent '{0}', Received: '{1}'", guid, returnedGuid)); 768Assert.True(guid == returnedGuid, string.Format("The sent GUID does not match the returned GUID. Sent '{0}', Received: '{1}'", guid, returnedGuid)); 812string.Format("The sent GUID does not match the returned GUID. Sent '{0}', Received: '{1}'", guid, returnedGuid));
Infrastructure.Common (9)
FrameworkHelper.cs (1)
47Console.WriteLine(String.Format("Detected current FrameworkID as \"{0}\" from description \"{1}\"",
OSHelper.cs (1)
85Console.WriteLine(String.Format("Detected current OSID as \"{0}\" from RuntimeEnvironment and description \"{1}\"",
ServiceUtilHelper.cs (4)
119System.Console.WriteLine(String.Format("Using root certificate:{0}{1}", 208System.Console.WriteLine(String.Format("Using client certificate:{0}{1}", 321System.Console.WriteLine(String.Format("Using peer trust certificate:{0}{1}", 528return string.Format(@"{0}{1}", BuildBaseUri(protocol), endpoint);
xunit\ConditionAttribute.cs (1)
73falseConditions.Add(String.Format("Condition \"{0}\" not found in type \"{1}\".",
xunit\IssueAttribute.cs (1)
58string repositoryAndIssue = String.Format("{0} #{1}", Repository, Issue);
xunit\WcfTestCase.cs (1)
93etwOutput.AppendLine(string.Format("{0}: {1}", DisplayName, payloadPara.ToString()));
InteractiveHost.UnitTests (1)
InteractiveHostDesktopTests.cs (1)
864AssertEx.AssertEqualToleratingWhitespaceDifferences($@"(1,8): error CS0234: {string.Format(CSharpResources.ERR_DottedTypeNameNotFoundInNS, "Missing", "Microsoft")}",
Microsoft.Arcade.Test.Common (2)
AssertEx.cs (2)
260Assert.True(expectedSet.SetEquals(actual), string.Format("Expected: {0}\nActual: {1}", ToString(expected), ToString(actual))); 268Assert.True(none, string.Format(
Microsoft.AspNetCore.Components.Server (1)
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackReader.cs (1)
942throw new MessagePackSerializationException(string.Format("Unexpected msgpack code {0} ({1}) encountered.", code, MessagePackCode.ToFormatName(code)));
Microsoft.Build (2)
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (1)
100private string GetFormattedMessage(string envVariableName, string envVariableValue) => _isVerboseEnvVarOutput ? string.Format(ResourceUtilities.GetResourceString("BuildCheck_BC0103_MessageAddendum")!, envVariableName, envVariableValue) : $"'{envVariableName}'";
CommunicationsUtilities.cs (1)
758TraceCore(nodeId, string.Format(format, arg0, arg1));
Microsoft.Build.Engine.OM.UnitTests (13)
Definition\DefinitionEditing_Tests.cs (2)
677string expected = string.Format( 798string expected = string.Format(
Definition\ProjectItem_Tests.cs (7)
873content = string.Format(content, placeHolder, excludePlaceHolder); 901content = string.Format(content, placeHolder, excludePlaceHolder); 925content = string.Format(content, placeHolder, excludePlaceHolder); 996var formattedProjectContents = string.Format(projectContents, include, exclude); 1108var formattedProject = string.Format(projectContents, include, exclude); 1147var projectContents = string.Format(ItemWithIncludeAndExclude, includeString, excludeString); 1167var projectContents = string.Format(ItemWithIncludeAndExclude, includeString, excludeString);
Instance\ProjectItemInstance_Tests.cs (4)
991string.Format(content, include, exclude) : 1029string.Format(content, include, exclude) : 1060string.Format(content, include, exclude) : 1104string.Format(content, include, exclude) :
Microsoft.Build.Engine.UnitTests (24)
BackEnd\BuildManager_Tests.cs (1)
3951var cleanedUpMainContents = CleanupFileContents(string.Format(mainProject, child1ProjectPath, child2ProjectPath));
BackEnd\IntrinsicTask_Tests.cs (1)
271var projectContents = string.Format(TargetitemwithIncludeAndExclude, includeString, excludeString).Cleanup();
BackEnd\MSBuild_Tests.cs (8)
149string expectedItemOutputs = string.Format(@" 561string expectedItemOutputs = string.Format(@" 630string expectedItemOutputs = string.Format(@" 836logger.AssertLogContains(string.Format(ResourceUtilities.GetResourceString("ItemReferencingSelfInTarget"), "iin1", "Filename")); 837logger.AssertLogContains(string.Format(ResourceUtilities.GetResourceString("ItemReferencingSelfInTarget"), "iin1", "Extension")); 1057string expectedItemOutputs = string.Format(@" 1126string expectedItemOutputs = string.Format(@" 1193string expectedItemOutputs = string.Format(@"
BackEnd\TargetUpToDateChecker_Tests.cs (1)
599string formattedProjectXml = String.Format(unformattedProjectXml, inputs, outputs);
EscapingInProjects_Tests.cs (1)
542MockLogger logger = Helpers.BuildProjectWithNewOMExpectSuccess(String.Format(@"
Evaluation\Expander_Tests.cs (1)
764pi.SetMetadata("Meta10", String.Format(";{0};{1};", Path.Combine("someo%3bherplace", "foo.txt"), Path.Combine("secondd%3brectory", "file.ext")));
Evaluation\ProjectSdkImplicitImport_Tests.cs (6)
107string content = string.Format(projectFormatString, SdkName, projectInnerContents); 130string content = string.Format(projectFormatString, SdkName, projectInnerContents); 242string content = string.Format(projectFormatString, SdkName, projectInnerContents); 276string content = string.Format(projectFormatString, SdkName, projectInnerContents); 325string content = string.Format(projectFormatString, string.Empty, projectInnerContents); 357var p2 = string.Format(projectFormatString, SdkName, projectInnerContents);
Graph\IsolateProjects_Tests.cs (1)
303string rootProjectContents = string.Format(
Instance\ProjectInstance_Internal_Tests.cs (3)
115projectFileContent = String.Format(projectFileContent, import1Path, import2Path); 853import1Content = string.Format(import1Content, import2Path, import3Path); 856projectFileContent = string.Format(projectFileContent, import1Path, import2Path);
ProjectCache\ProjectCacheTests.cs (1)
801mockLogger.FullLog.ShouldContain(string.Format(ResourceUtilities.GetResourceString("ProjectCacheQueryStartedWithTargetNames"), node.ProjectInstance.FullPath, targets));
Microsoft.Build.Framework (2)
ThrowHelper.cs (2)
205return new ArgumentException(string.Format(SR.Arg_WrongType, key, targetType), nameof(key)); 210return new ArgumentException(string.Format(SR.Arg_WrongType, value, targetType), nameof(value));
Microsoft.Build.Tasks.CodeAnalysis (3)
Csc.cs (1)
233throw new InvalidOperationException(string.Format(ErrorString.General_IncorrectHostObject, "Csc", "ICscHostObject"));
src\Dependencies\Contracts\ExceptionUtilities.cs (1)
21string output = string.Format("Unexpected value '{0}' of type '{1}'", o, (o != null) ? o.GetType().FullName : "<unknown>");
Vbc.cs (1)
531throw new InvalidOperationException(string.Format(ErrorString.General_IncorrectHostObject, "Vbc", "IVbcHostObject"));
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (2)
MapSourceRootTests.cs (2)
143ERROR : {string.Format(ErrorString.MapSourceRoots_PathMustEndWithSlashOrBackslash, "SourceRoot", "C:")} 144ERROR : {string.Format(ErrorString.MapSourceRoots_PathMustEndWithSlashOrBackslash, "SourceRoot", "C")}
Microsoft.Build.Tasks.UnitTests (15)
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (3)
326string message = String.Format("File.Exists() was called {0} times with path {1}.", count, path); 347string message = String.Format("File.Exists() was called {0} times with path {1}.", count, path); 359string message = String.Format("GetAssemblyName() was called {0} times with path {1}.", count, path);
CombinePath_Tests.cs (2)
34ObjectModelHelpers.AssertItemsMatch(string.Format("{0}\r\n{1}", fullPath1, fullPath2), t.CombinedPaths, true); 84ObjectModelHelpers.AssertItemsMatch(string.Format("{0}\r\n{1}", path1, fullPath2), t.CombinedPaths, true);
CreateCSharpManifestResourceName_Tests.cs (1)
766String.Format(AssemblyResources.GetString("CreateManifestResourceName.DefinitionFoundWithinConditionalDirective"), "MyForm.cs", "MyForm.resx"),
MSBuild_Tests.cs (6)
133string expectedItemOutputs = string.Format(@" 529string expectedItemOutputs = string.Format(@" 587string expectedItemOutputs = string.Format(@" 745string expectedItemOutputs = string.Format(@" 803string expectedItemOutputs = string.Format(@" 858string expectedItemOutputs = string.Format(@"
ResolveNonMSBuildProjectOutput_Tests.cs (1)
93xmlString += string.Format("<ProjectRef Project=\"{0}\">{1}</ProjectRef>", entry.Key, entry.Value);
Touch_Tests.cs (2)
248String.Format(AssemblyResources.GetString("Touch.CreatingFile"), mynonexisting_txt, "AlwaysCreate"), 383String.Format(AssemblyResources.GetString("Touch.CreatingFile"), mynonexisting_txt, "AlwaysCreate"),
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
420string.Format("Item '{0}' does not have expected metadata '{1}'.", actualItem.ItemSpec, metadataName));
Microsoft.Cci.Extensions (5)
Differs\Differences.cs (1)
41return string.Format("{0} : {1}", Id, Message);
Mappings\AssemblyMapping.cs (1)
110return string.Format("{0}: {1}", Name, Value);
Writers\CSharp\CSDeclarationWriter.Types.cs (1)
52string charset = string.Format("CharSet={0}System.Runtime.InteropServices.CharSet.{1}", _forCompilationIncludeGlobalprefix ? "global::" : "", type.StringFormat);
Writers\Syntax\HtmlSyntaxWriter.cs (2)
126WriteCore(string.Format("<span style=\" color: {0};{1}\">", color, extraStyle)); 150WriteCore(string.Format("<span style=\"background-color:{0}\" title=\"{1}\">", color, tooltip));
Microsoft.CodeAnalysis (29)
CodeGen\RawSequencePoint.cs (1)
32return string.Format("#{0}: {1}", ILMarker, Span == HiddenSequencePointSpan ? "hidden" : Span.ToString());
CommandLine\CommonCompiler.cs (1)
635consoleOutput.WriteLine(string.Format(CodeAnalysisResources.InternalsVisibleToReferencedAssembly, assembly.Identity.GetDisplayName(fullKey: true), grantsIvt));
Compilation\Compilation.cs (5)
1473throw new ArgumentException(string.Format(CodeAnalysisResources.AnonymousTypeMemberAndNamesCountMismatch2, 1479throw new ArgumentException(string.Format(CodeAnalysisResources.AnonymousTypeArgumentCountMismatch2, 1485throw new ArgumentException(string.Format(CodeAnalysisResources.AnonymousTypeArgumentCountMismatch2, 1491throw new ArgumentException(string.Format(CodeAnalysisResources.AnonymousTypeArgumentCountMismatch2, 3679return string.Format("{0} ({1})", this.AssemblyName, stage.ToString());
Compilation\SubsystemVersion.cs (1)
205return string.Format("{0}.{1:00}", this.Major, this.Minor);
CvtRes.cs (1)
613_langIdAndCodePageKey = System.String.Format("{0:x4}{1:x4}", 0 /*langId*/, CP_WINUNICODE /*codepage*/);
Diagnostic\DiagnosticFormatter.cs (2)
79return string.Format("({0},{1})", span.Start.Line + 1, span.Start.Character + 1); 103return string.Format("{0} {1}", prefix, diagnostic.Id);
DiagnosticAnalyzer\DiagnosticAnalysisContextHelpers.cs (1)
99throw new ArgumentException(string.Format(CodeAnalysisResources.InvalidDiagnosticLocationReported, id, location.SourceTree.FilePath), "diagnostic");
DiagnosticAnalyzer\Suppression.cs (1)
26var message = string.Format(CodeAnalysisResources.InvalidDiagnosticSuppressionReported, suppressedDiagnostic.Id, descriptor.SuppressedDiagnosticId);
FileKey.cs (1)
57return string.Format("'{0}'@{1}", FullPath, Timestamp);
InternalUtilities\EnumField.cs (1)
36return string.Format("{{{0} = {1}}}", this.Name, this.Value);
MetadataReader\ModuleExtensions.cs (1)
197return string.Format("_VtblGap{0}_{1}", sequenceNumber, countOfSlots);
MetadataReader\PEModule.cs (1)
395throw new BadImageFormatException(string.Format(CodeAnalysisResources.InvalidModuleName, this.Name, moduleName));
RuleSet\RuleSetInclude.cs (1)
71throw new InvalidRuleSetException(string.Format(CodeAnalysisResources.InvalidRuleSetInclude, path, e.Message));
RuleSet\RuleSetProcessor.cs (3)
234throw new InvalidRuleSetException(string.Format(CodeAnalysisResources.RuleSetBadAttributeValue, RuleActionAttributeName, action)); 258throw new InvalidRuleSetException(string.Format(CodeAnalysisResources.RuleSetMissingAttribute, node.Name, attributeName)); 263throw new InvalidRuleSetException(string.Format(CodeAnalysisResources.RuleSetBadAttributeValue, attributeName, attribute.Value));
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
219return new ArgumentException(string.Format(SR.Arg_WrongType, key, targetType), nameof(key)); 224return new ArgumentException(string.Format(SR.Arg_WrongType, value, targetType), nameof(value));
src\Dependencies\Contracts\ExceptionUtilities.cs (1)
21string output = string.Format("Unexpected value '{0}' of type '{1}'", o, (o != null) ? o.GetType().FullName : "<unknown>");
Syntax\SyntaxAnnotation.cs (1)
51return string.Format("Annotation: Kind='{0}' Data='{1}'", this.Kind ?? "", this.Data ?? "");
Text\LinePositionSpan.cs (2)
33throw new ArgumentException(string.Format(CodeAnalysisResources.EndMustNotBeLessThanStart, start, end), nameof(end)); 88return string.Format("({0})-({1})", _start, _end);
Text\TextLineCollection.cs (1)
67throw new ArgumentOutOfRangeException(nameof(position.Line), string.Format(CodeAnalysisResources.LineCannotBeGreaterThanEnd, position.Line, this.Count));
Text\TextSpan.cs (1)
194throw new ArgumentOutOfRangeException(nameof(end), string.Format(CodeAnalysisResources.EndMustNotBeLessThanStart, start, end));
Microsoft.CodeAnalysis.Analyzers.UnitTests (34)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzerTests.cs (32)
1876source: string.Format(csharpSourceFormat, $"{{|#0:{csharpLocalizableTitleExpression}|}}", csharpLocalizableFieldDeclaration), 1877fixedSource: string.Format(csharpSourceFormat, csharpLocalizableTitleExpression, csharpLocalizableFieldDeclaration), 1909source: string.Format(basicSourceFormat, $"{{|#0:{basicLocalizableTitleExpression}|}}", basicLocalizableFieldDeclaration), 1910fixedSource: string.Format(basicSourceFormat, basicLocalizableTitleExpression, basicLocalizableFieldDeclaration), 2098source: string.Format(csharpSourceFormat, $"{{|#0:{csharpLocalizableTitleExpression}|}}", csharpLocalizableFieldDeclaration), 2099fixedSource: string.Format(csharpSourceFormat, csharpLocalizableTitleExpression, csharpLocalizableFieldDeclaration), 2131source: string.Format(basicSourceFormat, $"{{|#0:{basicLocalizableTitleExpression}|}}", basicLocalizableFieldDeclaration), 2132fixedSource: string.Format(basicSourceFormat, basicLocalizableTitleExpression, basicLocalizableFieldDeclaration), 2522source: string.Format(csharpSourceFormat, $"{{|#0:{csharpTitleExpression}|}}", csharpFieldDeclaration), 2523fixedSource: string.Format(csharpSourceFormat, csharpTitleExpression, csharpFieldDeclaration), 2555source: string.Format(basicSourceFormat, $"{{|#0:{basicTitleExpression}|}}", basicFieldDeclaration), 2556fixedSource: string.Format(basicSourceFormat, basicTitleExpression, basicFieldDeclaration), 2911source: string.Format(csharpSourceFormat, $"{{|#0:{csharpMessageExpression}|}}", csharpFieldDeclaration), 2912fixedSource: string.Format(csharpSourceFormat, csharpMessageExpression, csharpFieldDeclaration), 2944source: string.Format(basicSourceFormat, $"{{|#0:{basicMessageExpression}|}}", basicFieldDeclaration), 2945fixedSource: string.Format(basicSourceFormat, basicMessageExpression, basicFieldDeclaration), 3226source: string.Format(csharpSourceFormat, $"{{|#0:{csharpMessageExpression}|}}", csharpFieldDeclaration), 3227fixedSource: string.Format(csharpSourceFormat, csharpMessageExpression, csharpFieldDeclaration), 3259source: string.Format(basicSourceFormat, $"{{|#0:{basicMessageExpression}|}}", basicFieldDeclaration), 3260fixedSource: string.Format(basicSourceFormat, basicMessageExpression, basicFieldDeclaration), 3408source: string.Format(csharpSourceFormat, $"{{|#0:{csharpMessageExpression}|}}", csharpFieldDeclaration), 3409fixedSource: string.Format(csharpSourceFormat, csharpMessageExpression, csharpFieldDeclaration), 3441source: string.Format(basicSourceFormat, $"{{|#0:{basicMessageExpression}|}}", basicFieldDeclaration), 3442fixedSource: string.Format(basicSourceFormat, basicMessageExpression, basicFieldDeclaration), 3631source: string.Format(csharpSourceFormat, $"{{|#0:{csharpDescriptionExpression}|}}", csharpFieldDeclaration), 3632fixedSource: string.Format(csharpSourceFormat, csharpDescriptionExpression, csharpFieldDeclaration), 3664source: string.Format(basicSourceFormat, $"{{|#0:{basicDescriptionExpression}|}}", basicFieldDeclaration), 3665fixedSource: string.Format(basicSourceFormat, basicDescriptionExpression, basicFieldDeclaration), 3813source: string.Format(csharpSourceFormat, $"{{|#0:{csharpDescriptionExpression}|}}", csharpFieldDeclaration), 3814fixedSource: string.Format(csharpSourceFormat, csharpDescriptionExpression, csharpFieldDeclaration), 3846source: string.Format(basicSourceFormat, $"{{|#0:{basicDescriptionExpression}|}}", basicFieldDeclaration), 3847fixedSource: string.Format(basicSourceFormat, basicDescriptionExpression, basicFieldDeclaration),
MetaAnalyzers\MissingDiagnosticAnalyzerAttributeRuleTests.cs (2)
118CodeActionEquivalenceKey = string.Format(CodeAnalysisDiagnosticsResources.ApplyDiagnosticAnalyzerAttribute_2, LanguageNames.CSharp, LanguageNames.VisualBasic), 209CodeActionEquivalenceKey = string.Format(CodeAnalysisDiagnosticsResources.ApplyDiagnosticAnalyzerAttribute_2, LanguageNames.CSharp, LanguageNames.VisualBasic),
Microsoft.CodeAnalysis.CodeStyle (4)
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
219return new ArgumentException(string.Format(SR.Arg_WrongType, key, targetType), nameof(key)); 224return new ArgumentException(string.Format(SR.Arg_WrongType, value, targetType), nameof(value));
src\Dependencies\Contracts\ExceptionUtilities.cs (1)
21string output = string.Format("Unexpected value '{0}' of type '{1}'", o, (o != null) ? o.GetType().FullName : "<unknown>");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
154: string.Format(CompilerExtensionsResources.Prefix_0_does_not_match_expected_prefix_1, prefix, Prefix);
Microsoft.CodeAnalysis.CodeStyle.Fixes (5)
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.cs (1)
53string.Format(CodeFixesResources.Generate_constructor_0_1,
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator.cs (1)
170string.Format("{0}_{1}", member.ContainingType.Name, member.Name),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\FixAllHelper.cs (2)
20FixAllScope.Document => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_1, title, triggerDocument.Name), 21FixAllScope.Project => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_1, title, triggerProject.Name),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
166string.Format(WorkspaceExtensionsResources.Destination_type_must_be_a_0_but_given_one_is_1, typeof(TDeclarationNode).Name, destination.GetType().Name),
Microsoft.CodeAnalysis.Collections.Package (3)
Internal\ThrowHelper.cs (2)
219return new ArgumentException(string.Format(SR.Arg_WrongType, key, targetType), nameof(key)); 224return new ArgumentException(string.Format(SR.Arg_WrongType, value, targetType), nameof(value));
src\Dependencies\Contracts\ExceptionUtilities.cs (1)
21string output = string.Format("Unexpected value '{0}' of type '{1}'", o, (o != null) ? o.GetType().FullName : "<unknown>");
Microsoft.CodeAnalysis.Contracts.Package (1)
ExceptionUtilities.cs (1)
21string output = string.Format("Unexpected value '{0}' of type '{1}'", o, (o != null) ? o.GetType().FullName : "<unknown>");
Microsoft.CodeAnalysis.CSharp (5)
Compilation\CSharpCompilation.cs (2)
4096throw new ArgumentException(string.Format(CSharpResources.NotSameNumberParameterTypesAndRefKinds, parameterTypes.Length, parameterRefKinds.Length)); 4107throw new ArgumentException(string.Format(CSharpResources.CallingConventionTypesRequireUnmanaged, nameof(callingConventionTypes), nameof(callingConvention)));
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (1)
619string commentText = string.Format(@"/// <{0} {1}/>", elementName, attributeText);
Symbols\ReferenceManager.cs (2)
90throw new NotSupportedException(string.Format(CSharpResources.CantReferenceCompilationOf, compilationReference.GetType(), "C#")); 292throw new NotSupportedException(string.Format(CodeAnalysisResources.ChangingVersionOfAssemblyReferenceIsNotAllowedDuringDebugging, identity, symbol.Identity.Version));
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions_Parsing.cs (1)
88_ => throw new NotSupportedException(string.Format(CSharpCompilerExtensionsResources.EditorConfig_option_0_contains_unrecognized_value_1, "csharp_style_namespace_declarations", value)),
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (5)
CommandLineTests.cs (5)
8260var output = ProcessUtilities.RunAndGetOutput(s_CSharpCompilerExecutable, String.Format("/nologo /t:library /doc:\"{1}\" \"{0}\"", src.ToString(), xml.ToString()), startFolder: dir.ToString()); 8305var output = ProcessUtilities.RunAndGetOutput(s_CSharpCompilerExecutable, String.Format("/nologo /t:library /doc:\"{1}\" \"{0}\"", src.ToString(), xml.ToString()), startFolder: dir.ToString()); 8334output = ProcessUtilities.RunAndGetOutput(s_CSharpCompilerExecutable, String.Format("/nologo /t:library /doc:\"{1}\" \"{0}\"", src.ToString(), xml.ToString()), startFolder: dir.ToString()); 9342var formattedcs1504Str = String.Format(cs1504, PathUtilities.CombineAbsoluteAndRelativePaths(tempParentDir.Path, "tmpDir\a.cs"), "Illegal characters in path."); 9362var formattedcs1504 = String.Format(cs1504, PathUtilities.CombineAbsoluteAndRelativePaths(tempParentDir.Path, @":a.cs"), @"The given path's format is not supported.");
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
EventHookup\EventHookupSessionManager_EventHookupSession.cs (1)
207var basename = namingRule.NamingStyle.CreateName([string.Format("{0}_{1}", objectPart, eventSymbol.Name)]);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (89)
CodeActions\GenerateType\GenerateTypeTests.cs (2)
5345string.Format(FeaturesResources.Generate_0_1_in_new_file, "class", "Goo")); 5458string.Format(FeaturesResources.Generate_0_1_in_new_file, "class", "Goo"),
Completion\CompletionProviders\ConversionCompletionProviderTests.cs (1)
24=> string.Format(WorkspacesResources.Predefined_conversion_from_0_to_1, fromType, toType);
Completion\CompletionProviders\SymbolCompletionProviderTests.cs (12)
8788{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)} 8789{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)} 8828{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)} 8829{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)} 8830{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)} 8872{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)} 8873{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)} 8919{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Not_Available)} 8920{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Available)} 8921{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)} 8984{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)} 8985{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}
GenerateConstructors\GenerateConstructorsTests.cs (3)
744string.Format(CodeFixesResources.Generate_constructor_0_1, "Program", "bool b, HashSet<string> s")); 765string.Format(CodeFixesResources.Generate_field_assigning_constructor_0_1, "Program", "bool b, HashSet<string> s")); 786string.Format(FeaturesResources.Generate_delegating_constructor_0_1, "Program", "bool b, HashSet<string> s"),
Interactive\NavigateTo\InteractiveNavigateToTests.cs (14)
97VerifyNavigateToResultItem(item, "Method", "[|Method|]()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPublic, string.Format(FeaturesResources.in_0_project_1, "Goo.Bar.DogBed", "Test")); 136VerifyNavigateToResultItem(item, "Bar", "[|Bar|]<T>(T)", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPublic, string.Format(FeaturesResources.in_0_project_1, "Goo<U>", "Test")); 285VerifyNavigateToResultItem(item, "string", "[|string|]", PatternMatchKind.Exact, NavigateToItemKind.Field, Glyph.FieldPrivate, additionalInfo: string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 297VerifyNavigateToResultItem(item, "this", "[|this|][int]", PatternMatchKind.Exact, NavigateToItemKind.Property, Glyph.PropertyPublic, additionalInfo: string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 309VerifyNavigateToResultItem(item, "ChangedEventHandler", "[|C|]hanged[|E|]vent[|H|]andler", PatternMatchKind.CamelCaseExact, NavigateToItemKind.Event, Glyph.EventPublic, additionalInfo: string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 326VerifyNavigateToResultItem(item, "Bar", "[|B|]ar", PatternMatchKind.Prefix, NavigateToItemKind.Property, Glyph.PropertyPrivate, additionalInfo: string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 343VerifyNavigateToResultItem(item, "DoSomething", "[|D|]o[|S|]omething()", PatternMatchKind.CamelCaseExact, NavigateToItemKind.Method, Glyph.MethodPrivate, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 362VerifyNavigateToResultItem(item, "DoSomething", "[|D|]o[|S|]omething(int, string)", PatternMatchKind.CamelCaseExact, NavigateToItemKind.Method, Glyph.MethodPrivate, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 381VerifyNavigateToResultItem(item, "Goo", "[|Goo|]()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPublic, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 400VerifyNavigateToResultItem(item, "Goo", "[|Goo|](int)", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPublic, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 419VerifyNavigateToResultItem(item, "Goo", "[|Goo|].static Goo()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPrivate, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 474Assert.Equal(string.Format(FeaturesResources.in_0_project_1, "DogBed", "Test"), itemDisplay.AdditionalInformation); 481Assert.Equal(string.Format(FeaturesResources.in_0_project_1, "Goo", "Test"), itemDisplay.AdditionalInformation); 533VerifyNavigateToResultItem(item, "sqr", "[|sqr|]", PatternMatchKind.Exact, NavigateToItemKind.Field, Glyph.FieldPrivate, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test"));
NavigateTo\NavigateToTests.cs (16)
184VerifyNavigateToResultItem(item, "Method", "[|Method|]()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPublic, string.Format(FeaturesResources.in_0_project_1, "Goo.Bar.DogBed", "Test")); 221VerifyNavigateToResultItem(item, "Bar", "[|Bar|]<T>(T)", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPublic, string.Format(FeaturesResources.in_0_project_1, "Goo<U>", "Test")); 344VerifyNavigateToResultItem(item, "bar", "[|b|]ar", PatternMatchKind.Prefix, NavigateToItemKind.Field, Glyph.FieldPrivate, additionalInfo: string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 360VerifyNavigateToResultItem(item, "bar", "[|ba|]r", PatternMatchKind.Prefix, NavigateToItemKind.Field, Glyph.FieldPrivate, additionalInfo: string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 391VerifyNavigateToResultItem(item, "string", "[|string|]", PatternMatchKind.Exact, NavigateToItemKind.Field, Glyph.FieldPrivate, additionalInfo: string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 395VerifyNavigateToResultItem(item, "string", "[|string|]", PatternMatchKind.Exact, NavigateToItemKind.Field, Glyph.FieldPrivate, additionalInfo: string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 453VerifyNavigateToResultItem(item, "this", "[|this|][int]", PatternMatchKind.Exact, NavigateToItemKind.Property, Glyph.PropertyPublic, additionalInfo: string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 464VerifyNavigateToResultItem(item, "ChangedEventHandler", "[|C|]hanged[|E|]vent[|H|]andler", PatternMatchKind.CamelCaseExact, NavigateToItemKind.Event, Glyph.EventPublic, additionalInfo: string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 480VerifyNavigateToResultItem(item, "Bar", "[|B|]ar", PatternMatchKind.Prefix, NavigateToItemKind.Property, Glyph.PropertyPrivate, additionalInfo: string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 496VerifyNavigateToResultItem(item, "DoSomething", "[|D|]o[|S|]omething()", PatternMatchKind.CamelCaseExact, NavigateToItemKind.Method, Glyph.MethodPrivate, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 512VerifyNavigateToResultItem(item, "static", "[|static|]()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPrivate, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 516VerifyNavigateToResultItem(item, "static", "[|static|]()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPrivate, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 534VerifyNavigateToResultItem(item, "DoSomething", "[|D|]o[|S|]omething(int, string)", PatternMatchKind.CamelCaseExact, NavigateToItemKind.Method, Glyph.MethodPrivate, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 552VerifyNavigateToResultItem(item, "Goo", "[|Goo|]()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPublic, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 570VerifyNavigateToResultItem(item, "Goo", "[|Goo|](int)", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPublic, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test")); 588VerifyNavigateToResultItem(item, "Goo", "[|Goo|].static Goo()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPrivate, string.Format(FeaturesResources.in_0_project_1, "Goo", "Test"));
QuickInfo\SemanticQuickInfoSourceTests.cs (11)
6412{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)} 6413{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)} 6448{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Not_Available)} 6449{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Available)} 6488{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)} 6489{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)} 6490{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)} 6532{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)} 6533{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)} 6624{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)} 6625{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}
SignatureHelp\AttributeSignatureHelpProviderTests.cs (4)
1004{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)} 1005{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)} 1049{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)} 1050{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}
SignatureHelp\ConstructorInitializerSignatureHelpProviderTests.cs (4)
603{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)} 604{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)} 651{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)} 652{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}
SignatureHelp\ElementAccessExpressionSignatureHelpProviderTests.cs (4)
822{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)} 823{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)} 871{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)} 872{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}
SignatureHelp\GenericNameSignatureHelpProviderTests.cs (4)
788{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)} 789{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)} 833{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)} 834{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}
SignatureHelp\InvocationExpressionSignatureHelpProviderTests.cs (10)
2085{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)} 2086{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)} 2129{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)} 2130{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)} 2344{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)} 2345{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)} 2616{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)} 2617{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)} 2628{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)} 2629{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)}
SignatureHelp\ObjectCreationExpressionSignatureHelpProviderTests.cs (4)
621{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)} 622{string.Format(FeaturesResources._0_1, "Proj2", FeaturesResources.Not_Available)} 666{string.Format(FeaturesResources._0_1, "Proj1", FeaturesResources.Available)} 667{string.Format(FeaturesResources._0_1, "Proj3", FeaturesResources.Not_Available)}
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenIncrementTests.cs (1)
134string expectedOutput = string.Format(NUMERIC_OUTPUT_TEMPLATE, 'a', 'b');
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Emit\EditAndContinue\AssemblyReferencesTests.cs (2)
422string.Format(CodeAnalysisResources.ChangingVersionOfAssemblyReferenceIsNotAllowedDuringDebugging, 502string.Format(CodeAnalysisResources.ChangingVersionOfAssemblyReferenceIsNotAllowedDuringDebugging,
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Attributes\AttributeTests_MarshalAs.cs (2)
494source.AppendLine(string.Format("[MarshalAs(UnmanagedType.LPArray, ArraySubType = (UnmanagedType)0x{0:X})]int {1};", i, fldName)); 637source.AppendLine(string.Format("[MarshalAs(UnmanagedType.ByValArray, ArraySubType = (UnmanagedType)0x{0:X})]int {1};", i, fldName));
Diagnostics\DiagnosticAnalyzerTests.cs (2)
1015string.Format(CodeAnalysisResources.InvalidDiagnosticLocationReported, AnalyzerWithInvalidDiagnosticLocation.Descriptor.Id, treeInAnotherCompilation.FilePath), "diagnostic").Message; 1778names.Add(string.Format("NonGeneratedCode{0}(IsGeneratedCode:{1})", i, isGeneratedFile));
Diagnostics\DiagnosticSuppressorTests.cs (1)
537var exceptionMessage = string.Format(CodeAnalysisResources.InvalidDiagnosticSuppressionReported, analyzer.Descriptor.Id, unsupportedSuppressedId);
Semantics\PatternMatchingTests.cs (1)
5054var program = string.Format(body, dt, statement);
Microsoft.CodeAnalysis.CSharp.Features (1)
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (1)
184var ruleIdText = string.IsNullOrWhiteSpace(title) ? diagnostic.Id : string.Format("{0}:{1}", diagnostic.Id, title);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (13)
EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs (1)
769: $"ENC0080: {string.Format(FeaturesResources.Modifying_source_file_0_requires_restarting_the_application_due_to_internal_error_1, filePath, "System.NullReferenceException: NullRef!\n")}".Split('\n').First();
EditAndContinue\Helpers\EditingTestBase.cs (1)
123=> string.Format(FeaturesResources.member_kind_and_name, kind, displayName);
GenerateVariable\GenerateVariableTests.cs (2)
10597string.Format(CodeFixesResources.Generate_local_0, "Error", "MyException"), 10598string.Format(CodeFixesResources.Generate_parameter_0, "Error", "MyException"),
SemanticSearch\CSharpSemanticSearchServiceTests.cs (2)
361AssertEx.Equal(string.Format(FeaturesResources.Semantic_search_query_terminated_with_exception, "CSharpAssembly1", expectedMessage), result.ErrorMessage); 430AssertEx.Equal(string.Format(FeaturesResources.Semantic_search_query_terminated_with_exception, "CSharpAssembly1", expectedMessage), result.ErrorMessage);
SpellCheck\SpellCheckTests.cs (7)
61await TestExactActionSetOfferedAsync(text, [String.Format(FeaturesResources.Change_0_to_1, "Gooa", "Goo")]); 77String.Format(FeaturesResources.Change_0_to_1, "Foa", "Foo"), 78String.Format(FeaturesResources.Change_0_to_1, "Foa", "for") 95[String.Format(FeaturesResources.Change_0_to_1, "Goa", "Goo")]); 109await TestExactActionSetOfferedAsync(text, [String.Format(FeaturesResources.Change_0_to_1, "zza", "zzz")]); 125String.Format(FeaturesResources.Change_0_to_1, "Boolea", "Boolean"), 126String.Format(FeaturesResources.Change_0_to_1, "Boolea", "bool")
Microsoft.CodeAnalysis.CSharp.Scripting (1)
ScriptOptionsExtensions.cs (1)
18: (options.ParseOptions is CSharpParseOptions existing) ? existing : throw new InvalidOperationException(string.Format(ScriptingResources.CannotSetLanguageSpecificOption, LanguageNames.CSharp, nameof(LanguageVersion)));
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (2)
CsiTests.cs (2)
75(1,7): error CS1504: {string.Format(CSharpResources.ERR_NoSourceFile, "a.csx", CSharpResources.CouldNotFindFile)} 157+ <Initialize>.MoveNext(){string.Format(ScriptingResources.AtFileLine, $"{cwd}{Path.DirectorySeparatorChar}a.csx", "2")}
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (18)
CommandLineRunnerTests.cs (4)
472(1,8): error CS0234: {string.Format(CSharpResources.ERR_DottedTypeNameNotFoundInNS, "Missing", "Microsoft")} 477$"(1,8): error CS0234: {string.Format(CSharpResources.ERR_DottedTypeNameNotFoundInNS, "Missing", "Microsoft")}", 614(1,7): error CS1504: {string.Format(CSharpResources.ERR_NoSourceFile, "a.csx", CSharpResources.CouldNotFindFile)} 624$@"(1,7): error CS1504: {string.Format(CSharpResources.ERR_NoSourceFile, "a.csx", CSharpResources.CouldNotFindFile)}",
ObjectFormatterTests.cs (14)
943+ Microsoft.CodeAnalysis.CSharp.Scripting.Hosting.UnitTests.ObjectFormatterTests.Fixture.Method(){string.Format(ScriptingResources.AtFileLine, filePath, 10006)} 944+ Microsoft.CodeAnalysis.CSharp.Scripting.Hosting.UnitTests.ObjectFormatterTests.StackTrace_NonGeneric(){string.Format(ScriptingResources.AtFileLine, filePath, 10036)} 967+ Microsoft.CodeAnalysis.CSharp.Scripting.Hosting.UnitTests.ObjectFormatterTests.Fixture.Method<U>(){string.Format(ScriptingResources.AtFileLine, filePath, 10012)} 968+ Microsoft.CodeAnalysis.CSharp.Scripting.Hosting.UnitTests.ObjectFormatterTests.StackTrace_GenericMethod(){string.Format(ScriptingResources.AtFileLine, filePath, 10057)} 991+ Microsoft.CodeAnalysis.CSharp.Scripting.Hosting.UnitTests.ObjectFormatterTests.Fixture<T>.Method(){string.Format(ScriptingResources.AtFileLine, filePath, 10021)} 992+ Microsoft.CodeAnalysis.CSharp.Scripting.Hosting.UnitTests.ObjectFormatterTests.StackTrace_GenericType(){string.Format(ScriptingResources.AtFileLine, filePath, 10079)} 1015+ Microsoft.CodeAnalysis.CSharp.Scripting.Hosting.UnitTests.ObjectFormatterTests.Fixture<T>.Method<U>(){string.Format(ScriptingResources.AtFileLine, filePath, 10027)} 1016+ Microsoft.CodeAnalysis.CSharp.Scripting.Hosting.UnitTests.ObjectFormatterTests.StackTrace_GenericMethodInGenericType(){string.Format(ScriptingResources.AtFileLine, filePath, 10101)} 1048+ Microsoft.CodeAnalysis.CSharp.Scripting.Hosting.UnitTests.ObjectFormatterTests.Fixture2.MethodDynamic(){string.Format(ScriptingResources.AtFileLine, filePath, 10123)} 1049+ Microsoft.CodeAnalysis.CSharp.Scripting.Hosting.UnitTests.ObjectFormatterTests.StackTrace_Dynamic(){string.Format(ScriptingResources.AtFileLine, filePath, 10132)} 1088+ Microsoft.CodeAnalysis.CSharp.Scripting.Hosting.UnitTests.ObjectFormatterTests.ParametersFixture.Method(ref char, out System.DateTime){string.Format(ScriptingResources.AtFileLine, filePath, 10155)} 1089+ Microsoft.CodeAnalysis.CSharp.Scripting.Hosting.UnitTests.ObjectFormatterTests.StackTrace_RefOutParameters(){string.Format(ScriptingResources.AtFileLine, filePath, 10172)} 1113+ Microsoft.CodeAnalysis.CSharp.Scripting.Hosting.UnitTests.ObjectFormatterTests.ParametersFixture.Method<U>(ref U){string.Format(ScriptingResources.AtFileLine, filePath, 10161)} 1114+ Microsoft.CodeAnalysis.CSharp.Scripting.Hosting.UnitTests.ObjectFormatterTests.StackTrace_GenericRefParameter(){string.Format(ScriptingResources.AtFileLine, filePath, 10194)}
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (20)
Semantics\ConstantTests.cs (3)
2996string.Format(template, i, (i + 1) % numConstants))); 3083string.Format(template, i, (i + 1) % numConstants))); 3173string.Format(template, i, (i + 1) % numEnums)));
Semantics\DynamicTests.cs (1)
2504return String.Format(@"
Semantics\LookupPositionTests.cs (1)
3071Assert.True(actualNumExpectedNames == expectedNumExpectedNames, string.Format("Expected {0} sets of expected names, but found {1}", expectedNumExpectedNames, actualNumExpectedNames));
Semantics\NameLengthTests.cs (1)
269var source = string.Format(sourceTemplate, name0, name1);
Semantics\UnsafeTests.cs (12)
3180var withoutUnsafe = string.Format(template, "", ""); 3192var withUnsafeOnType = string.Format(template, "unsafe", ""); 3197var withUnsafeOnMembers = string.Format(template, "", "unsafe"); 3216var withUnsafeOnTypeAndMembers = string.Format(template, "unsafe", "unsafe"); 3248var withoutUnsafe = string.Format(template, "", ""); 3255var withUnsafeOnType = string.Format(template, "unsafe", ""); 3258var withUnsafeOnMembers = string.Format(template, "", "unsafe"); 3268var withUnsafeOnTypeAndMembers = string.Format(template, "unsafe", "unsafe"); 4169var withoutUnsafe = string.Format(template, "", ""); 4173var withUnsafeOnType = string.Format(template, "unsafe", ""); 4176var withUnsafeOnMembers = string.Format(template, "", "unsafe"); 4179var withUnsafeOnTypeAndMembers = string.Format(template, "unsafe", "unsafe");
Semantics\VarianceTests.cs (2)
113var comp = CreateCompilation(string.Format(text, i, j)); 226var comp = CreateCompilation(string.Format(text, i, j));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (18)
Compilation\GetSemanticInfoTests.cs (1)
2218var tree = Parse(string.Format(template, types, constraints));
DocumentationComments\DocumentationCommentCompilerTests.cs (3)
5605var comp = CreateCompilationUtil(string.Format(sourceTemplate, seeElement, includeElement)); 5647var comp = CreateCompilationUtil(string.Format(sourceTemplate, seeElement, includeElement)); 5711string[] includeElements = Enumerable.Range(0, 4).Select(i => string.Format(includeElementTemplate, xmlFilePath, i)).ToArray();
DocumentationComments\DocumentationModeTests.cs (3)
352Parse(string.Format(sourceTemplate, xml, mode), string.Format("{0}.cs", mode), GetOptions(mode))); 371string includeElement = string.Format(@"<include file='{0}' path='{1}' />", xmlFilePath, xpath); 381Parse(string.Format(sourceTemplate, includeElement, mode), string.Format("{0}.cs", mode), GetOptions(mode)));
Symbols\AnonymousTypesSymbolTests.cs (1)
1017string typeViewName = String.Format("<>f__AnonymousType{0}{1}", typeIndex.ToString(), genericParametersSuffix);
Symbols\DefaultInterfaceImplementationTests.cs (2)
68172ValidateMethodImplementationTest1_011(m, String.Format(expectedImplementationDisplayFormat, "I1<Test1>", "Test1"), isStatic: true, opName); 68203ValidateMethodImplementationTest2_011(m, String.Format(expectedImplementationDisplayFormat, "I1<Test2>", "Test2"), opName);
Symbols\MissingSpecialMember.cs (2)
313ValidateSourceAndMetadata(string.Format(sourceTemplate, "public", "protected"), validate); 314ValidateSourceAndMetadata(string.Format(sourceTemplate, "public", "private"), validate);
Symbols\OverriddenOrHiddenMembersTests.cs (1)
210Assert.True(expected == actual, string.Format("expected {0}, actual {1}", expected, actual));
Symbols\Source\ClsComplianceTests.cs (4)
2353CreateCompilation(string.Format(sourceTemplate, "true", "true")).VerifyDiagnostics(); 2354CreateCompilation(string.Format(sourceTemplate, "false", "false")).VerifyDiagnostics(); 2356CreateCompilation(string.Format(sourceTemplate, "true", "false")).VerifyDiagnostics( 2360CreateCompilation(string.Format(sourceTemplate, "false", "true")).VerifyDiagnostics(); // No warnings, since false.
Symbols\TypedConstantTests.cs (1)
81var s2 = String.Format("{0}{1}{1}", "f", "o");
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Diagnostics\LocationsTests.cs (2)
31return string.Format("[{0};{1}]", path, baseFilePath); 57Assert.Equal(string.Format("[{0};{1}]", expectedPath, hasMappedPath ? syntaxTree.FilePath : null), actualDisplayPath);
LexicalAndXml\PreprocessorTests.cs (1)
4145var text = string.Format(@"#pragma checksum ""{0}"" ""{1}""", file, guid);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
CSharpTestBase.cs (1)
1659Assert.False(true, string.Format("Expected exception {0}({1})", typeof(T).Name, expectedMessage));
DiagnosticTestUtilities.cs (1)
160Assert.True(experr.Parameters.SequenceEqual(acterr.Parameters), String.Format("Param: {0}!={1}", experr.Parameters.Count(), acterr.Parameters.Count()));
Extensions.cs (1)
228Assert.True(false, string.Format("Could not find member named '{0}'. Available members:\r\n{1}",
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Recommendations\CSharpRecommendationServiceRunner_Conversions.cs (1)
247var summary = string.Format(WorkspacesResources.Predefined_conversion_from_0_to_1,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions_Parsing.cs (1)
88_ => throw new NotSupportedException(string.Format(CSharpCompilerExtensionsResources.EditorConfig_option_0_contains_unrecognized_value_1, "csharp_style_namespace_declarations", value)),
Microsoft.CodeAnalysis.EditorFeatures (10)
InlineRename\UI\Adornment\RenameFlyoutViewModel.cs (1)
410SearchText = string.Format(EditorFeaturesResources.Rename_will_update_0_references_in_1_files, referenceCount, fileCount);
Preview\AbstractPreviewFactoryService.cs (6)
160string.Format(EditorFeaturesResources.Adding_reference_0_to_1, metadataReference.Display, oldProject.Name))); 167string.Format(EditorFeaturesResources.Removing_reference_0_from_1, metadataReference.Display, oldProject.Name))); 188string.Format(EditorFeaturesResources.Adding_analyzer_reference_0_to_1, analyzer.Display, oldProject.Name))); 195string.Format(EditorFeaturesResources.Removing_analyzer_reference_0_from_1, analyzer.Display, oldProject.Name))); 257var firstLine = string.Format(EditorFeaturesResources.Adding_0_to_1_with_content_colon, 329var firstLine = string.Format(EditorFeaturesResources.Removing_0_from_1_with_content_colon,
RenameTracking\RenameTrackingTaggerProvider.cs (1)
75var ex = new InvalidOperationException(string.Format(
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCodeAction.cs (1)
101var displayText = string.Format(WorkspacesResources.Rename_0_to_1, stateMachine.TrackingSession.OriginalName, newName);
RenameTracking\RenameTrackingTaggerProvider.StateMachine.cs (1)
307var title = string.Format(
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (7)
AbstractTypingCommandHandlerTest.cs (1)
53string.Format("Caret positioned incorrectly. Should have been {0}, but was {1}.", expectedPosition, caretPosition));
CompleteStatement\AbstractCompleteStatementTests.cs (1)
128string.Format("Caret positioned incorrectly. Should have been {0}, but was {1}.", expectedPosition, endCaretPosition));
Completion\AbstractCompletionProviderTests.cs (1)
1002var xmlString = string.Format(@"
DocumentationComments\AbstractXmlTagCompletionTests.cs (1)
46string.Format("Caret positioned incorrectly. Should have been {0}, but was {1}.", expectedPosition, caretPosition));
Formatting\CoreFormatterTestsBase.cs (2)
154string.Format("Caret positioned incorrectly. Should have been {0}, but was {1}.", expectedPosition, caretPosition)); 271string.Format("Caret positioned incorrectly. Should have been {0}, but was {1}.", expectedPosition, caretPosition));
SignatureHelp\AbstractSignatureHelpProviderTests.cs (1)
455var xmlString = string.Format(@"
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
ITextImageHelpers.cs (1)
16private static readonly Func<int, int, string> s_textLog = (v1, v2) => string.Format("FullRange : from {0} to {1}", v1, v2);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (11)
CodeGeneration\CodeGenerationTests.cs (1)
262string.Format("\r\nExpected exception: {0}\r\nActual exception: {1}\r\n", expectedMessage, exception == null ? "no exception" : exception.Message));
EditAndContinue\EditAndContinueLanguageServiceTests.cs (5)
188$"Error ENC1001: {document.FilePath}(0, 1, 0, 2): {string.Format(FeaturesResources.ErrorReadingFile, "doc", "error 1")}", 189$"Error ENC1001: {project.FilePath}(0, 0, 0, 0): {string.Format(FeaturesResources.ErrorReadingFile, "proj", "error 2")}" 194$"Error ENC1001: {document.FilePath}(0, 1, 0, 2): {string.Format(FeaturesResources.ErrorReadingFile, "doc", "error 1")}", 195$"Error ENC1001: {project.FilePath}(0, 0, 0, 0): {string.Format(FeaturesResources.ErrorReadingFile, "proj", "error 2")}", 196$"Error ENC1001: {document.FilePath}(0, 1, 0, 2): {string.Format(FeaturesResources.ErrorReadingFile, "doc", "syntax error 3")}",
RenameTracking\RenameTrackingTestState.cs (2)
121return CreateTestWorkspace(string.Format(@" 192Assert.Equal(string.Format(WorkspacesResources.Rename_0_to_1, expectedFromName, expectedToName), codeAction.Title);
Utilities\BloomFilterTests.cs (3)
79Assert.True(falsePositivePercentage < (d * 1.5), string.Format("falsePositivePercentage={0}, d={1}", falsePositivePercentage, d)); 199Assert.True(falsePositivePercentage < (d * 1.5), string.Format("falsePositivePercentage={0}, d={1}", falsePositivePercentage, d)); 270Assert.True(falsePositivePercentage < (d * 1.5), string.Format("falsePositivePercentage={0}, d={1}", falsePositivePercentage, d));
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
GoToHelpers\GoToHelpers.vb (1)
60Return String.Format("{0}:{1}",
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
AbstractTypeParameterChecker.cs (1)
35string.Format("Unexpected type parameter {0} owned by {1}", symbol, symbol.ContainingSymbol));
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (1)
src\Dependencies\Contracts\ExceptionUtilities.cs (1)
21string output = string.Format("Unexpected value '{0}' of type '{1}'", o, (o != null) ? o.GetType().FullName : "<unknown>");
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (4)
src\Compilers\Core\Portable\InternalUtilities\EnumField.cs (1)
36return string.Format("{{{0} = {1}}}", this.Name, this.Value);
src\Dependencies\Contracts\ExceptionUtilities.cs (1)
21string output = string.Format("Unexpected value '{0}' of type '{1}'", o, (o != null) ? o.GetType().FullName : "<unknown>");
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\ValueHelpers.cs (1)
39return string.Format(Resources.ExceptionThrown, fullNameWithoutFormatSpecifiers, typeName);
src\ExpressionEvaluator\Core\Source\ResultProvider\ResultProvider.cs (1)
531return string.Format("{0} {{{1}}}", declaredTypeName, runtimeTypeName);
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (5)
Debugger\Engine\DkmClrType.cs (1)
159? string.Format("{0} (Proxy = {1})", result, proxyAttribute.ProxyType.GetLmrType().ToString())
src\Compilers\Core\Portable\InternalUtilities\EnumField.cs (1)
36return string.Format("{{{0} = {1}}}", this.Name, this.Value);
src\Dependencies\Contracts\ExceptionUtilities.cs (1)
21string output = string.Format("Unexpected value '{0}' of type '{1}'", o, (o != null) ? o.GetType().FullName : "<unknown>");
src\ExpressionEvaluator\Core\Source\ResultProvider\Helpers\ValueHelpers.cs (1)
39return string.Format(Resources.ExceptionThrown, fullNameWithoutFormatSpecifiers, typeName);
src\ExpressionEvaluator\Core\Source\ResultProvider\ResultProvider.cs (1)
531return string.Format("{0} {{{1}}}", declaredTypeName, runtimeTypeName);
Microsoft.CodeAnalysis.ExternalAccess.Extensions (3)
Internal\ExtensionMessageHandlerFactory.cs (1)
59throw new InvalidOperationException(string.Format(ExternalAccessExtensionsResources.Type_0_implements_interface_1_more_than_once, candidateType.FullName, unboundInterfaceType.Name));
Internal\ExtensionMessageHandlerWrapper.cs (2)
45throw new InvalidOperationException(string.Format(ExternalAccessExtensionsResources.The_message_type_0_is_not_assignable_to_1, message?.GetType().FullName ?? "null", MessageType.FullName)); 54throw new InvalidOperationException(string.Format(ExternalAccessExtensionsResources.The_message_type_0_is_not_assignable_to_1, response?.GetType().FullName ?? "null", ResponseType.FullName));
Microsoft.CodeAnalysis.Features (18)
AddPackage\InstallPackageDirectlyCodeActionOperation.cs (1)
63: string.Format(FeaturesResources.Install_0_1, _packageName, _versionOpt);
CodeLens\ReferenceCount.cs (1)
31=> string.Format(FeaturesResources.This_0_has_1_references, codeElementKind, GetCappedReferenceCountString());
Diagnostics\Service\DocumentAnalysisExecutor_Helpers.cs (2)
40description: string.Format(FeaturesResources.Analyzer_0_threw_the_following_exception_colon_1, analyzerName, e.CreateDiagnosticDescription()), 156throw new ArgumentException(string.Format(FeaturesResources.Reported_diagnostic_0_has_a_source_location_in_file_1_which_is_not_part_of_the_compilation_being_analyzed, id, location.SourceTree.FilePath), "diagnostic");
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
304: string.Format(
EditAndContinue\Remote\RemoteDebuggingSessionProxy.cs (1)
108string.Format(descriptor.MessageFormat.ToString(), "", message));
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingSemanticChangeProcessor.cs (1)
323private static readonly Func<int, ProjectId, string> s_enqueueLogger = (t, i) => string.Format("[{0}] {1}", t, i.ToString());
ExtractMethod\MethodExtractor.cs (1)
242string.Format(FeaturesResources.Type_parameter_0_is_hidden_by_another_type_parameter_1,
GenerateType\AbstractGenerateTypeService.CodeAction.cs (2)
52return string.Format(FeaturesResources.Generate_0_1_in_new_file, 58return string.Format(isNested ? FeaturesResources.Generate_nested_0_1 : FeaturesResources.Generate_0_1,
InvertLogical\AbstractInvertLogicalCodeRefactoringProvider.cs (1)
140=> string.Format(FeaturesResources.Replace_0_with_1,
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
213var documentName = string.Format(
MetadataAsSource\MetadataAsSourceHelpers.cs (1)
35return string.Format(
NavigateTo\RoslynNavigateToItem.cs (1)
129(true, true) => string.Format(FeaturesResources._0_dash_1, itemDocument.Name, combinedProjectName),
PdbSourceDocument\IPdbSourceDocumentLogger.cs (1)
23=> logger.Log(string.Format(message, arg0, arg1));
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (1)
214string.Format(FeaturesResources.Change_0_to_1, oldName, newName),
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.cs (1)
53string.Format(CodeFixesResources.Generate_constructor_0_1,
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator.cs (1)
170string.Format("{0}_{1}", member.ContainingType.Name, member.Name),
Microsoft.CodeAnalysis.Features.UnitTests (4)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (3)
527AssertEx.Equal([$"{document1.Project.FilePath}: (0,0)-(0,0): Error ENC1001: {string.Format(FeaturesResources.ErrorReadingFile, moduleFile.Path, expectedErrorMessage)}"], InspectDiagnostics(emitDiagnostics)); 891AssertEx.Equal([$"{document2.FilePath}: (5,0)-(5,32): Error ENC2016: {string.Format(FeaturesResources.EditAndContinueDisallowedByProject, document2.Project.Name, "*message*")}"], InspectDiagnostics(emitDiagnostics)); 1530AssertEx.Equal([$"{document2.FilePath}: (0,30)-(0,32): Error CS0266: {string.Format(CSharpResources.ERR_NoImplicitConvCast, "long", "int")}"], InspectDiagnostics(emitDiagnostics));
EditAndContinue\RemoteEditAndContinueServiceTests.cs (1)
224AssertEx.Equal($"[{projectId}] Error ENC1001: test.cs(0, 1, 0, 2): {string.Format(FeaturesResources.ErrorReadingFile, "doc", "syntax error")}", Inspect(results.SyntaxError!));
Microsoft.CodeAnalysis.InteractiveHost (4)
Interactive\Core\InteractiveHost.LazyRemoteService.cs (1)
244string.Format(InteractiveHostResources.Failed_to_launch_0_process_exit_code_colon_1_with_output_colon, hostPath, process.ExitCode),
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
219return new ArgumentException(string.Format(SR.Arg_WrongType, key, targetType), nameof(key)); 224return new ArgumentException(string.Format(SR.Arg_WrongType, value, targetType), nameof(value));
src\Dependencies\Contracts\ExceptionUtilities.cs (1)
21string output = string.Format("Unexpected value '{0}' of type '{1}'", o, (o != null) ? o.GetType().FullName : "<unknown>");
Microsoft.CodeAnalysis.LanguageServer (1)
Testing\RunTestsHandler.cs (1)
192var message = string.Format(LanguageServerResources.Failed_to_read_runsettings_file_at_0_1, runSettingsPath, ex);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)
Hover\HoverTests.cs (2)
568&nbsp;&nbsp;&nbsp;&nbsp;{string.Format(FeaturesResources._0_1, "Net472", FeaturesResources.Available).Replace("-", "\\-")} 569&nbsp;&nbsp;&nbsp;&nbsp;{string.Format(FeaturesResources._0_1, "NetCoreApp3", FeaturesResources.Not_Available).Replace("-", "\\-")}
Symbols\WorkspaceSymbolsTests.cs (1)
254return string.Format(FeaturesResources.in_0_project_1, containingSymbolName, solution.Projects.Single().Name);
Microsoft.CodeAnalysis.Rebuild (1)
MetadataCompilationOptions.cs (1)
54throw new InvalidOperationException(string.Format(RebuildResources._0_exists_1_times_in_compilation_options, optionName, optionValues.Length));
Microsoft.CodeAnalysis.Remote.Workspaces (2)
BrokeredServiceConnection.cs (1)
383message = string.Format(RemoteWorkspacesResources.Feature_0_is_currently_unavailable_due_to_an_intermittent_error, featureName, exception.Message);
EditAndContinue\ManagedHotReloadLanguageService.cs (1)
309string.Format(descriptor.MessageFormat.ToString(), "", e.Message));
Microsoft.CodeAnalysis.Scripting (1)
Script.cs (1)
601throw new ArgumentException(string.Format(ScriptingResources.GlobalsNotAssignable, runtimeType, globalsTypeInfo), nameof(globals));
Microsoft.CodeAnalysis.Test.Utilities (7)
Assert\AssertEx.cs (1)
510Assert.True(none, string.Format(
Assert\TestExceptionUtilities.cs (1)
15string output = string.Format("Unexpected value '{0}' of type '{1}'", o, (o != null) ? o.GetType().FullName : "<unknown>");
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
93expectedText += string.Format(@"
MarkedSource\MarkupTestFile.cs (4)
139throw new ArgumentException(string.Format("Saw {0} without matching {1}", SpanEndString, SpanStartString)); 153throw new ArgumentException(string.Format("Saw {0} without matching {1}", NamedSpanEndString, NamedSpanStartString)); 166throw new ArgumentException(string.Format("Saw {0} without matching {1}", SpanStartString, SpanEndString)); 171throw new ArgumentException(string.Format("Saw {0} without matching {1}", NamedSpanEndString, NamedSpanEndString));
Microsoft.CodeAnalysis.Threading.Package (3)
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
219return new ArgumentException(string.Format(SR.Arg_WrongType, key, targetType), nameof(key)); 224return new ArgumentException(string.Format(SR.Arg_WrongType, value, targetType), nameof(value));
src\Dependencies\Contracts\ExceptionUtilities.cs (1)
21string output = string.Format("Unexpected value '{0}' of type '{1}'", o, (o != null) ? o.GetType().FullName : "<unknown>");
Microsoft.CodeAnalysis.UnitTests (15)
CommonCommandLineParserTests.cs (10)
306VerifyRuleSetError(source, () => string.Format(CodeAnalysisResources.RuleSetBadAttributeValue, "Action", "Default")); 320VerifyRuleSetError(source, () => string.Format(CodeAnalysisResources.RuleSetMissingAttribute, "Rule", "Id")); 334VerifyRuleSetError(source, () => string.Format(CodeAnalysisResources.RuleSetMissingAttribute, "Rule", "Action")); 348VerifyRuleSetError(source, () => string.Format(CodeAnalysisResources.RuleSetMissingAttribute, "Rules", "AnalyzerId")); 362VerifyRuleSetError(source, () => string.Format(CodeAnalysisResources.RuleSetMissingAttribute, "Rules", "RuleNamespace")); 377VerifyRuleSetError(source, () => string.Format(CodeAnalysisResources.RuleSetMissingAttribute, "RuleSet", "ToolsVersion")); 391VerifyRuleSetError(source, () => string.Format(CodeAnalysisResources.RuleSetMissingAttribute, "RuleSet", "Name")); 436VerifyRuleSetError(source, () => string.Format(CodeAnalysisResources.RuleSetBadAttributeValue, "Action", "Default")); 994Assert.Contains(string.Format(CodeAnalysisResources.InvalidRuleSetInclude, newFile.Path, string.Format(CodeAnalysisResources.RuleSetBadAttributeValue, "Action", "Default")), e.Message, StringComparison.Ordinal);
CommonTypedConstantTests.cs (1)
46var s2 = String.Format("{0}{1}{1}", "g", "o");
Diagnostics\SuppressMessageTargetSymbolResolverTests.cs (1)
1420string.Format("Did not expect FxCop fully-qualified name '{0}' to resolve to any symbol: resolved to:\r\n{1}",
MetadataReferences\MetadataReferenceTests.cs (2)
554Assert.True(eq, string.Format("expected '{0}' == '{1}'", r.Display, s.Display)); 558Assert.False(eq, string.Format("expected '{0}' != '{1}'", r.Display, s.Display));
Text\SourceTextStreamTests.cs (1)
48var text = string.Format("{0}{1}", baseText, '\u2019');
Microsoft.CodeAnalysis.VisualBasic (5)
Compilation\DocumentationComments\DocWriter.vb (1)
109String.Format("Temporary strings should be indent-neutral (was {0}, is {1})",
Compilation\SemanticModel.vb (1)
3588Return String.Format("{0}: at {1}", Me.SyntaxTree.FilePath, position)
Symbols\ConstraintsHelper.vb (1)
910Dim result = String.Format("{0} : {1}", TypeParameter, Constraint)
Symbols\NamespaceExtent.vb (1)
73Return String.Format("{0}: {1}", Kind.ToString(), _symbolOrCompilation.ToString())
Symbols\ReferenceManager.vb (1)
113Throw New NotSupportedException(String.Format(VBResources.CantReferenceCompilationFromTypes, compilationReference.GetType(), "Visual Basic"))
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (3)
CommandLineTests.vb (1)
4106String.Format("/nologo /doc:{1}\src.xml /t:library {0}",
SarifV1ErrorLoggerTests.vb (2)
48Dim expectedIssues = String.Format(" 125Dim expectedIssues = String.Format("
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (12)
Attributes\AttributeTests_MarshalAs.vb (2)
392source.AppendLine(String.Format("<MarshalAs(UnmanagedType.LPArray, ArraySubType := CType(&H{0:X}, UnmanagedType))>Dim {1} As Integer", i, fldName)) 519source.AppendLine(String.Format("<MarshalAs(UnmanagedType.ByValArray, ArraySubType := CType(&H{0:X}, UnmanagedType))>Dim {1} As Integer", i, fldName))
ExpressionTrees\CodeGenExprLambda.vb (10)
222list.Add(New ExpressionTreeTest With {.Description = String.Format(descr1, type1, type2), 224String.Format("Func(Of {0}, {1})", type1, type2), 1471.ExpressionTypeArgument = String.Format("Func(Of {0}, {1})", typeFrom, typeTo), 1472.Lambda = String.Format("Function(x As {0}) {1}", typeFrom, String.Format(opPattern, "x", typeTo))}) 1798String.Format("-=-=-=-=-=-=-=-=- {0} -> {1} -=-=-=-=-=-=-=-=-", 1799String.Format(pattern, type1, type2), type2), 1801String.Format("Func(Of {0}, {1})", type1, type2), 1802.Lambda = String.Format("Function(x As {0}) {1}", 1803type1, String.Format(pattern, "x", type2))})
Microsoft.CodeAnalysis.VisualBasic.Features (3)
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.CodeAction.vb (1)
31Return String.Format(VBFeaturesResources.Create_event_0_in_1, _generatedEvent.Name, _targetSymbol.Name)
CodeFixes\MoveToTopOfFile\MoveToTopOfFileCodeFixProvider.vb (1)
188Return String.Format(VBFeaturesResources.Move_the_0_statement_to_line_1, kind, line + 1)
CodeFixes\Suppression\VisualBasicSuppressionCodeFixProvider.vb (1)
183Dim ruleIdText = If(String.IsNullOrWhiteSpace(title), diagnostic.Id, String.Format("{0}:{1}", diagnostic.Id, title))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Binding\BindingScopeTests.vb (2)
33Assert.True(found, String.Format("Should have been in scope at position {0} text '{1}...'", position, locationText)) 35Assert.False(found, String.Format("Should have been out of scope at position {0} text '{1}...'", position, locationText))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
LocationTests.vb (2)
24Return String.Format("[{0};{1}]", path, basePath) 45Assert.Equal(String.Format("[{0};{1}]", expectedPath, If(hasMappedPath, syntaxTree.FilePath, Nothing)), actualDisplayPath)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
Formatting\FormattingTests.vb (1)
4194Dim setPropertyStatement = SyntaxFactory.ParseExecutableStatement(String.Format("SetProperty({0}, value, ""{1}"")", "field", "Property")).WithLeadingTrivia(SyntaxFactory.ElasticMarker)
Microsoft.CodeAnalysis.Workspaces (15)
CodeCleanup\AbstractCodeCleanerService.cs (1)
660: this(type, oppositeMarkerType, new SyntaxAnnotation(AnnotationId, string.Format("{0} {1}", type, oppositeMarkerType)))
Differencing\Match.cs (2)
45throw new ArgumentException(string.Format(WorkspacesResources.Matching_nodes_0_and_1_must_have_the_same_label, knownMatch.Key, knownMatch.Value), nameof(knownMatches)); 85throw new InvalidOperationException(string.Format(WorkspacesResources.Label_for_node_0_is_invalid_it_must_be_within_bracket_0_1, node, labelCount));
FindSymbols\ReferenceLocation.cs (1)
149=> string.Format("{0}: {1}", this.Document.Name, this.Location);
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
219return new ArgumentException(string.Format(SR.Arg_WrongType, key, targetType), nameof(key)); 224return new ArgumentException(string.Format(SR.Arg_WrongType, value, targetType), nameof(value));
src\Dependencies\Contracts\ExceptionUtilities.cs (1)
21string output = string.Format("Unexpected value '{0}' of type '{1}'", o, (o != null) ? o.GetType().FullName : "<unknown>");
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (1)
154: string.Format(CompilerExtensionsResources.Prefix_0_does_not_match_expected_prefix_1, prefix, Prefix);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\FixAllHelper.cs (2)
20FixAllScope.Document => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_1, title, triggerDocument.Name), 21FixAllScope.Project => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_1, title, triggerProject.Name),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
166string.Format(WorkspaceExtensionsResources.Destination_type_must_be_a_0_but_given_one_is_1, typeof(TDeclarationNode).Name, destination.GetType().Name),
Workspace\Host\HostLanguageServices.cs (1)
68string.Format(WorkspacesResources.Service_of_type_0_is_required_to_accomplish_the_task_but_is_not_available_from_1_workspace,
Workspace\Host\HostWorkspaceServices.cs (1)
88string.Format(WorkspacesResources.Service_of_type_0_is_required_to_accomplish_the_task_but_is_not_available_from_1_workspace,
Workspace\Solution\Solution.cs (1)
1863string.Format(WorkspacesResources.Adding_project_reference_from_0_to_1_will_cause_a_circular_reference,
Workspace\Workspace.cs (1)
2421throw new ArgumentException(string.Format(
Microsoft.CodeAnalysis.Workspaces.MSBuild (6)
MSBuild\DiagnosticReporter.cs (2)
43throw new ArgumentException(string.Format(WorkspaceMSBuildResources.Invalid_0_specified_1, nameof(DiagnosticReportingMode), nameof(mode)), nameof(mode)); 68: string.Format(WorkspaceMSBuildResources.Msbuild_failed_when_processing_the_file_0_with_message_1, projectFilePath, message);
MSBuild\MSBuildProjectLoader.Worker.cs (2)
323var message = string.Format(WorkspaceMSBuildResources.Unable_to_find_a_0_for_1, nameof(ICommandLineParserService), projectFileInfo.Language); 489var message = string.Format(WorkspacesResources.Duplicate_source_file_0_in_project_1, doc.FilePath, projectFilePath);
MSBuild\ProjectFileExtensionRegistry.cs (2)
70_diagnosticReporter.Report(mode, string.Format(WorkspacesResources.Cannot_open_project_0_because_the_language_1_is_not_supported, projectFilePath, language)); 77_diagnosticReporter.Report(mode, string.Format(WorkspacesResources.Cannot_open_project_0_because_the_file_extension_1_is_not_associated_with_a_language, projectFilePath, Path.GetExtension(projectFilePath)));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (4)
src\Compilers\Core\Portable\InternalUtilities\EnumField.cs (1)
36return string.Format("{{{0} = {1}}}", this.Name, this.Value);
src\Dependencies\Collections\Internal\ThrowHelper.cs (2)
219return new ArgumentException(string.Format(SR.Arg_WrongType, key, targetType), nameof(key)); 224return new ArgumentException(string.Format(SR.Arg_WrongType, value, targetType), nameof(value));
src\Dependencies\Contracts\ExceptionUtilities.cs (1)
21string output = string.Format("Unexpected value '{0}' of type '{1}'", o, (o != null) ? o.GetType().FullName : "<unknown>");
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (8)
VisualStudioMSBuildWorkspaceTests.cs (8)
866var expected = string.Format(WorkspacesResources.Cannot_open_project_0_because_the_file_extension_1_is_not_associated_with_a_language, GetSolutionFileName(ProjFileName), ".nyi"); 884var expected = string.Format(WorkspacesResources.Cannot_open_project_0_because_the_language_1_is_not_supported, projFileName, language); 1137var expected = string.Format(WorkspacesResources.Cannot_open_project_0_because_the_file_extension_1_is_not_associated_with_a_language, noProjFullFileName, ".noproj"); 1159var expected = string.Format(WorkspacesResources.Cannot_open_project_0_because_the_language_1_is_not_supported, projFileName, LanguageNames.CSharp); 1177var expected = string.Format(WorkspacesResources.Cannot_open_project_0_because_the_language_1_is_not_supported, projFileName, LanguageNames.CSharp); 1192var expected = string.Format(WorkspacesResources.Cannot_open_project_0_because_the_language_1_is_not_supported, projectName, LanguageNames.CSharp); 2230string.Format("event {0} was not fired within {1}", 2266string.Format("event {0} was not fired within {1}",
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace_XmlConsumption.cs (1)
368throw new ArgumentException(string.Format("Language should be one of '{0}' and it is {1}",
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Differencing\TestNode.cs (1)
49=> string.Format("({0}, {1})", Label, Value);
FindAllDeclarationsTests.TestSolutionsAndProject.cs (1)
71string.Format("Expected result to be {0} was {1}", expectedResult, actualResult));
Microsoft.CommonLanguageServerProtocol.Framework.Example (1)
src\Dependencies\Contracts\ExceptionUtilities.cs (1)
21string output = string.Format("Unexpected value '{0}' of type '{1}'", o, (o != null) ? o.GetType().FullName : "<unknown>");
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
src\Dependencies\Contracts\ExceptionUtilities.cs (1)
21string output = string.Format("Unexpected value '{0}' of type '{1}'", o, (o != null) ? o.GetType().FullName : "<unknown>");
Microsoft.CSharp (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Data.Analysis (23)
DataFrame.cs (2)
403throw new ArgumentException(String.Format("{0} {1}", Strings.MismatchedRowCount, Columns[i].Name)); 733sb.Append(String.Format(Strings.AmountOfRowsShown, rowsToShow, Rows.Count));
DataFrame.IO.cs (3)
369throw new ArgumentException(string.Format(Strings.ExpectedEitherGuessRowsOrDataTypes, nameof(guessRows), nameof(dataTypes))); 400var newName = String.Format("{0}.{1}", fields[i], index); 581throw new ArgumentException(string.Format(Strings.ExpectedEitherGuessRowsOrDataTypes, nameof(guessRows), nameof(dataTypes)));
DataFrameColumn.cs (1)
449sb.Append(String.Format(Strings.AmountOfRowsShown, rowsToShow, Length));
DataFrameColumnCollection.cs (17)
223throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(T)), nameof(T)); 240throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(DateTime))); 257throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(string))); 274throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(string))); 291throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Boolean))); 308throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Byte))); 325throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Char))); 342throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Double))); 359throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Decimal))); 376throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Single))); 393throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Int32))); 410throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Int64))); 427throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(SByte))); 444throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Int16))); 461throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(string))); 478throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(UInt64))); 495throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(UInt16)));
Microsoft.DotNet.AsmDiff (1)
DiffCSharpWriter.cs (1)
484_syntaxWriter.Write(string.Format("{0}{1}", p1.Name, p1.Delimiter));
Microsoft.DotNet.Build.Tasks.Feed (3)
src\CreateAzureDevOpsFeed.cs (1)
142Convert.ToBase64String(Encoding.ASCII.GetBytes(string.Format("{0}:{1}", "", AzureDevOpsPersonalAccessToken))));
src\PublishArtifactsInManifestBase.cs (2)
894Convert.ToBase64String(Encoding.ASCII.GetBytes(string.Format("{0}:{1}", "", 1345Convert.ToBase64String(Encoding.ASCII.GetBytes(string.Format("{0}:{1}", "", feedConfig.Token))));
Microsoft.DotNet.Build.Tasks.Installers (1)
src\GenerateCurrentVersion.cs (1)
141return string.Format("{0}{1}", months.ToString("D" + (Padding - 2)), seedDate.Day.ToString("D2"));
Microsoft.DotNet.Build.Tasks.Workloads (5)
Msi\MsiUtils.wix.cs (3)
196throw new ArgumentOutOfRangeException(string.Format(Strings.MsiProductVersionOutOfRange, nameof(version.Major), 255)); 201throw new ArgumentOutOfRangeException(string.Format(Strings.MsiProductVersionOutOfRange, nameof(version.Minor), 255)); 206throw new ArgumentOutOfRangeException(string.Format(Strings.MsiProductVersionOutOfRange, nameof(version.Build), ushort.MaxValue));
Swix\SwixProjectBase.cs (1)
110throw new Exception(string.Format(Strings.RelativePackagePathTooLong, MaxRelativePackagePath, relativePackagePath));
WorkloadManifestPackage.wix.cs (1)
117throw new FileNotFoundException(string.Format(Strings.WorkloadManifestNotFound, primaryManifest, secondaryManifest));
Microsoft.DotNet.CodeAnalysis (1)
Analyzers\AppContextDefaultsAnalyzer.cs (1)
40return string.Format("{0} {1}", diagnosticMessage, string.Format(HowToDisableWarning, diagnosticId));
Microsoft.DotNet.Git.IssueManager (1)
Clients\AzureDevOpsClient.cs (1)
62Convert.ToBase64String(Encoding.ASCII.GetBytes(string.Format("{0}:{1}", "", personalAccessToken))));
Microsoft.DotNet.NuGetRepack.Tests (2)
TestHelpers\AssertEx.cs (2)
276Assert.True(expectedSet.SetEquals(actual), string.Format("Expected: {0}\nActual: {1}", ToString(expected), ToString(actual))); 284Assert.True(none, string.Format(
Microsoft.DotNet.SignCheckLibrary (2)
Verification\FileVerifier.cs (1)
165Log.WriteMessage(LogVerbosity.Detailed, String.Format(SignCheckResources.ProcessingFile, Path.GetFileName(path), String.IsNullOrEmpty(parent) ? SignCheckResources.NA : parent));
Verification\SignatureVerificationResult.cs (1)
265sb.Append(String.Format("[{0}] {1}", key, value));
Microsoft.Extensions.Caching.Memory (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.Configuration (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.Configuration.Abstractions (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.Configuration.Binder (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.Configuration.CommandLine (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.Configuration.FileExtensions (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.Configuration.Ini (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.Configuration.Json (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.Configuration.UserSecrets (2)
PathHelper.cs (1)
52string.Format(
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.Configuration.Xml (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.DependencyInjection (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.DependencyInjection.Abstractions (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.DependencyModel (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.Diagnostics (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.Diagnostics.Abstractions (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.FileProviders.Abstractions (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.FileProviders.Physical (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.FileSystemGlobbing (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.Hosting (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.Hosting.Abstractions (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.Http (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.Logging (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.Logging.Abstractions (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.Logging.Configuration (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.Logging.Console (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.Logging.Generators (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.Options (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.Options.SourceGeneration (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Extensions.Primitives (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Interop.ComInterfaceGenerator (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Interop.JavaScript.JSImportGenerator (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Interop.LibraryImportGenerator (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Interop.SourceGeneration (3)
ISymbolExtensions.cs (2)
20details = string.Format(SR.TypeAccessibilityDetails, symbol.ToDisplayString(), symbol.DeclaredAccessibility.ToString().ToLowerInvariant()); 28details = string.Format(SR.ContainingTypeAccessibilityDetails, current.ToDisplayString(), current.DeclaredAccessibility.ToString().ToLowerInvariant());
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Maui (10)
Converters\FlexEnumsConverters.cs (7)
36 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(FlexJustify))); 71 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(FlexDirection))); 110 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(FlexAlignContent))); 145 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(FlexAlignItems))); 180 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(FlexAlignSelf))); 213 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(FlexWrap))); 255 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(FlexBasis)));
Converters\KeyboardTypeConverter.cs (1)
41 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(Keyboard)));
Primitives\GridLength.cs (1)
86 return string.Format("{0}.{1}", Value, GridUnitType);
Primitives\SizeRequest.cs (1)
38 return string.Format("{{Request={0} Minimum={1}}}", Request, Minimum);
Microsoft.Maui.Controls (20)
BindingExpression.cs (1)
699 if (name != string.Format("{0}[{1}]", part.IndexerName, part.Content))
ColumnDefinitionCollectionTypeConverter.cs (1)
34 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(ColumnDefinitionCollection)));
DecorableTextElement.cs (2)
29 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(TextDecorations))); 43 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", item, typeof(TextDecorations)));
DoubleCollectionConverter.cs (1)
41 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", d, typeof(double)));
FileImageSourceConverter.cs (1)
23 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(FileImageSource)));
FontAttributes.cs (1)
63 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", originalvalue, typeof(FontAttributes)));
FontSizeConverter.cs (2)
62 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", value, typeof(double))); 100 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(double)));
ImageSourceConverter.cs (1)
31 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(ImageSource)));
LegacyLayouts\ConstraintTypeConverter.cs (1)
25 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(Constraint)));
PlatformBindingHelpers.cs (2)
86 throw new InvalidOperationException(Format("Native Binding on {0}.{1} failed due to missing or inaccessible property", target.GetType(), targetProperty)); 171 throw new ArgumentException(Format("No declared or accessible event {0} on {1}", updateSourceEventName, target.GetType()), nameof(updateSourceEventName));
RowDefinitionCollectionTypeConverter.cs (1)
34 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(RowDefinitionCollection)));
Shapes\PathFigureCollectionConverter.cs (2)
432 throw new FormatException(string.Format("UnexpectedToken \"{0}\" into {1}", currentPathString, currentIndex - 1)); 566 throw new FormatException(string.Format("UnexpectedToken \"{0}\" into {1}", start, currentPathString));
Shapes\PointCollectionConverter.cs (1)
52 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", point, typeof(double)));
TextAlignment.cs (1)
41 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(TextAlignment)));
VisualElement\VisualElement.cs (1)
2457 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}.", strValue, typeof(bool)));
WebView\WebViewSourceTypeConverter.cs (1)
23 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", strValue, typeof(UrlWebViewSource)));
Microsoft.Maui.Graphics (8)
Converters\PointFTypeConverter.cs (1)
34 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", value, typeof(PointF)));
Converters\PointTypeConverter.cs (1)
34 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", value, typeof(Point)));
Converters\RectFTypeConverter.cs (1)
28 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", value, typeof(RectF)));
Converters\RectTypeConverter.cs (1)
29 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", value, typeof(Rect)));
Converters\SizeFTypeConverter.cs (1)
27 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", value, typeof(SizeF)));
Converters\SizeTypeConverter.cs (1)
27 throw new InvalidOperationException(string.Format("Cannot convert \"{0}\" into {1}", value, typeof(Size)));
Size.cs (1)
98 return string.Format("{{Width={0} Height={1}}}", Width.ToString(CultureInfo.InvariantCulture), Height.ToString(CultureInfo.InvariantCulture));
SizeF.cs (1)
113 return string.Format("{{Width={0} Height={1}}}", Width.ToString(CultureInfo.InvariantCulture), Height.ToString(CultureInfo.InvariantCulture));
Microsoft.ML.AutoML (3)
ColumnInference\ColumnGroupingInference.cs (1)
102name = string.Format("{0}{1:00}", prefix, i);
ColumnInference\ColumnTypeInference.cs (1)
354name = string.Format("{0}_{1:00}", name0, i++);
Sweepers\ISweeper.cs (1)
145return string.Join(" ", _parameterValues.Select(kvp => string.Format("{0}={1}", kvp.Value.Name, kvp.Value.ValueText)).ToArray());
Microsoft.ML.Core (2)
Data\ProgressReporter.cs (1)
391nameCandidate = string.Format("{0} #{1}", name, i);
Environment\HostEnvironmentBase.cs (1)
62return string.Format("{0}; {1}", ParentFullName, ShortName);
Microsoft.ML.Core.Tests (12)
UnitTests\TestEntryPoints.cs (12)
578string inputGraph = string.Format(@" 623string inputGraph = string.Format(@" 771string inputGraph = string.Format(@" 915string inputGraph = string.Format(@" 1076string inputGraph = string.Format(@" 1217string inputGraph = string.Format(@" 2286string inputGraph = string.Format(@" 2337string inputGraph = string.Format(@" 2386string inputGraph = string.Format(@" 2431string inputGraph = string.Format(@" 2477string inputGraph = string.Format(@" 4350string inputGraph = string.Format(@"
Microsoft.ML.Data (19)
Commands\CrossValidationCommand.cs (1)
127string cmd = string.Format("maml.exe {0} {1}", LoadName, settings);
Commands\TrainCommand.cs (1)
118string cmd = string.Format("maml.exe {0} {1}", command, settings);
Commands\TrainTestCommand.cs (1)
101string cmd = string.Format("maml.exe {0} {1}", LoadName, settings);
Data\Conversion.cs (1)
948public void Convert(in UG src, ref TX dst) => dst = string.Format("0x{0:x16}{1:x16}", src.High, src.Low).AsMemory();
Data\DataViewUtils.cs (3)
39string.Format("temp_{0}_{1:000}", tag, i); 64string.Format("temp_{0}_{1:000}", tag, j); 1409value = string.Format("<{0}{1}>", stringRep, suffix).AsMemory();
Dirty\ChooseColumnsByIndexTransform.cs (1)
112string fmt = string.Format("Column index {0} invalid for input with {1} columns", selectedIndex, _sourceSchema.Count);
Evaluators\EvaluatorUtils.cs (6)
367string.Format("{0} {1}", colName, names.GetItemOrDefault(metric.Key)), metric.Value); 1041tryNaming = (string.Format("{0}{1}", metricName, name.Value)); 1547sb.Append(string.Format("{0}{1}: ", weighted ? "Weighted " : "", metricNames[i]).PadRight(20)); 1624rowLabelFormat = string.Format("{{0,{0}}}. {{1,{1}}} ||", rowDigitLen, namePadLen); 1656string format = string.Format(" {{{0},{1}}} |", useNumbersInHeader ? 0 : 1, colWidth); 1666string format2 = string.Format(" {{0,{0}:{1}}} |", colWidth,
Evaluators\MulticlassClassificationEvaluator.cs (1)
838editor.Values[i - 1] = string.Format("#{0} {1}", i, suffix).AsMemory();
Evaluators\MultiOutputRegressionEvaluator.cs (1)
606editor.Values[i] = string.Format("{0}_{1}", prefix, i).AsMemory();
Evaluators\QuantileRegressionEvaluator.cs (1)
375editor.Values[i] = string.Format("{0} ({1})", prefix, quantiles[i]).AsMemory();
Evaluators\RankingEvaluator.cs (2)
537editor.Values[i] = string.Format("{0}@{1}", prefix, i + 1).AsMemory(); 686string.Format("{0}@{1}", iinfo == NdcgCol ? Ndcg : iinfo == DcgCol ? Dcg : MaxDcg,
Microsoft.ML.DataView (1)
DataViewRowId.cs (1)
40return string.Format("{0:x16}{1:x16}", High, Low);
Microsoft.ML.FastTree (2)
TreeEnsembleFeaturizer.cs (2)
495editor.Values[i++] = string.Format("Tree{0:000}Leaf{1:000}", t, l).AsMemory(); 515editor.Values[i++] = string.Format("Tree{0:000}Node{1:000}", t, l).AsMemory();
Microsoft.ML.ImageAnalytics (1)
ImageType.cs (1)
110return string.Format("Image<{0}, {1}>", Height, Width);
Microsoft.ML.Predictor.Tests (4)
CmdLine\CmdLine.cs (2)
173return string.Format("{{a={0} b={1}}}", a, b); 298return string.Format("{0}: value={1}", TypeName, value);
TestParallelFasttreeInterface.cs (1)
185var trainArgs = string.Format(
TestTransposer.cs (1)
76string desc = string.Format("Column {0} named '{1}'", col, trans.Schema[col].Name);
Microsoft.ML.Recommender (2)
MatrixFactorizationPredictor.cs (2)
383string msg = string.Format("Input column index type '{0}' incompatible with predictor's column index type '{1}'", type, _parent.MatrixColumnIndexType); 388msg = string.Format("Input row index type '{0}' incompatible with predictor' row index type '{1}'", type, _parent.MatrixRowIndexType);
Microsoft.ML.StandardTrainers (6)
Optimizer\OptimizationMonitor.cs (2)
263return string.Format("Mean rel impr over {0} iter'ns < tol: {1,0:0.000e0}", _n, _tol); 338return string.Format("UB rel dist from opt, σ² = {0,0:0.00e0}, tol = {1,0:0.00e0}", _sigmaSq, _tol);
Standard\LogisticRegression\MulticlassLogisticRegression.cs (2)
860string.Format("{0}+{1}", GetLabelName(classNumber), name.IsEmpty ? $"f{index}" : name.ToString()), 1255writer.WriteLine(string.Format("var softmax = MathUtils.SoftMax({0}.AsSpan(0, {1}));", scoresName, NumberOfClasses));
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (2)
305ctx.LoadModel<TDistPredictor, SignatureLoadModel>(Host, out _predictors[index++], string.Format(SubPredictorFmt2, i, j)); 368ctx.SaveModel(_predictors[index + j], string.Format(SubPredictorFmt2, i, j));
Microsoft.ML.Sweeper (6)
ConfigRunner.cs (3)
119return string.Format(@"o={{{0}\{1}.summary.txt}}", OutputFolder, Prefix); 167ch.Info("Parameter set: {0}", string.Join(", ", sweeps[i].Select(p => string.Format("{0}:{1}", p.Name, p.ValueText)))); 217ResultProcessor.GetRunResult(sweep, string.Format(@"{0}\{1}.out.txt", OutputFolder, min + j)));
ISweeper.cs (1)
174return string.Join(" ", _parameterValues.Select(kvp => string.Format("{0}={1}", kvp.Value.Name, kvp.Value.ValueText)).ToArray());
SynthConfigRunner.cs (2)
51string filePath = string.Format(@"{0}\{1}.out.txt", OutputFolder, min + j); 52string content = string.Format(@"{1}
Microsoft.ML.TestFramework (18)
BaseTestBaseline.cs (1)
195Log(String.Format("Test {0} is using {1} configuration specific baselines.",
BaseTestPredictorsMaml.cs (1)
461list.Add(string.Format("{0}={1}", name, val));
Learners.cs (1)
633string.Format("lr=0.1 momentum=0.5 accel=sse output={0} nag{1}", numOutputs, useNag ? "+" : "-")),
TestCommandBase.cs (15)
85return string.Format("{0}={{{1}}}", name, Path); 184argString = string.Format("{0}{{{1}}}", _names[i], argString); 301int res = MainForTest(_env, newWriter, string.Format("{0} {1}", cmdName, args), ctx.BaselineProgress); 587: base(test, Cat, step == 0 ? test.TestName : string.Format("{0}-{1}", test.TestName, step), false) 734string.Format( 1073string extraArgs = string.Format("test={{{0}}} tr=ft{{t=1}} lab=Lab feat={1} norm=Yes", testData, featureColumnName); 1312string extraArgs = string.Format("test={{{0}}} tr=ftrank{{mil=1 nl=2 iter=5 gains={1} dt+}} eval=rank{{gains={1}}}", dataPath.Path, customGains); 1877string trainTestExtra = string.Format("{0} test={{{1}}}", args, pathTest); 1929string trainTestExtra = string.Format("{0} test={1}", extraArgs, dataPath); 1991string trainTestExtra = string.Format("{0} test={{{1}}} eval=Clustering{{dbi+}}", trainArgs, pathTrain); 1997trainTestExtra = string.Format("{0} test={{{1}}} eval=Clustering{{dbi+}}", trainArgs, pathTrain); 2050int res = MainForTest(_env, newWriter, string.Format("{0} {1}", "traintest", args), true); 2079int res = MainForTest(_env, newWriter, string.Format("{0} {1}", "traintest", args), true); 2106int res = MainForTest(_env, newWriter, string.Format("{0} {1}", "traintest", args), true); 2136int res = MainForTest(_env, newWriter, string.Format("{0} {1}", "traintest", args), true);
Microsoft.ML.Tests (1)
OnnxConversionTest.cs (1)
651string inputGraph = string.Format(@"
Microsoft.ML.Transforms (10)
Dracula\MultiCountTable.cs (2)
191var tableName = string.Format("Table_{0:000}_{1:000}", i, j); 220var tableName = string.Format("Table_{0:000}_{1:000}", i, j);
Expression\Error.cs (1)
42msg = string.Format("at '{0}': {1}", Token, msg);
Expression\LambdaBinder.cs (1)
1166printError(string.Format(
GroupTransform.cs (1)
358errorMessage = string.Format("Column '{0}' has type '{1}', but must have a primitive type", names[i], colType);
MissingValueReplacing.cs (2)
168return string.Format("Type '{0}' is not supported by {1} since it doesn't have an NA value", 175return string.Format("Type '{0}' is not supported by {1} since its NA value is equivalent to its default value",
StatefulFilterTransform.cs (1)
42private static string RegistrationName { get { return string.Format(RegistrationNameTemplate, typeof(TSrc).FullName, typeof(TDst).FullName); } }
Text\LdaTransform.cs (1)
452ectx.Assert(actualSize == 2 * docSize + 1, string.Format("The doc size are distinct. Actual: {0}, Expected: {1}", actualSize, 2 * docSize + 1));
Text\TextFeaturizingEstimator.cs (1)
624return schema.GetTempColumnName(string.Format("{0}_{1}", srcName, xfTag));
Microsoft.VisualBasic.Core (1)
src\libraries\Common\src\System\SR.vb (1)
78Return String.Format(resourceFormat, p1, p2)
Microsoft.VisualStudio.LanguageServices (20)
ChangeSignature\ChangeSignatureDialogViewModel.cs (2)
547return string.Format(ServicesVSResources.Move_0_above_1, AllParameters[SelectedIndex!.Value].ShortAutomationText, AllParameters[SelectedIndex!.Value - 1].ShortAutomationText); 560return string.Format(ServicesVSResources.Move_0_below_1, AllParameters[SelectedIndex!.Value].ShortAutomationText, AllParameters[SelectedIndex!.Value + 1].ShortAutomationText);
CommonControls\NewTypeDestinationSelectionViewModel.cs (1)
71FileName = string.Format("{0}{1}", value.Trim(), _fileExtension);
InheritanceMargin\InheritanceMarginHelpers.cs (1)
185target, string.Format(ServicesVSResources._0_1, target.DisplayName, target.ProjectName)));
NavigationBar\NavigationBarClient.cs (1)
141pbstrText = string.Format(ServicesVSResources.Project_colon_0_1_Use_the_dropdown_to_view_and_switch_to_other_projects_this_file_may_belong_to, selectedItemPreviewText, keybindingString);
Packaging\PackageInstallerServiceFactory.cs (2)
356string.Format(ServicesVSResources.Installing_0_failed_Additional_information_colon_1, packageName, e.Message), 417string.Format(ServicesVSResources.Uninstalling_0_failed_Additional_information_colon_1, packageName, e.Message),
PickMembers\PickMembersDialogViewModel.cs (2)
108return string.Format(ServicesVSResources.Move_0_above_1, MemberContainers[SelectedIndex.Value].SymbolAutomationText, MemberContainers[SelectedIndex.Value - 1].SymbolAutomationText); 121return string.Format(ServicesVSResources.Move_0_below_1, MemberContainers[SelectedIndex.Value].SymbolAutomationText, MemberContainers[SelectedIndex.Value + 1].SymbolAutomationText);
Preview\ReferenceChange.AnalyzerReferenceChange.cs (1)
31return string.Format(ServicesVSResources.Analyzer_reference_to_0_in_project_1, display, this.ProjectName);
Preview\ReferenceChange.MetadataReferenceChange.cs (1)
30return string.Format(ServicesVSResources.Reference_to_0_in_project_1, display, this.ProjectName);
Preview\ReferenceChange.ProjectReferenceChange.cs (1)
30=> string.Format(ServicesVSResources.Project_reference_to_0_in_project_1, _projectReferenceName, this.ProjectName);
Progression\IconHelper.cs (1)
16=> string.Format("Microsoft.VisualStudio.{0}.{1}", groupName, itemName);
ProjectSystem\VisualStudioWorkspaceImpl.RenameDocumentUndoUnit.cs (1)
42=> pBstr = string.Format(WorkspacesResources.Rename_0_to_1, _fromName, _toName);
src\Compilers\Core\Portable\FileKey.cs (1)
57return string.Format("'{0}'@{1}", FullPath, Timestamp);
TaskList\ProjectExternalErrorReporter.cs (1)
345=> string.Format("{0}{1:0000}", _errorCodePrefix, error.iErrorID);
Venus\ContainedDocument.cs (1)
634var replacement = string.Format(format, i.ToString(), initialReplacement);
Venus\ContainedLanguageCodeSupport.cs (2)
332var undoTitle = string.Format(WorkspacesResources.Rename_0_to_1, symbol.Name, newName); 449return string.Format("{0}({1})", member.Name, string.Join(",", ((IMethodSymbol)member).Parameters.Select(p => p.Type.ToDisplayString())));
Workspace\VisualStudioSymbolRenamedCodeActionOperationFactoryWorkspaceService.cs (1)
82public override string Title => string.Format(WorkspacesResources.Rename_0_to_1, _symbol.Name, _newName);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService_Prototype.cs (1)
70Debug.Fail(string.Format("Invalid node/symbol kind: {0}/{1}", node.Kind(), symbol.Kind));
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (1)
PropertyChangedTestMonitor.vb (1)
49_failures.Add(String.Format("Property '{0}' was expected to be updated {1} more time(s) than it was", failureCase.Key, failureCase.Value))
Microsoft.Win32.Registry (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Win32.Registry.AccessControl (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
Microsoft.Win32.SystemEvents (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
MSBuild (1)
CommunicationsUtilities.cs (1)
758TraceCore(nodeId, string.Format(format, arg0, arg1));
MSBuildTaskHost (1)
CommunicationsUtilities.cs (1)
758TraceCore(nodeId, string.Format(format, arg0, arg1));
PresentationBuildTasks (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
95return string.Format(resourceFormat, p1, p2);
PresentationCore (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
95return string.Format(resourceFormat, p1, p2);
PresentationFramework (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
95return string.Format(resourceFormat, p1, p2);
PresentationUI (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
95return string.Format(resourceFormat, p1, p2);
ReachFramework (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
95return string.Format(resourceFormat, p1, p2);
Replay (1)
src\Dependencies\Contracts\ExceptionUtilities.cs (1)
21string output = string.Format("Unexpected value '{0}' of type '{1}'", o, (o != null) ? o.GetType().FullName : "<unknown>");
Roslyn.Compilers.Extension (1)
CompilerPackage.cs (1)
49RoslynHive = string.Format(@"{0}.{1}", registryParts[2], registryParts[3]);
Roslyn.Test.PdbUtilities (6)
EditAndContinue\EditAndContinueTestUtilities.cs (1)
55return string.Format(
Reader\Token2SourceLineExporter.cs (5)
890string.Format( 1279throw new Exception(string.Format("Count mismatch. ({0} != {1})", j, cnt)); 1342throw new Exception(string.Format("OEM section: guid={0} ti={1}", oem.idOem, oem.typind)); 1416throw new Exception(string.Format("Unsupported Name Stream version. (sig={0:x8}, ver={1})", sig, ver)); 1461throw new Exception(string.Format("Error reading DBI stream, pos={0} != {1}", bits.Position, end));
ScenarioTests.Common.Tests (4)
ScenarioTestHelpers.cs (3)
80Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 138errorBuilder.AppendLine(String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 144errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variation, ex.ToString()));
ScenarioTestTypes.cs (1)
1284(string.Format("Certificate was not issued by a trusted issuer. Expected: {0}, Actual: {1}", _allowedIssuerName, certificate.IssuerName.Name));
Security.TransportSecurity.IntegrationTests (18)
Http\ClientCredentialTypeTests.4.1.0.cs (1)
64Assert.True(result == testString, string.Format("Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
Https\ClientCredentialTypeTests.4.1.0.cs (2)
163Assert.True(exception.Message.ToLower().Contains(message), string.Format("Expected exception message to contain: '{0}', actual message is: '{1}'", message, exception.Message)); 202Assert.True(exception.Message.ToLower().Contains(paraMessage), string.Format("Expected exception message to contain: '{0}', actual: '{1}'", paraMessage, exception.Message));
Https\HttpsTests.4.1.0.cs (9)
53Assert.True(result == testString, String.Format("Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 91errorBuilder.AppendLine(String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 96errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variationDetails, ex.ToString())); 130errorBuilder.AppendLine(String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 135errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variationDetails, ex.ToString())); 169errorBuilder.AppendLine(String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 174errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variationDetails, ex.ToString())); 208errorBuilder.AppendLine(String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result)); 213errorBuilder.AppendLine(String.Format(" Error: Unexpected exception was caught while doing the basic echo test for variation...\n'{0}'\nException: {1}", variationDetails, ex.ToString()));
Tcp\ClientCredentialTypeTests.4.1.1.cs (1)
264string.Format("The sent GUID does not match the returned GUID. Sent '{0}', Received: '{1}'", guid, returnedGuid));
Tcp\IdentityTests.4.1.1.cs (1)
42Assert.True(exception.Message.Contains(Endpoints.Tcp_VerifyDNS_HostName), string.Format("Expected exception message contains: '{0}', actual: '{1}')", Endpoints.Tcp_VerifyDNS_HostName, exception.Message));
Tcp\StreamingTests.4.1.0.cs (4)
243String.Format("Expected timeout was {0}ms but actual was {1}ms", 283Assert.True(String.Equals(testString, result), String.Format("Error: Expected test string: '{0}' but got '{1}'", testString, result)); 325Assert.True(String.Equals(testString, result), String.Format("Error: Expected test string: '{0}' but got '{1}'", testString, result)); 367Assert.True(String.Equals(testString, result), String.Format("Error: Expected test string: '{0}' but got '{1}'", testString, result));
SemanticSearch.BuildTask (1)
src\Dependencies\Contracts\ExceptionUtilities.cs (1)
21string output = string.Format("Unexpected value '{0}' of type '{1}'", o, (o != null) ? o.GetType().FullName : "<unknown>");
System.CodeDom (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Collections (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Collections.Concurrent (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Collections.Immutable (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Collections.NonGeneric (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Collections.Specialized (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.ComponentModel.Annotations (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.ComponentModel.Composition (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.ComponentModel.Composition.Registration (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.ComponentModel.EventBasedAsync (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.ComponentModel.Primitives (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.ComponentModel.TypeConverter (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Composition.Convention (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Composition.Hosting (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Composition.Runtime (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Composition.TypedParts (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Configuration.ConfigurationManager (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Console (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Data.Common (3)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System\Data\Common\DataCommonEventSource.cs (2)
38Trace(string.Format(format, arg0, arg1)); 88internal long EnterScope<T1, T2>(string format, T1 arg1, T2 arg2) => Log.IsEnabled() ? EnterScope(string.Format(format, arg1, arg2)) : 0;
System.Data.Odbc (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Data.OleDb (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Diagnostics.DiagnosticSource (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Diagnostics.EventLog (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Diagnostics.FileVersionInfo (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Diagnostics.PerformanceCounter (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Diagnostics.Process (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Diagnostics.TextWriterTraceListener (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Diagnostics.TraceSource (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.DirectoryServices (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.DirectoryServices.AccountManagement (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.DirectoryServices.Protocols (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Drawing.Common (1)
Special\SR.cs (1)
56: string.Format(resourceFormat, p1, p2);
System.Drawing.Primitives (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Formats.Asn1 (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Formats.Cbor (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Formats.Nrbf (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Formats.Tar (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.IO.Compression (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.IO.Compression.Brotli (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.IO.Compression.ZipFile (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.IO.FileSystem.AccessControl (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.IO.FileSystem.DriveInfo (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.IO.FileSystem.Watcher (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.IO.Hashing (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.IO.IsolatedStorage (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.IO.MemoryMappedFiles (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.IO.Packaging (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.IO.Pipelines (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.IO.Pipes (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.IO.Pipes.AccessControl (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.IO.Ports (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Linq (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Linq.AsyncEnumerable (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Linq.Expressions (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Linq.Parallel (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Linq.Queryable (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Management (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Memory (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Memory.Data (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Net.Http (2)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
177case 2: return string.Format(s.Format, Format(s.GetArgument(0)), Format(s.GetArgument(1)));
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Net.Http.Json (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Net.Http.WinHttpHandler (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Net.HttpListener (2)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
177case 2: return string.Format(s.Format, Format(s.GetArgument(0)), Format(s.GetArgument(1)));
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Net.Mail (2)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
177case 2: return string.Format(s.Format, Format(s.GetArgument(0)), Format(s.GetArgument(1)));
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Net.NameResolution (2)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
177case 2: return string.Format(s.Format, Format(s.GetArgument(0)), Format(s.GetArgument(1)));
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Net.NetworkInformation (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Net.Ping (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Net.Primitives (2)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
177case 2: return string.Format(s.Format, Format(s.GetArgument(0)), Format(s.GetArgument(1)));
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Net.Quic (2)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
177case 2: return string.Format(s.Format, Format(s.GetArgument(0)), Format(s.GetArgument(1)));
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Net.Requests (2)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
177case 2: return string.Format(s.Format, Format(s.GetArgument(0)), Format(s.GetArgument(1)));
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Net.Security (2)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
177case 2: return string.Format(s.Format, Format(s.GetArgument(0)), Format(s.GetArgument(1)));
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Net.ServerSentEvents (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Net.Sockets (2)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
177case 2: return string.Format(s.Format, Format(s.GetArgument(0)), Format(s.GetArgument(1)));
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Net.WebClient (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Net.WebHeaderCollection (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Net.WebSockets (2)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
177case 2: return string.Format(s.Format, Format(s.GetArgument(0)), Format(s.GetArgument(1)));
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Net.WebSockets.Client (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Numerics.Tensors (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.ObjectModel (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Private.CoreLib (2)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
src\System\IO\FileLoadException.CoreCLR.cs (1)
31return string.Format(format!, fileName, message);
System.Private.DataContractSerialization (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Private.Uri (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Private.Windows.Core (4)
System\Private\Windows\BinaryFormat\Deserializer\ClassRecordFieldInfoDeserializer.cs (1)
60throw new SerializationException(string.Format(SR.Serialization_MissingField, field.Name, field.DeclaringType!.Name));
System\Private\Windows\Ole\ClipboardCore.cs (1)
271throw new NotSupportedException(string.Format(
System\Private\Windows\Ole\DataObjectExtensions.cs (1)
26throw new ArgumentException(string.Format(SR.Clipboard_InvalidPath, path ?? "<null>", nameof(filePaths)));
Windows\Win32\Graphics\GdiPlus\StatusExtensions.cs (1)
62return new ArgumentException(string.Format(SR.GdiplusFontStyleNotFound, "?", "?"));
System.Private.Xml (2)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System\Xml\Serialization\SchemaImporter.cs (1)
148throw new InvalidOperationException(string.Format(error, name.Name, name.Namespace));
System.Private.Xml.Linq (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Reflection.Context (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Reflection.DispatchProxy (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Reflection.Emit (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Reflection.Metadata (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Reflection.MetadataLoadContext (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Reflection.TypeExtensions (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Resources.Extensions (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Resources.Writer (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Runtime.Caching (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Runtime.InteropServices (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Runtime.InteropServices.JavaScript (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Runtime.Numerics (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Runtime.Serialization.Formatters (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Runtime.Serialization.Primitives (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Runtime.Serialization.Schema (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Security.AccessControl (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Security.Claims (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Security.Cryptography (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Security.Cryptography.Cose (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Security.Cryptography.Pkcs (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Security.Cryptography.ProtectedData (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Security.Cryptography.Xml (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Security.Permissions (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Security.Principal.Windows (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.ServiceModel.Federation (1)
src\Common\src\System\SR.cs (1)
51return String.Format(resourceFormat, p1, p2);
System.ServiceModel.NetFramingBase (1)
src\Common\src\System\SR.cs (1)
51return String.Format(resourceFormat, p1, p2);
System.ServiceModel.NetNamedPipe (1)
src\Common\src\System\SR.cs (1)
51return String.Format(resourceFormat, p1, p2);
System.ServiceModel.NetTcp.Tests (3)
Channels\TcpTransportBindingElementTest.cs (1)
19Assert.True(String.Equals(element.Scheme, "net.tcp"), String.Format("Scheme property expected '{0}' but actual was '{1}'", "net.tcp", element.Scheme));
ServiceModel\MessageSecurityOverTcpTest.cs (1)
51string.Format("ClientCredentialType returned '{0}' but expected '{1}'", credentialType, actual));
ServiceModel\TcpTransportSecurityTest.cs (1)
20String.Format("ClientCredentialType should have been '{0}' but was '{1}'", TcpClientCredentialType.Windows, transport.ClientCredentialType));
System.ServiceModel.Primitives.Tests (56)
Channels\BehaviorExtensionTest.cs (2)
46String.Format("Expected body to be '{0}' but actual was '{1}'", testMessageBody, result)); 80String.Format("Expected body to be '{0}' but actual was '{1}'", testMessageBody, result));
Channels\CommunicationObjectTest.cs (13)
36String.Format("Expected open methods to be '{0}' but actual was '{1}'.", 42String.Format("Expected close methods to be '{0}' but actual was '{1}'.", 72String.Format("Expected open methods to be '{0}' but actual was '{1}'.", 78String.Format("Expected close methods to be '{0}' but actual was '{1}'.", 100String.Format("Expected close methods to be '{0}' but actual was '{1}'.", 128String.Format("Expected open events to be '{0}' but actual was '{1}'.", 134String.Format("Expected close events to be '{0}' but actual was '{1}'.", 163String.Format("Expected open events to be '{0}' but actual was '{1}'.", 169String.Format("Expected close events to be '{0}' but actual was '{1}'.", 323String.Format("Expected exception message '{0}' but actual was '{1}'", 350String.Format("Expected exception message '{0}' but actual was '{1}'", 377String.Format("Expected exception message '{0}' but actual was '{1}'", 408String.Format("Expected exception message '{0}' but actual was '{1}'",
Channels\CustomChannelTest.cs (19)
76String.Format("Expected body to be '{0}' but actual was '{1}'", testMessageBody, result)); 83String.Format("Expected channel open methods to be '{0}' but actual was '{1}'.", 88String.Format("Expected channel close methods to be '{0}' but actual was '{1}'.", 93String.Format("Expected factory open methods to be '{0}' but actual was '{1}'.", 98String.Format("Expected factory close methods to be '{0}' but actual was '{1}'.", 173String.Format("Expected body to be '{0}' but actual was '{1}'", testMessageBody, result)); 180String.Format("Expected channel open methods to be '{0}' but actual was '{1}'.", 185String.Format("Expected channel close methods to be '{0}' but actual was '{1}'.", 190String.Format("Expected factory open methods to be '{0}' but actual was '{1}'.", 195String.Format("Expected factory close methods to be '{0}' but actual was '{1}'.", 252String.Format("Expected exception message to be '{0}' but actual was '{1}'", 307String.Format("Expected exception message to be '{0}' but actual was '{1}'", 366String.Format("Expected body to be '{0}' but actual was '{1}'", testMessageBody, result)); 373String.Format("Expected channel open methods to be '{0}' but actual was '{1}'.", 378String.Format("Expected channel close methods to be '{0}' but actual was '{1}'.", 383String.Format("Expected factory open methods to be '{0}' but actual was '{1}'.", 388String.Format("Expected factory close methods to be '{0}' but actual was '{1}'.", 472String.Format("Expected exception message '{0}' but actual was '{1}'", 726String.Format("Expected exception message to be '{0}' but actual was '{1}'",
ServiceModel\ChannelFactoryTest.cs (11)
40String.Format("Channel type '{0}' was not assignable to '{1}'", channel.GetType(), typeof(IRequestChannel))); 44String.Format("Channel type '{0}' was not assignable to '{1}'", channel2.GetType(), typeof(IRequestChannel))); 97String.Format("Channel type '{0}' was not assignable to '{1}'", channel.GetType(), typeof(IRequestChannel))); 101String.Format("Channel type '{0}' was not assignable to '{1}'", channel2.GetType(), typeof(IRequestChannel))); 153String.Format("Channel type '{0}' was not assignable to '{1}'", channel.GetType(), typeof(IRequestChannel))); 197String.Format("Channel type '{0}' was not assignable to '{1}'", channel.GetType(), typeof(IRequestChannel))); 219string.Format("factory.State - Expected: {0}, Actual: {1}.", CommunicationState.Created, factory.State)); 223string.Format("factory.State - Expected: {0}, Actual: {1}.", CommunicationState.Opened, factory.State)); 227string.Format("factory.State - Expected: {0}, Actual: {1}.", CommunicationState.Closed, factory.State)); 258string.Format("AllowCookies was '{0}', 'cookieManager != null' was expected to be '{0}', but it was '{1}'.", allowCookies, cookieManager != null)); 263string.Format("AllowCookies was '{0}', 'cookieManager.CookieContainer != null' was expected to be '{0}', but it was '{1}'.", allowCookies, cookieManager != null));
ServiceModel\DuplexChannelFactoryTest.cs (2)
230String.Format("Channel type '{0}' was not assignable to '{1}'", channel.GetType(), typeof(IDuplexChannel))); 234String.Format("Channel type '{0}' was not assignable to '{1}'", channel2.GetType(), typeof(IDuplexChannel)));
ServiceModel\MessageContractTest.4.4.0.cs (2)
36String.Format("Set Name to '{0}' but getter returned '{1}'", name, attribute.Name)); 294String.Format("TestProperty expected = '{0}' actual = '{1}'",
ServiceModel\SynchronizedCollection.cs (7)
21Assert.True(coll.Count == size, string.Format("collection count was wrong! Expected: {0} got: {1}", size, coll.Count)); 26Assert.True(coll.IndexOf(i) == i, string.Format("coll IndexOf wasn't right! Expected: {0} got: {1}" , i, coll.IndexOf(i))); 33Assert.True(coll2[i] == i, string.Format("coll2 element was wrong! expected: {0} got: {1} ", i, coll2[i])); 49Assert.True(e.Current.Equals(n++), string.Format("Expected: {0}, got:{1}", n-1, e.Current)); 52Assert.True(n == 100, string.Format("Expect number of elements: {0}, got:{1}", 100, n)); 65Assert.True(coll.Count == size, string.Format("Expect number of elements after modification: {0}, got: {1}", size, coll.Count)); 69Assert.True(coll[i] == i, string.Format("coll element was wrong after modification! Expected: {0} got: {1} ", i, coll[i]));
System.ServiceModel.Syndication (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.ServiceModel.UnixDomainSocket (1)
src\Common\src\System\SR.cs (1)
51return String.Format(resourceFormat, p1, p2);
System.ServiceModel.UnixDomainSocket.Tests (2)
Channels\UnixDomainSocketTransportBindingElementTest.cs (1)
19Assert.True(String.Equals(element.Scheme, "net.uds"), String.Format("Scheme property expected '{0}' but actual was '{1}'", "net.uds", element.Scheme));
ServiceModel\UnixDomainSocketTransportSecurityTest.cs (1)
20String.Format("ClientCredentialType should have been '{0}' but was '{1}'", UnixDomainSocketClientCredentialType.Default, transport.ClientCredentialType));
System.ServiceProcess.ServiceController (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Speech (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Text.Encoding.CodePages (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Text.Encodings.Web (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Text.Json (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Text.Json.SourceGeneration (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Text.RegularExpressions (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Text.RegularExpressions.Generator (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Threading (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Threading.AccessControl (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Threading.Channels (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Threading.RateLimiting (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Threading.Tasks.Dataflow (2)
Internal\Common.cs (1)
137return string.Format(options.NameFormat, blockName, blockId);
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Threading.Tasks.Parallel (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Transactions.Local (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Web.Services.Description (1)
src\Common\src\System\SR.cs (1)
51return String.Format(resourceFormat, p1, p2);
System.Windows.Controls.Ribbon (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
95return string.Format(resourceFormat, p1, p2);
System.Windows.Extensions (1)
src\libraries\Common\src\System\SR.cs (1)
82return string.Format(resourceFormat, p1, p2);
System.Windows.Forms (73)
System\Resources\ResXDataNode.cs (2)
88throw new InvalidOperationException(string.Format(SR.NotSerializableType, name, valueType.FullName)); 242throw new InvalidOperationException(string.Format(SR.NotSerializableType, _name, valueType.FullName));
System\Windows\Forms\Accessibility\AccessibleObject.cs (1)
591string message = string.Format(SR.AccessibleObjectRuntimeIdNotSupported, nameof(AccessibleObject), nameof(RuntimeId));
System\Windows\Forms\Control.cs (3)
5597string.Format(SR.ParentPropertyNotSetInGetNextControl, nameof(Parent), ctl)); 5600string.Format(SR.ControlsPropertyNotSetInGetNextControl, nameof(Controls), parent)); 5606throw new InvalidOperationException(string.Format(
System\Windows\Forms\Controls\Buttons\ButtonBase.ButtonBaseAccessibleObject.cs (1)
13: throw new ArgumentException(string.Format(SR.ConstructorArgumentInvalidValueType, nameof(owner), typeof(ButtonBase))))
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (2)
138Debug.Fail(string.Format(SR.InvalidArgument, nameof(composition), composition.ToString())); 169Debug.Fail(string.Format(SR.InvalidArgument, nameof(composition), composition.ToString()));
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
4962string.Format(
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
10748throw new InvalidOperationException(string.Format(SR.DataGridViewColumn_SortModeAndSelectionModeClash, DataGridViewColumnSortMode.Automatic.ToString(), SelectionMode.ToString())); 10878throw new InvalidOperationException(string.Format( 15378throw new InvalidOperationException(string.Format(
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (3)
132string.Format( 285string.Format( 303string.Format(
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (4)
1685throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(constraintSize), constraintSize)); 1707throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(constraintSize), constraintSize)); 1781throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(rowIndex), rowIndex)); 1806throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(rowIndex), rowIndex));
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
64string name = string.Format(SR.DataGridView_AccDataGridViewCellName, _owner.OwningColumn.HeaderText, rowIndex).Trim();
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
730throw new InvalidOperationException(string.Format(SR.DataGridViewColumn_SortModeAndSelectionModeClash, (value).ToString(), DataGridView.SelectionMode.ToString()));
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
386string.Format(SR.DataGridViewComboBoxCell_MaxDropDownItemsOutOfRange, 1, 100));
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (3)
236throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(rowIndex), rowIndex), nameof(rowIndex)); 241throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(rowIndex), rowIndex), nameof(rowIndex)); 367throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(rowIndex), rowIndex), nameof(rowIndex));
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (1)
1379throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(rowIndex), rowIndex), nameof(rowIndex));
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
151throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(ImageSize), "Size.Empty"), nameof(value));
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (1)
67string.Format(
System\Windows\Forms\Controls\Labels\LinkConverter.cs (1)
63string.Format(
System\Windows\Forms\Controls\ListView\ListView.CheckedIndexCollection.cs (1)
95throw new ArgumentOutOfRangeException(nameof(index), index, string.Format(SR.InvalidArgument, nameof(index), index));
System\Windows\Forms\Controls\ListView\ListView.ColumnHeaderCollection.cs (1)
510throw new ArgumentOutOfRangeException(nameof(index), index, string.Format(SR.InvalidArgument, nameof(index), index));
System\Windows\Forms\Controls\ListView\ListView.cs (5)
1862throw new ArgumentException(string.Format(SR.ListViewVirtualListSizeInvalidArgument, "value", value)); 2256throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(value), value), nameof(value)); 3222throw new ArgumentOutOfRangeException(nameof(searchDirection), searchDirection, string.Format(SR.InvalidArgument, nameof(searchDirection), searchDirection)); 3594string.Format(SR.InvalidArgument, nameof(index), index)) 3671string.Format(SR.InvalidArgument, nameof(itemIndex), itemIndex))
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (1)
423throw new ArgumentOutOfRangeException(nameof(index), index, string.Format(SR.InvalidArgument, nameof(index), index));
System\Windows\Forms\Controls\ListView\ListView.SelectedIndexCollection.cs (2)
224throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(value), value), nameof(value)); 246throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(value), value), nameof(value));
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (3)
1746string.Format(SR.MonthCalendarRange, minDate.ToShortDateString(), maxDate.ToShortDateString())); 1760throw new ArgumentOutOfRangeException(nameof(x), string.Format(SR.MonthCalendarInvalidDimensions, (x).ToString("D", CultureInfo.CurrentCulture), (y).ToString("D", CultureInfo.CurrentCulture))); 1765throw new ArgumentOutOfRangeException(nameof(y), string.Format(SR.MonthCalendarInvalidDimensions, (x).ToString("D", CultureInfo.CurrentCulture), (y).ToString("D", CultureInfo.CurrentCulture)));
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (1)
72throw new ArgumentException(string.Format(SR.TextParseFailedFormat,
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
920throw new ArgumentException(string.Format(SR.PropertyGridSetNull, count, value.Length));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\ImmutablePropertyDescriptorGridEntry.cs (1)
79string.Format(SR.ExceptionCreatingObject, InstanceParentGridEntry?.PropertyType?.FullName, e),
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
522throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(ItemSize), value)); 591throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(Padding), value));
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.ToolStripContainerTypedControlCollection.cs (1)
37throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, string.Format(SR.TypedControlCollectionShouldBeOfTypes, _contentPanelType.Name, _panelType.Name)), value.GetType().Name);
System\Windows\Forms\Controls\UpDown\DomainUpDown.DomainUpDownItemCollection.cs (1)
73throw new ArgumentOutOfRangeException(nameof(item), item, string.Format(SR.InvalidArgument, nameof(item), item));
System\Windows\Forms\Controls\WebBrowser\HtmlWindowCollection.cs (1)
70throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(windowId), windowId), nameof(windowId));
System\Windows\Forms\DataBinding\PropertyManager.cs (1)
42throw new ArgumentException(string.Format(SR.PropertyManagerPropDoesNotExist, _propName, dataSource));
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogPage.cs (3)
747throw new InvalidOperationException(string.Format( 758throw new InvalidOperationException(string.Format( 771throw new InvalidOperationException(string.Format(
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogRadioButton.cs (1)
206throw new InvalidOperationException(string.Format(
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
155messageText = string.Format(messageFormat, t.GetType().Name, Trim(messageText));
System\Windows\Forms\Help\Help.cs (1)
187throw new ArgumentException(string.Format(SR.InvalidArgument, nameof(param), "Integer"), nameof(param));
System\Windows\Forms\Input\Cursor.cs (1)
435throw new ArgumentException(string.Format(SR.InvalidPictureType, nameof(picture), nameof(Cursor)), paramName);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (6)
1261throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(Panel1MinSize), value)); 1268throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(Panel1MinSize), value)); 1290throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(Panel2MinSize), value.ToString())); 1297throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(Panel2MinSize), value)); 1319throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(SplitterWidth), value)); 1326throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(SplitterWidth), value));
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanelCellPositionTypeConverter.cs (1)
51string.Format(
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (4)
33throw new ArgumentException(string.Format(SR.InvalidArgumentType, nameof(style), typeof(TableLayoutStyle)), nameof(style)); 48throw new ArgumentException(string.Format(SR.InvalidArgumentType, nameof(style), typeof(TableLayoutStyle)), nameof(style)); 65throw new ArgumentException(string.Format(SR.InvalidArgumentType, nameof(value), typeof(TableLayoutStyle)), nameof(value)); 90throw new ArgumentException(string.Format(SR.InvalidArgumentType, nameof(style), typeof(TableLayoutStyle)), nameof(style));
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.BackgroundThread.cs (1)
90_dialog!._messageLabel.Text = string.Format(
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
105throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidArgument, nameof(AutoScrollMargin), value));
System\Windows\Forms\Timer.cs (1)
144throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.TimerInvalidInterval, value, 0));
System.Windows.Forms.Analyzers.CSharp (1)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ProjectFileReader.FontConverter.cs (1)
81throw new ArgumentException(string.Format(SR.TextParseFailedFormat,
System.Windows.Forms.Design (38)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
670?? throw new InvalidOperationException(string.Format(
System\ComponentModel\Design\DesignerActionPanel.MethodLine.cs (1)
76ActionPanel.ShowError(string.Format(SR.DesignerActionPanel_ErrorInvokingAction, _methodItem!.DisplayName, Environment.NewLine + ex.Message));
System\ComponentModel\Design\DesignerActionPanel.PropertyLine.cs (1)
59ActionPanel.ShowError(string.Format(SR.DesignerActionPanel_CouldNotConvertValue, newValue, PropertyDescriptor.PropertyType));
System\ComponentModel\Design\DesignerHost.cs (1)
196throw new InvalidOperationException(string.Format(
System\ComponentModel\Design\DesignerHost.DesignerHostTransaction.cs (2)
40throw new InvalidOperationException(string.Format(SR.DesignerHostNestedTransaction, Description, nestedDescription)); 73throw new InvalidOperationException(string.Format(SR.DesignerHostNestedTransaction, Description, nestedDescription));
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (2)
146throw new ArgumentException(string.Format(SR.EventBindingServiceBadArgType, Name, nameof(String))) 215transaction = host.CreateTransaction(string.Format(SR.EventBindingServiceSetValue, site.Name, name));
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (3)
241failures.Add(string.Format(SR.CodeDomDesignerLoaderDocumentFailureTypeNotFound, typeDeclaration.Name, typeReference.BaseType)); 311failures.Add(string.Format(SR.CodeDomDesignerLoaderDocumentFailureTypeDesignerNotInstalled, typeDeclaration.Name, baseType.FullName)); 315failures.Add(string.Format(SR.CodeDomDesignerLoaderDocumentFailureTypeNotDesignable, typeDeclaration.Name, baseType.FullName));
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (1)
88throw new ArgumentException(string.Format(SR.SerializerBadElementTypes, codeObject.GetType().Name, supportedTypes));
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (5)
507Error(manager, string.Format(SR.SerializerNoSuchEvent, targetObject.GetType().FullName, statement.Event.EventName), SR.SerializerNoSuchEvent); 600Error(manager, string.Format(SR.SerializerNoSuchField, lhs.GetType().FullName, fieldReferenceEx.FieldName), SR.SerializerNoSuchField); 1242Error(manager, string.Format(SR.SerializerNoSuchEvent, targetObject.GetType().FullName, eventName), SR.SerializerNoSuchEvent); 1531Error(manager, string.Format(SR.SerializerNoSuchProperty, typeName, propertyReferenceEx.PropertyName), SR.SerializerNoSuchProperty); 1628Error(manager, string.Format(SR.SerializerNoSuchProperty, lhs.GetType().FullName, propertyReferenceEx.PropertyName), SR.SerializerNoSuchProperty);
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (2)
392SerializationException ex = new(string.Format(SR.SerializationManagerNoMatchingCtor, type.FullName, argTypes)) 936throw new ArgumentException(string.Format(SR.SerializationManagerObjectHasName, name, instanceName), nameof(instance));
System\ComponentModel\Design\Serialization\EventMemberCodeDomSerializer.cs (1)
69manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerPropertyGenFailed, eventToSerialize.Name, e.Message), manager));
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (3)
57manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerPropertyGenFailed, property.Name, e.Message), manager)); 123manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerPropertyGenFailed, propertyToSerialize.Name, e.Message), manager)); 141manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerNullNestedProperty, name, property.Name), manager));
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.cs (1)
112throw new ArgumentException(string.Format(SR.SerializerBadElementTypes, codeObject.GetType().Name, supportedTypes));
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (1)
263: (Exception)new SerializationException(string.Format(SR.SerializerResourceException, culture.ToString(), message), e);
System\ComponentModel\Design\UndoEngine.cs (2)
386name = string.Format(SR.UndoEngineComponentChange2, GetName(e.Component, true), e.Member.Name); 502string name = string.Format(SR.UndoEngineComponentRename, e.OldName, e.NewName);
System\Drawing\Design\ToolboxItem.cs (1)
752throw new ArgumentException(string.Format(SR.ToolboxItemInvalidPropertyType, propertyName, expectedType.FullName), nameof(value));
System\Resources\Tools\StronglyTypedResourceBuilder.cs (2)
174throw new ArgumentException(string.Format(SR.MismatchedResourceName, keyname, node.Name)); 779text = string.Format(SR.NonStringPropertyDetailedComment, typeName, valueAsString);
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (1)
119_resizeTransaction = host.CreateTransaction(string.Format(SR.TableLayoutPanelRowColResize, (isColumn ? "Column" : "Row"), _designer.Control.Site.Name));
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
229uiService.ShowError(ex, string.Format(SR.FailedToCreateComponent, tool.DisplayName, exceptionMessage));
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
255throw new ArgumentException(string.Format(SR.InvalidArgument, 2356string error = string.Format(SR.DesignerCantParentType, component.GetType().Name, Component.GetType().Name);
System\Windows\Forms\Design\TabControlDesigner.cs (1)
340t = host.CreateTransaction(string.Format(SR.TabControlRemoveTab, ((IComponent)tp).Site.Name, Component.Site.Name));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
524trans = host.CreateTransaction(string.Format(SR.TableLayoutPanelDesignerControlsSwapped, control.Site.Name, existingControl.Site.Name));
System\Windows\Forms\Design\TextBoxActionList.cs (1)
29string.Format(SR.MultiLineDisplayName, SR.PropertiesCategoryName, SR.MultiLineDescription)),
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
126throw new ArgumentException(string.Format(SR.InvalidArgument, "DropDown", value.ToString()));
System.Windows.Forms.Primitives (2)
System\Windows\Forms\Internals\ScaleHelper.cs (1)
360?? throw new ArgumentException(string.Format(SR.ResourceNotFound, type, resource));
System\Windows\Forms\PaddingConverter.cs (1)
40: throw new ArgumentException(string.Format(SR.TextParseFailedFormat, stringValue, "left, top, right, bottom"), nameof(value));
System.Windows.Input.Manipulations (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
95return string.Format(resourceFormat, p1, p2);
System.Xaml (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
95return string.Format(resourceFormat, p1, p2);
UIAutomationClient (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
95return string.Format(resourceFormat, p1, p2);
UIAutomationClientSideProviders (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
95return string.Format(resourceFormat, p1, p2);
UIAutomationProvider (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
95return string.Format(resourceFormat, p1, p2);
UIAutomationTypes (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
95return string.Format(resourceFormat, p1, p2);
UnitTests.Common (2)
TestHelpers.cs (2)
144errorBuilder.AppendLine(String.Format("{0} operations: could not find operation {1}", prefix, expectedOp.Name)); 213errorBuilder.AppendLine(String.Format("{0} unexpected exception was caught: {1}",
VisualBasicSyntaxGenerator (6)
GreenNodes\GreenNodeFactoryWriter.vb (1)
178GenerateParameterXmlComment(_writer, "kind", String.Format("A <see cref=""SyntaxKind""/> representing the specific kind of {0}. One of {1}.", nodeStructure.Name, kindsList))
RedNodes\RedNodeFactoryWriter.vb (2)
345GenerateParameterXmlComment(_writer, "kind", String.Format("A <see cref=""SyntaxKind""/> representing the specific kind of {0}. One of {1}.", nodeStructure.Name, kindsList)) 671GenerateParameterXmlComment(_writer, "kind", String.Format("A <see cref=""SyntaxKind""/> representing the specific kind of {0}. One of {1}.", nodeStructure.Name, kindsList))
Tests\TestWriter.vb (3)
302callTokens.Add(String.Format("CType(Nothing, {0}{1})", namespacePrefix, ChildFieldTypeRef(child))) 364result = String.Format("SyntaxFactory.SingletonSeparatedList(Of {0}({1})", BaseTypeReference(child), result) 366result = String.Format("SyntaxFactory.SingletonList(Of {0})({1})", BaseTypeReference(child), result)
WindowsFormsIntegration (1)
src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
95return string.Format(resourceFormat, p1, p2);
XmlFileLogger (5)
ObjectModel\Project.cs (1)
145return string.Format("{0} - {1}", Id, Name);
ObjectModel\Target.cs (1)
120return string.Format("{0} - {1}", Id, Name);
ObjectModel\Task.cs (1)
84return string.Format("{0} - {1}", Id, Name);
XmlFileLogger.cs (2)
63_build.AddMessage(args, string.Format("Error {0}: {1}", args.Code, args.Message)); 68_build.AddMessage(args, string.Format("Warning {0}: {1}", args.Code, args.Message));