3511 references to Format
Aspire.Cli.Tests (14)
Commands\AddCommandTests.cs (10)
2166Assert.Equal(string.Format(AddCommandStrings.NoPackagesMatchedSearchTerm, "nonexistentpackage"), displayedSubtleMessage); 3244Assert.Equal(string.Format(AddCommandStrings.PolyglotIntegrationsHidden, 1), displayedSubtleMessage); 3340Assert.Contains(string.Format(AddCommandStrings.NoIntegrationPackagesMatchedSearchTerm, "zzznomatch"), testInteractionService.DisplayedErrors); 3342Assert.Equal(string.Format(AddCommandStrings.PolyglotIntegrationsHidden, 1), displayedSubtleMessage); 3732Assert.Contains(string.Format(AddCommandStrings.NonInteractiveRequiresExactPackageMatch, "kube"), testInteractionService.DisplayedErrors); 3907Assert.Equal(string.Format(AddCommandStrings.NoPackagesMatchedSearchTerm, "zzzzzzzzzz"), displayedSubtleMessage); 3961Assert.Contains(string.Format(AddCommandStrings.SpecifiedVersionRequiresExactPackageMatch, "postgre"), testInteractionService.DisplayedErrors); 4013Assert.Contains(string.Format(AddCommandStrings.SpecifiedVersionRequiresExactPackageMatch, "nonexistentpackage"), testInteractionService.DisplayedErrors); 4352Assert.Equal(string.Format(AddCommandStrings.NoPackagesMatchedSearchTerm, "nonexistentpackage"), displayedSubtleMessage); 4440Assert.Equal(string.Format(AddCommandStrings.NoPackagesMatchedSearchTerm, "nonexistentpackage"), displayedSubtleMessage);
Commands\StopCommandTests.cs (4)
112string.Format(SharedCommandStrings.AppHostNotRunningAtPath, Path.Combine("Resolved.AppHost", "Resolved.AppHost.csproj")), 304string.Format(SharedCommandStrings.AppHostNotRunningAtPath, Path.Combine("AppHost", "AppHost.csproj")), 498Assert.Contains(interactionService.DisplayedMessages, message => message.Message == string.Format(SharedCommandStrings.AppHostNotRunningAtPath, Path.Combine("AppHost", "AppHost.csproj"))); 889string.Format(SharedCommandStrings.AppHostNotRunningAtPath, Path.Combine("AppHost", "apphost.ts")),
Aspire.Hosting.Tests (5)
AddParameterTests.cs (5)
432Assert.Equal(string.Format(InteractionStrings.ParametersInputsParameterPlaceholder, "test"), input.Placeholder); 451Assert.Equal(string.Format(InteractionStrings.ParametersInputsParameterPlaceholder, "test"), input.Placeholder); 485Assert.Equal(string.Format(InteractionStrings.ParametersInputsParameterPlaceholder, "secret"), input.Placeholder); 668Assert.Equal(string.Format(InteractionStrings.ParametersInputsParameterPlaceholder, "api-key"), input.Placeholder); 692Assert.Equal(string.Format(InteractionStrings.ParametersInputsParameterPlaceholder, "worker-count"), input.Placeholder);
Client.ChannelLayer.IntegrationTests (1)
DuplexChannelWithSynchronizationContext.cs (1)
282throw new TimeoutException(string.Format("Not completed within the alloted time of {0}", ScenarioTestHelpers.TestTimeout));
Client.ClientBase.IntegrationTests (38)
ChannelBaseTests.4.0.0.cs (5)
196String.Format("Expected client NOT to receive events but actual was '{0}'", actual)); 200String.Format("Expected proxy NOT to receive events but actual was '{0}'", actual)); 246String.Format("Expected client state to be Closed but actual was '{0}'", client.State)); 250String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).State)); 254String.Format("Expected channel factory state to be Closed but actual was '{0}'", factory.State));
ClientBaseTests.4.0.0.cs (33)
220String.Format("Expected client state to be Created but actual was '{0}'", client.State)); 223String.Format("Expected channel factory state to be Created but actual was '{0}'", factory.State)); 242String.Format("Expected client state to be Opened but actual was '{0}'", client.State)); 245String.Format("Expected channel factory state to be Opened but actual was '{0}'", factory.State)); 248String.Format("Expected proxy state to be Opened but actual was '{0}'", ((ICommunicationObject)serviceProxy).State)); 257String.Format("Expected client state to be Closed but actual was '{0}'", client.State)); 261String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).State)); 265String.Format("Expected channel factory state to be Closed but actual was '{0}'", factory.State)); 295String.Format("Expected client state to be Created but actual was '{0}'", client.State)); 298String.Format("Expected channel factory state to be Created but actual was '{0}'", factory.State)); 318String.Format("Expected client state to be Opened but actual was '{0}'", client.State)); 321String.Format("Expected channel factory state to be Opened but actual was '{0}'", factory.State)); 324String.Format("Expected proxy state to be Opened but actual was '{0}'", ((ICommunicationObject)serviceProxy).State)); 334String.Format("Expected client state to be Closed but actual was '{0}'", client.State)); 338String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).State)); 342String.Format("Expected channel factory state to be Closed but actual was '{0}'", factory.State)); 374String.Format("Expected client state to be Created but actual was '{0}'", client.State)); 377String.Format("Expected channel factory state to be Created but actual was '{0}'", factory.State)); 397String.Format("Expected client state to be Opened but actual was '{0}'", client.State)); 400String.Format("Expected channel factory state to be Opened but actual was '{0}'", factory.State)); 403String.Format("Expected proxy state to be Opened but actual was '{0}'", ((ICommunicationObject)serviceProxy).State)); 413String.Format("Expected client state to be Closed but actual was '{0}'", client.State)); 417String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).State)); 421String.Format("Expected channel factory state to be Closed but actual was '{0}'", factory.State)); 463String.Format("Expected client state to be Closed but actual was '{0}'", client.State)); 467String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).State)); 471String.Format("Expected channel factory state to be Closed but actual was '{0}'", factory.State)); 514String.Format("Expected client state to be Closed but actual was '{0}'", client.State)); 518String.Format("Expected proxy state to be Closed but actual was '{0}'", ((ICommunicationObject)serviceProxy).State)); 522String.Format("Expected channel factory state to be Closed but actual was '{0}'", factory.State)); 669String.Format("Expected client NOT to receive events but actual was '{0}'", actual)); 673String.Format("Expected proxy NOT to receive events but actual was '{0}'", actual)); 799Assert.True(string.Empty == outofScopeResult, string.Format("Expect call out of the OperationContextScope does not have the custom header {0}", customHeaderName));
Client.ExpectedExceptions.IntegrationTests (10)
ExpectedExceptionTests.4.0.0.cs (2)
363Assert.True(toe == null, String.Format("Task [{0}] should not have failed with TimeoutException", i)); 368String.Format("Expected at least one operation to throw an exception, but none did. Elapsed time = {0} ms.",
ExpectedExceptionTests.4.1.0.cs (8)
259throw new TimeoutException(String.Format("The call to the Service did not complete within the alloted time of: {0}", ScenarioTestHelpers.TestTimeout)); 311throw new TimeoutException(String.Format("The call to the Service did not complete within the alloted time of: {0}", ScenarioTestHelpers.TestTimeout)); 363Assert.Fail(string.Format("Expected type SecurityNegotiationException, Actual: {0}", exceptionType)); 405Assert.Fail(string.Format("Expected type SecurityNegotiationException, Actual: {0}", exceptionType)); 452Assert.Fail(string.Format("Expected type SecurityNegotiationException, Actual: {0}", exceptionType)); 613Assert.True(toe == null, String.Format("Task [{0}] should not have failed with TimeoutException", i)); 618String.Format("Expected at least one operation to throw an exception, but none did. Elapsed time = {0} ms.", 622String.Format("Expected at least one operation to succeed but none did. Elapsed time = {0} ms.",
Client.TypedClient.IntegrationTests (3)
TypedProxyTests.4.0.0.cs (3)
425throw new TimeoutException(string.Format("Not completed within the alloted time of {0}", maxTestWaitTime)); 481Assert.True(success, String.Format("The AsyncCallback was not called. If the AsyncCallback had been called the waitEvent would have been set to 'True', but the value of waitEvent was: {0}", success)); 517Assert.True(success, String.Format("The IAsyncResult was not called. If the IAsyncResult had been called the AsyncWaitHandle would have been set to 'True', but the value of AsyncWaitHandle was: {0}", success));
ConfigurationSchemaGenerator (2)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (2)
636initExceptionMessage = string.Format(Emitter.ExceptionMessages.MultipleParameterizedConstructors, typeSymbol.GetFullName()); 648initExceptionMessage = string.Format(Emitter.ExceptionMessages.MissingPublicInstanceConstructor, typeSymbol.GetFullName());
Contract.Fault.IntegrationTests (3)
FaultExceptionTests.4.0.0.cs (2)
253Assert.True(response[0].GetType() == typeof(FaultDetail), String.Format("Expected response item to be FaultDetail but actual was {0}", response[0].GetType())); 255Assert.True(response[1].GetType() == typeof(KnownTypeA), String.Format("Expected response item to be FaultDetail2 but actual was {0}", response[1].GetType()));
FaultExceptionTests.cs (1)
43Assert.True(TestFaultContractInfosBehavior.testFaultWithKnownTypeClientOp.FaultContractInfos.Count == 1, string.Format("expected FaultContractInfos count is 1, actual: {0}", TestFaultContractInfosBehavior.testFaultWithKnownTypeClientOp.FaultContractInfos.Count));
Contract.Message.IntegrationTests (1)
MessageContractTests.4.4.0.cs (1)
72String.Format("The {0} element returned a null array", elementName));
Contract.Service.IntegrationTests (13)
ServiceContractTests.4.0.0.cs (4)
312String.Format("Expected factory state 'Opened', actual was '{0}'", factory.State)); 366String.Format("Expected proxy state 'Opened', actual was '{0}'", proxyAsCommunicationObject.State)); 421String.Format("Expected factory state 'Closed', actual was '{0}'", factory.State)); 470String.Format("Expected proxy state 'Closed', actual was '{0}'", proxyAsCommunicationObject.State));
ServiceContractTests.4.1.0.cs (9)
703String.Format("Expected factory state 'Closed', actual was '{0}'", factory.State)); 743String.Format("Expected channel 1 state 'Closed', actual was '{0}'", ((ICommunicationObject)serviceProxy1).State)); 745String.Format("Expected channel 2 state 'Closed', actual was '{0}'", ((ICommunicationObject)serviceProxy2).State)); 793String.Format("Expected factory state 'Closed', actual was '{0}'", factory.State)); 833String.Format("Expected channel 1 state 'Closed', actual was '{0}'", ((ICommunicationObject)serviceProxy1).State)); 835String.Format("Expected channel 2 state 'Closed', actual was '{0}'", ((ICommunicationObject)serviceProxy2).State)); 884String.Format("Expected factory state 'Closed', actual was '{0}'", factory.State)); 924String.Format("Expected channel 1 state 'Closed', actual was '{0}'", ((ICommunicationObject)serviceProxy1).State)); 926String.Format("Expected channel 2 state 'Closed', actual was '{0}'", ((ICommunicationObject)serviceProxy2).State));
crossgen2 (9)
Program.cs (6)
346_ => throw new CommandLineException(string.Format(SR.UnsupportedInputFileExtension, inputFileExtension)) 418throw new Exception(string.Format(SR.ErrorMultipleInputFilesCompositeModeOnly, string.Join("; ", inputModules))); 430throw new Exception(string.Format(SR.ErrorContainerFormatRequiresComposite, format)); 505throw new CommandLineException(string.Format(SR.ErrorNonLocalGenericsModule, nonLocalGenericsModule)); 723throw new CommandLineException(string.Format(SR.ManagedCppNotSupported, inputFilePath)); 736throw new CommandLineException(string.Format(SR.TypeNotFound, typeName));
src\runtime\src\coreclr\tools\Common\InstructionSetHelpers.cs (3)
180throw new CommandLineException(string.Format(mustNotBeMessage, "")); 211throw new CommandLineException(string.Format(mustNotBeMessage, instructionSet)); 216throw new CommandLineException(string.Format(mustNotBeMessage, instructionSet));
Crossgen2Tasks (1)
ResolveReadyToRunCompilers.cs (1)
416string clrJitFileName = string.Format(v5_clrJitFileNamePattern, GetTargetSpecForVersion5());
dotnet (224)
_generated\100\WorkloadListJsonSerializerContext.g.cs (1)
83throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\107\WorkloadSearchVersionsJsonSerializerContext.g.cs (1)
83throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\118\WorkloadHistoryJsonSerializerContext.g.cs (1)
83throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\126\PackInfoJsonSerializerContext.g.cs (1)
86throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\139\NugetSearchApiJsonSerializerContext.g.cs (1)
88throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\14\CliSchemaJsonSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\149\SdkVulnerabilityJsonContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\156\SlnfJsonSerializerContext.g.cs (1)
84throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\170\TelemetryDiskLoggerJsonSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\177\LocalToolsCacheJsonSerializerContext.g.cs (1)
82throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\187\SdkVulnerabilityCacheJsonContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\32\RunFileApiJsonSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\36\CSharpCompilerCommandJsonSerializerContext.g.cs (1)
82throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\46\RunFileBuildCacheJsonSerializerContext.g.cs (1)
82throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\52\RunFileJsonSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\57\SdkCheckJsonSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\69\ToolListJsonSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\74\GlobalJsonWorkloadSetsJsonSerializerContext.g.cs (1)
84throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\79\WorkloadManifestUpdaterJsonSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\84\WorkloadInstallJsonSerializerContext.g.cs (1)
83throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\92\InstallStateJsonSerializerContext.g.cs (1)
85throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
BuildServer\RazorServer.cs (1)
52string.Format(
BuildServer\VBCSCompilerServer.cs (1)
59string.Format(
CommandFactory\CommandResolution\LocalToolsCommandResolver.cs (2)
88throw new GracefulException(string.Format(CliStrings.NeedRunToolRestore, 97throw new GracefulException(string.Format(CliStrings.NeedRunToolRestore,
CommandFactory\CommandResolution\PackagedCommandSpecFactory.cs (1)
80throw new GracefulException(string.Format(
CommandFactory\CommandResolution\ProjectDependenciesCommandResolver.cs (2)
50Reporter.Verbose.WriteLine(string.Format( 145throw new InvalidOperationException(string.Format(
CommandFactory\CommandResolution\ProjectFactory.cs (1)
78throw new GracefulException(string.Format(
CommandFactory\CommandResolution\ProjectToolsCommandResolver.cs (12)
32Reporter.Verbose.WriteLine(string.Format( 55Reporter.Verbose.WriteLine(string.Format( 95Reporter.Verbose.WriteLine(string.Format( 163Reporter.Verbose.WriteLine(string.Format( 179Reporter.Verbose.WriteLine(string.Format( 194Reporter.Verbose.WriteLine(string.Format( 327Reporter.Verbose.WriteLine(string.Format( 382Reporter.Verbose.WriteLine(string.Format(CliStrings.MSBuildArgs, 430Reporter.Verbose.WriteLine(string.Format( 434throw new GracefulException(string.Format(CliStrings.UnableToGenerateDepsJson, toolDepsJsonGeneratorProject)); 443Reporter.Verbose.WriteLine(string.Format( 453Reporter.Verbose.WriteLine(string.Format(
CommandFactory\CommandResolution\ToolPathCalculator.cs (1)
33throw new GracefulException(string.Format(
Commands\BuildServer\Shutdown\BuildServerShutdownCommand.cs (2)
117string.Format( 162string.Format(
Commands\Clean\FileBasedAppArtifacts\CleanFileBasedAppArtifactsCommand.cs (1)
68Reporter.Error.WriteLine(string.Format(CliCommandStrings.CleanFileBasedAppArtifactsDirectoryNotFound, directory.FullName).Yellow());
Commands\New\MSBuildEvaluation\CapabilityExpressionEvaluator.cs (1)
281string.Format(CliCommandStrings.CapabilityExpressionEvaluator_Exception_InvalidExpression, position),
Commands\New\MSBuildEvaluation\MSBuildEvaluationResult.cs (2)
52ErrorMessage = string.Format(CliCommandStrings.MSBuildEvaluationResult_Error_NoProjectFound, path) 60ErrorMessage = string.Format(CliCommandStrings.MSBuildEvaluationResult_Error_NotRestored, path)
Commands\New\MSBuildEvaluation\MSBuildEvaluator.cs (1)
159return result = MSBuildEvaluationResult.CreateFailure(projectPath, string.Format(CliCommandStrings.MSBuildEvaluator_Error_NoTargetFramework, projectPath));
Commands\New\MSBuildEvaluation\MultipleProjectsEvaluationResult.cs (1)
19ErrorMessage = string.Format(CliCommandStrings.MultipleProjectsEvaluationResult_Error, string.Join("; ", projectPaths))
Commands\New\MSBuildEvaluation\ProjectCapabilityConstraint.cs (6)
116_evaluationResult.ErrorMessage ?? string.Format(CliCommandStrings.MultipleProjectsEvaluationResult_Error, foundProjects), 117string.Format(CliCommandStrings.ProjectCapabilityConstraint_Restricted_MultipleProjectsFound_CTA, SharedOptionsFactory.ProjectOptionName)); 124_evaluationResult.ErrorMessage ?? string.Format(CliCommandStrings.MSBuildEvaluationResult_Error_NotRestored, _evaluationResult.ProjectPath), 125string.Format(CliCommandStrings.ProjectCapabilityConstraint_Restricted_NotRestored_CTA, _evaluationResult.ProjectPath)); 130return TemplateConstraintResult.CreateRestricted(this, string.Format(CliCommandStrings.ProjectCapabilityConstraint_Restricted_EvaluationFailed_Message, _evaluationResult.ErrorMessage)); 135return TemplateConstraintResult.CreateRestricted(this, string.Format(CliCommandStrings.ProjectCapabilityConstraint_Restricted_NonSDKStyle_Message, _evaluationResult.ProjectPath));
Commands\New\PostActions\DotnetAddPostActionProcessor.cs (5)
62Reporter.Error.WriteLine(string.Format("\t{0}", projectFile)); 144Reporter.Error.WriteLine(string.Format(CliCommandStrings.PostAction_AddReference_Error_FrameworkNotSupported, referenceToAdd)); 149Reporter.Error.WriteLine(string.Format(CliCommandStrings.PostAction_AddReference_Error_UnsupportedRefType, referenceType)); 179Reporter.Error.WriteLine(string.Format(CliCommandStrings.PostAction_AddReference_AddPackageReference_Failed, e.Message)); 202Reporter.Error.WriteLine(string.Format(CliCommandStrings.PostAction_AddReference_AddProjectReference_Failed, e.Message));
Commands\New\PostActions\DotnetRestorePostActionProcessor.cs (2)
51Reporter.Output.WriteLine(string.Format(CliCommandStrings.PostAction_Restore_Running, pathToRestore)); 65Reporter.Error.WriteLine(string.Format(CliCommandStrings.PostAction_Restore_RestoreFailed, e.Message));
Commands\New\PostActions\DotnetSlnPostActionProcessor.cs (1)
153Reporter.Error.WriteLine(string.Format(CliCommandStrings.PostAction_AddProjToSln_Failed, e.Message));
Commands\New\SdkInfoProvider.cs (2)
69return string.Format(CliCommandStrings.SdkInfoProvider_Message_SwitchSdk, viableInstalledVersions.ToCsvString()); 73return string.Format(CliCommandStrings.SdkInfoProvider_Message_InstallSdk, supportedVersions.ToCsvString());
Commands\Package\Add\PackageAddCommand.cs (2)
61throw new GracefulException(string.Format(CliCommandStrings.CmdDGFileIOException, projectFilePath), ioex); 130throw new GracefulException(string.Format(CliCommandStrings.CmdDGFileException, projectFilePath));
Commands\Project\Convert\ProjectConvertCommand.cs (2)
615var prompt = new TextPrompt<string>(string.Format(CliCommandStrings.ProjectConvertAskForOutputDirectory, defaultValueRelative)) 624return ValidationResult.Error(string.Format(CliCommandStrings.DirectoryAlreadyExists, pathToValidate));
Commands\Reference\Add\ReferenceAddCommand.cs (1)
174sb.AppendLine(string.Format(CliStrings.ProjectNotCompatibleWithFrameworks, project.ProjectRootElement.FullPath));
Commands\Reference\FileBasedAppReferenceEditor.cs (7)
54Reporter.Output.WriteLine(string.Format( 62Reporter.Output.WriteLine(string.Format(CliStrings.ReferenceAddedToTheProject, reference.DirectiveInclude)); 76Reporter.Output.WriteLine(string.Format( 84Reporter.Output.WriteLine(string.Format(CliStrings.ReferenceAddedToTheProject, reference.DirectiveInclude)); 105Reporter.Output.WriteLine(string.Format( 130Reporter.Output.WriteLine(string.Format(CliStrings.ProjectReferenceRemoved, directive.Name)); 148Reporter.Output.WriteLine(string.Format(CliStrings.ProjectReferenceRemoved, directive.Name));
Commands\Run\CommonRunHelpers.cs (1)
159report(string.Format(CliCommandStrings.UsingLaunchSettingsFromMessage, launchSettingsPath), true);
Commands\Run\RunCommand.cs (2)
227string.Format(CliCommandStrings.RunCommandSpecifiedFileIsNotAValidProject, ProjectFileFullPath), 595throw new GracefulException(string.Format(CliCommandStrings.RunCommandSpecifiedFileIsNotAValidProject, projectFilePath), e);
Commands\Run\RunCommandSelector.cs (2)
306Reporter.Error.WriteLine(string.Format(CliCommandStrings.RunCommandExceptionUnableToRunSpecifyFramework, "--framework")); 528Reporter.Error.WriteLine(string.Format(CliCommandStrings.RunCommandExceptionUnableToRunSpecifyDevice, "--device"));
Commands\Sdk\Check\ProductCollectionProvider.cs (1)
23throw new GracefulException(string.Format(CliCommandStrings.ReleasesLibraryFailed, e.Message));
Commands\Sdk\Check\RuntimeOutputWriter.cs (3)
39return string.Format(CliCommandStrings.OutOfSupportMessage, $"{runtime.Version.Major}.{runtime.Version.Minor}"); 43return string.Format(CliCommandStrings.MaintenanceMessage, $"{runtime.Version.Major}.{runtime.Version.Minor}"); 47return string.Format(CliCommandStrings.NewPatchAvailableMessage, NewestRuntimePatchVersion(runtime));
Commands\Sdk\Check\SdkOutputWriter.cs (4)
32_reporter.WriteLine(string.Format(CliCommandStrings.NewFeatureBandMessage, NewestFeatureBandAvailable())); 43return string.Format(CliCommandStrings.OutOfSupportMessage, $"{sdk.Version.Major}.{sdk.Version.Minor}"); 47return string.Format(CliCommandStrings.MaintenanceMessage, $"{sdk.Version.Major}.{sdk.Version.Minor}"); 51return string.Format(CliCommandStrings.NewPatchAvailableMessage, NewestSdkPatchVersion(sdk));
Commands\Solution\SolutionArgumentValidator.cs (1)
56string.Format(CliStrings.SolutionArgumentMisplaced, slnFile),
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (2)
309string.Format( 794string.Format(CliCommandStrings.RunCommandExceptionUnableToRunSpecifyFramework, "--framework"));
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (1)
272var missing = string.Format(format, moduleList);
Commands\Test\MTP\MSBuildHandler.cs (2)
37Reporter.Error.WriteLine(string.Format(CliCommandStrings.CmdMSBuildProjectsPropertiesErrorDescription, buildExitCode)); 52string.Format(
Commands\Test\MTP\SolutionAndProjectUtility.cs (8)
42return (false, string.Format(CliCommandStrings.CmdNonExistentDirectoryErrorDescription, directory)); 69return (false, string.Format(CliStrings.MoreThanOneSolutionInDirectory, directory)); 105return (false, string.Format(CliStrings.MoreThanOneProjectInDirectory, directory)); 138return (false, string.Format(CliCommandStrings.CmdNonExistentDirectoryErrorDescription, directory)); 145return (false, string.Format(CliStrings.SolutionDoesNotExist, directory + Path.DirectorySeparatorChar)); 150return (false, string.Format(CliStrings.MoreThanOneSolutionInDirectory, directory + Path.DirectorySeparatorChar)); 582string.Format(CliCommandStrings.RunCommandExceptionUnableToRunSpecifyDevice, "--device")); 748Reporter.Error.WriteLine(string.Format(CliCommandStrings.UsingLaunchSettingsFromMessage, launchSettingsPath));
Commands\Test\MTP\Terminal\TerminalTestReporter.cs (3)
162terminal.Append($"({string.Format(CliCommandStrings.Try, currentAttemptNumber)}) "); 679terminal.AppendLine(string.Format(isRun ? CliCommandStrings.TestRunExitCode : CliCommandStrings.TestDiscoveryExitCode, exitCode)); 821terminal.Append($" ({string.Format(CliCommandStrings.Try, attempt)})");
Commands\Test\MTP\TestApplication.cs (2)
668throw new NotSupportedException(string.Format(CliCommandStrings.CmdUnsupportedMessageRequestTypeException, request.GetType())); 787throw new NotSupportedException(string.Format(CliCommandStrings.CmdUnsupportedMessageRequestTypeException, request.GetType()));
Commands\Test\MTP\TestApplicationHandler.cs (15)
53: string.Format(CliCommandStrings.DotnetTestMissingHandshakeProtocolVersions, ProtocolConstants.SupportedVersions); 254throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageInHelpMode, nameof(DiscoveredTestMessages))); 259throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageWithoutHandshake, nameof(DiscoveredTestMessages))); 266throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageWithoutTestHostHandshake, nameof(DiscoveredTestMessages))); 302throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageInHelpMode, nameof(TestResultMessages))); 307throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageWithoutHandshake, nameof(TestResultMessages))); 312throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageWithoutTestHostHandshake, nameof(TestResultMessages))); 373throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageInHelpMode, nameof(TestInProgressMessages))); 378throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageWithoutHandshake, nameof(TestInProgressMessages))); 407throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageInHelpMode, nameof(FileArtifactMessages))); 412throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageWithoutHandshake, nameof(FileArtifactMessages))); 419throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageWithoutTestHostHandshake, nameof(FileArtifactMessages))); 474throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageInHelpMode, nameof(TestSessionEvent))); 479throw new InvalidOperationException(string.Format(CliCommandStrings.UnexpectedMessageWithoutHandshake, nameof(TestSessionEvent))); 520throw new InvalidOperationException(string.Format(CliCommandStrings.UnknownSessionEventType, sessionEvent.SessionType));
Commands\Test\MTP\TestModulesFilterHandler.cs (1)
48Reporter.Output.WriteLine(string.Format(CliCommandStrings.CmdNonExistentRootDirectoryErrorDescription, _testModulesRoot).Yellow());
Commands\Test\MTP\ValidationUtility.cs (3)
115Reporter.Error.WriteLine(string.Format(CliCommandStrings.CmdInvalidSolutionFileExtensionErrorDescription, solutionFileOrDirectory)); 140Reporter.Error.WriteLine(string.Format(CliCommandStrings.CmdInvalidProjectFileExtensionErrorDescription, projectOrSolutionFileOrDirectory)); 151Reporter.Error.WriteLine(string.Format(CliCommandStrings.CmdNonExistentFileErrorDescription, Path.GetFullPath(filePath)));
Commands\Test\VSTest\TestCommand.cs (1)
158Reporter.Output.WriteLine(string.Format(CliCommandStrings.IgnoredArgumentsMessage, string.Join(" ", ignoredArgs)).Yellow());
Commands\Tool\Common\ToolManifestFinderExtensions.cs (1)
41string.Format(
Commands\Tool\Install\ToolInstallCommandLowLevelErrorConverter.cs (3)
17yield return string.Format(CliCommandStrings.InvalidToolConfiguration, ex.Message); 18yield return string.Format(CliCommandStrings.ToolInstallationFailedContactAuthor, packageId); 23yield return string.Format(CliCommandStrings.ToolInstallationFailed, packageId);
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (5)
178throw new GracefulException(string.Format(CliCommandStrings.ToolInstallNuGetConfigurationFileDoesNotExist, Path.GetFullPath(_configFilePath))); 306string.Format( 323string.Format(CliCommandStrings.UpdateToolFailed, packageId) 345string.Format(CliCommandStrings.UpdateToolFailed, packageId) 377string.Format(CliCommandStrings.ToolUpdateToolHasMultipleVersionsInstalled, packageId)
Commands\Tool\Install\ToolInstallLocalInstaller.cs (1)
31string.Format(
Commands\Tool\Install\VersionRangeUtilities.cs (2)
35string.Format( 52string.Format(
Commands\Tool\List\ToolListGlobalOrToolPathCommand.cs (1)
43string.Format(
Commands\Tool\Restore\ToolRestoreCommand.cs (1)
203string.Format(CliCommandStrings.PackagesCommandNameCollisionConclusion,
Commands\Tool\Run\ToolRunCommand.cs (1)
46throw new GracefulException([string.Format(CliCommandStrings.CannotFindCommandName, toolCommandName)], isUserError: false);
Commands\Tool\Search\ToolSearchCommand.cs (1)
60string.Format(
Commands\Tool\Uninstall\ToolUninstallGlobalOrToolPathCommand.cs (3)
41string.Format( 60throw new GracefulException(messages: [string.Format(CliCommandStrings.ToolUninstallToolNotInstalled, packageId)], isUserError: false); 65throw new GracefulException(messages: [string.Format(CliCommandStrings.ToolUninstallToolHasMultipleVersionsInstalled, packageId)], isUserError: false);
Commands\Tool\Uninstall\ToolUninstallLocalCommand.cs (1)
48throw new GracefulException([string.Format(CliCommandStrings.NoManifestFileContainPackageId, _packageId)], isUserError: false);
Commands\Tool\Update\ToolUpdateCommand.cs (1)
108string.Format(
Commands\Workload\Install\FileBasedInstaller.cs (5)
234_reporter.WriteLine(string.Format(CliCommandStrings.RollingBackPackInstall, packInfo.ResolvedPackageId)); 244_reporter.WriteLine(string.Format(CliCommandStrings.WorkloadInstallRollBackFailedMessage, e.Message)); 416_reporter.WriteLine(string.Format(CliCommandStrings.GarbageCollectingSdkFeatureBandsMessage, string.Join(" ", installedSdkFeatureBands))); 461_reporter.WriteLine(string.Format(CliCommandStrings.DeletingWorkloadSet, workloadSetVersion)); 589_reporter.WriteLine(string.Format(CliCommandStrings.UpdatedWorkloadMode, newModeString));
Commands\Workload\Install\WorkloadInstallCommand.cs (7)
118throw new GracefulException(string.Format(exceptionMessage, workloadId), isUserError: false); 163throw new GracefulException(string.Format(CliCommandStrings.WorkloadInstallWorkloadCacheDownloadFailed, e.Message), e, isUserError: false); 212throw new GracefulException(string.Format(CliCommandStrings.WorkloadInstallationFailed, e.Message), e, isUserError: false); 275Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadAlreadyInstalled, string.Join(" ", previouslyInstalledWorkloads)).Yellow()); 304Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadInstallInstallationSucceeded, string.Join(" ", newWorkloadInstallRecords))); 319reporter.WriteLine(string.Format(CliCommandStrings.GarbageCollectionFailed, 351RollbackFailed = ex => Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadInstallRollBackFailedMessage, ex.Message))
Commands\Workload\Install\WorkloadManifestUpdater.Managed.cs (1)
199throw new ArgumentException(string.Format(
Commands\Workload\InstallingWorkloadCommand.cs (3)
141throw new GracefulException(string.Format(CliCommandStrings.CannotSpecifyVersionOnCommandLineAndInGlobalJson, _globalJsonPath), isUserError: true); 176throw new GracefulException(string.Format(CliCommandStrings.WorkloadSetVersionInPackageVersionFormat, _workloadSetVersionFromGlobalJson, suggestedGlobalJsonVersion, string.Format(CliCommandStrings.WorkloadSetVersionSpecifiedInGlobalJson, _globalJsonPath)), isUserError: true); 365Reporter.WriteLine(string.Format(CliCommandStrings.NewWorkloadSet, workloadSetVersion));
Commands\Workload\List\WorkloadListCommand.cs (2)
100Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadListWorkloadSetVersion, _workloadListHelper.WorkloadResolver.GetWorkloadVersion().Version ?? "unknown")); 131Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadListWorkloadUpdatesAvailable, string.Join(" ", updatableWorkloads)));
Commands\Workload\Repair\WorkloadRepairCommand.cs (3)
82Reporter.WriteLine(string.Format(CliCommandStrings.RepairingWorkloads, string.Join(" ", workloadIds))); 89Reporter.WriteLine(string.Format(CliCommandStrings.RepairSucceeded, string.Join(" ", workloadIds))); 96throw new GracefulException(string.Format(CliCommandStrings.WorkloadRepairFailed, e.Message), e, isUserError: false);
Commands\Workload\Restore\WorkloadRestoreCommand.cs (2)
55Reporter.WriteLine(string.Format(CliCommandStrings.InstallingWorkloads, string.Join(" ", allWorkloadId))); 99string.Format(
Commands\Workload\Search\WorkloadSearchVersionsCommand.cs (3)
95Utils.Reporter.Error.WriteLine(string.Format(CliCommandStrings.NoWorkloadVersionsFound, new SdkFeatureBand(_sdkVersion))); 121Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadVersionWithSpecifiedManifestNotFound, string.Join(' ', _workloadVersion))); 187Utils.Reporter.Error.WriteLine(string.Format(CliCommandStrings.NoWorkloadVersionsFound, featureBand));
Commands\Workload\Uninstall\WorkloadUninstallCommand.cs (4)
67throw new Exception(string.Format(CliCommandStrings.WorkloadNotInstalled, string.Join(" ", unrecognizedWorkloads))); 72Reporter.WriteLine(string.Format(CliCommandStrings.RemovingWorkloadInstallationRecord, workloadId)); 80Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadUninstallUninstallSucceeded, string.Join(" ", _workloadIds))); 88throw new GracefulException(string.Format(CliCommandStrings.WorkloadUninstallFailed, e.Message), e, isUserError: false);
Commands\Workload\Update\WorkloadUpdateCommand.cs (4)
88throw new GracefulException(string.Format(CliCommandStrings.WorkloadUpdateWorkloadCacheDownloadFailed, e.Message), e, isUserError: false); 139throw new GracefulException(string.Format(CliCommandStrings.WorkloadUpdateFailed, e.Message), e, isUserError: false); 180Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadUpdateUpdateSucceeded, string.Join(" ", workloadIds))); 248Reporter.WriteLine(string.Format(CliCommandStrings.WorkloadUpdateRollBackFailedMessage, ex.Message));
Commands\Workload\WorkloadManifestCorruptionRepairer.cs (1)
81throw new InvalidOperationException(string.Format(CliCommandStrings.WorkloadSetHasMissingManifests, workloadSet.Version));
MsbuildProject.cs (4)
105Reporter.Output.WriteLine(string.Format( 114Reporter.Output.WriteLine(string.Format(CliStrings.ReferenceAddedToTheProject, @ref)); 247Reporter.Output.WriteLine(string.Format(CliStrings.ProjectReferenceRemoved, r)); 253Reporter.Output.WriteLine(string.Format(
NugetPackageDownloader\NuGetPackageDownloader.cs (9)
284throw new NuGetPackageInstallerException(string.Format(CliStrings.FailedToValidatePackageSigning, commandOutput)); 465_verboseLogger.LogWarning(string.Format( 532throw new NuGetPackageInstallerException(string.Format(CliStrings.FailedToFindSourceUnderPackageSourceMapping, packageId)); 537throw new NuGetPackageInstallerException(string.Format(CliStrings.FailedToMapSourceUnderPackageSourceMapping, packageId)); 553_verboseLogger.LogWarning(string.Format( 599_verboseLogger.LogWarning(string.Format( 635throw new NuGetPackageInstallerException(string.Format(CliStrings.Error_NU1302_HttpSourceUsed, packageSource.Source)); 897throw new NuGetPackageInstallerException(string.Format(CliStrings.FailedToLoadNuGetSource, 942throw new NuGetPackageInstallerException($"{string.Format(CliStrings.FailedToLoadNuGetSource, source.Source)}: {e.Message}", e);
Parser.cs (1)
329errorMessage = string.Format(CliStrings.ResponseFileNotFound, tokenToReplace);
ShellShim\LinuxEnvironmentPath.cs (1)
75string.Format(
ShellShim\OsxBashEnvironmentPath.cs (1)
63string.Format(
ShellShim\OsxZshEnvironmentPathInstruction.cs (1)
39string.Format(
ShellShim\ShellShimRepository.cs (3)
34string.Format( 94string.Format(CliStrings.FailedSettingShimPermissions, ex.Message)); 211string.Format(
ShellShim\WindowsEnvironmentPath.cs (2)
67string.Format( 114string.Format(
ToolManifest\ToolManifestEditor.cs (5)
118string.Format(CliStrings.ManifestHasMarkOfTheWeb, manifest.Value)); 235errors.Add(string.Format(CliStrings.ManifestMissingIsRoot, path.Value)); 246errors.Add(string.Format(CliStrings.MultipleSamePackageId, 268packageLevelErrors.Add(string.Format(CliStrings.VersionIsInvalid, versionString)); 416throw new ToolManifestException(string.Format(
ToolManifest\ToolManifestFinder.cs (3)
44throw new ToolManifestCannotBeFoundException(string.Format(CliStrings.CannotFindAManifestFile, string.Join(Environment.NewLine, allPossibleManifests.Select(f => "\t" + f.manifestfile.Value)))); 210throw new ToolManifestCannotBeFoundException(string.Format(CliStrings.CannotFindAManifestFile, string.Join(Environment.NewLine, EnumerateDefaultAllPossibleManifests().Select(f => "\t" + f.manifestfile.Value)))); 297throw new ToolManifestCannotBeFoundException(string.Format(CliStrings.CannotFindAManifestFile, string.Join(Environment.NewLine, EnumerateDefaultAllPossibleManifests().Select(f => "\t" + f.manifestfile.Value))));
ToolPackage\ToolConfiguration.cs (2)
26string.Format( 59string.Format(
ToolPackage\ToolConfigurationDeserializer.cs (2)
60string.Format( 68string.Format(
ToolPackage\ToolPackageDownloader.cs (1)
154throw new ToolPackageException(string.Format(CliStrings.ToolPackageNotATool, packageId));
ToolPackage\ToolPackageInstance.cs (1)
237string.Format(
ToolPackage\ToolPackageStoreAndQuery.cs (1)
36string.Format(
TransactionalAction.cs (1)
88Reporter.Verbose.WriteLine(string.Format("TransactionAbortedException Message: {0}", ex.Message));
dotnet-aot (55)
_generated\106\NugetSearchApiJsonSerializerContext.g.cs (1)
88throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\113\NugetServiceIndexJsonSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\15\CliSchemaJsonSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\29\TelemetryDiskLoggerJsonSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\34\WorkloadManifestUpdaterJsonSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\44\SdkVulnerabilityJsonContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\54\RunFileBuildCacheJsonSerializerContext.g.cs (1)
82throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\62\InstallStateJsonSerializerContext.g.cs (1)
85throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\67\SdkCheckJsonSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\74\SlnfJsonSerializerContext.g.cs (1)
84throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\81\LocalToolsCacheJsonSerializerContext.g.cs (1)
82throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\93\ToolListJsonSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
src\sdk\src\Cli\dotnet\CommandFactory\CommandResolution\LocalToolsCommandResolver.cs (2)
88throw new GracefulException(string.Format(CliStrings.NeedRunToolRestore, 97throw new GracefulException(string.Format(CliStrings.NeedRunToolRestore,
src\sdk\src\Cli\dotnet\Commands\Run\CommonRunHelpers.cs (1)
159report(string.Format(CliCommandStrings.UsingLaunchSettingsFromMessage, launchSettingsPath), true);
src\sdk\src\Cli\dotnet\Commands\Sdk\Check\ProductCollectionProvider.cs (1)
23throw new GracefulException(string.Format(CliCommandStrings.ReleasesLibraryFailed, e.Message));
src\sdk\src\Cli\dotnet\Commands\Sdk\Check\RuntimeOutputWriter.cs (3)
39return string.Format(CliCommandStrings.OutOfSupportMessage, $"{runtime.Version.Major}.{runtime.Version.Minor}"); 43return string.Format(CliCommandStrings.MaintenanceMessage, $"{runtime.Version.Major}.{runtime.Version.Minor}"); 47return string.Format(CliCommandStrings.NewPatchAvailableMessage, NewestRuntimePatchVersion(runtime));
src\sdk\src\Cli\dotnet\Commands\Sdk\Check\SdkOutputWriter.cs (4)
32_reporter.WriteLine(string.Format(CliCommandStrings.NewFeatureBandMessage, NewestFeatureBandAvailable())); 43return string.Format(CliCommandStrings.OutOfSupportMessage, $"{sdk.Version.Major}.{sdk.Version.Minor}"); 47return string.Format(CliCommandStrings.MaintenanceMessage, $"{sdk.Version.Major}.{sdk.Version.Minor}"); 51return string.Format(CliCommandStrings.NewPatchAvailableMessage, NewestSdkPatchVersion(sdk));
src\sdk\src\Cli\dotnet\Commands\Solution\SolutionArgumentValidator.cs (1)
56string.Format(CliStrings.SolutionArgumentMisplaced, slnFile),
src\sdk\src\Cli\dotnet\Commands\Tool\Common\ToolManifestFinderExtensions.cs (1)
41string.Format(
src\sdk\src\Cli\dotnet\Commands\Tool\Run\ToolRunCommand.cs (1)
46throw new GracefulException([string.Format(CliCommandStrings.CannotFindCommandName, toolCommandName)], isUserError: false);
src\sdk\src\Cli\dotnet\Commands\Tool\Search\ToolSearchCommand.cs (1)
60string.Format(
src\sdk\src\Cli\dotnet\Commands\Tool\Uninstall\ToolUninstallLocalCommand.cs (1)
48throw new GracefulException([string.Format(CliCommandStrings.NoManifestFileContainPackageId, _packageId)], isUserError: false);
src\sdk\src\Cli\dotnet\MsbuildProject.cs (4)
105Reporter.Output.WriteLine(string.Format( 114Reporter.Output.WriteLine(string.Format(CliStrings.ReferenceAddedToTheProject, @ref)); 247Reporter.Output.WriteLine(string.Format(CliStrings.ProjectReferenceRemoved, r)); 253Reporter.Output.WriteLine(string.Format(
src\sdk\src\Cli\dotnet\NugetPackageDownloader\NuGetPackageDownloader.cs (9)
284throw new NuGetPackageInstallerException(string.Format(CliStrings.FailedToValidatePackageSigning, commandOutput)); 465_verboseLogger.LogWarning(string.Format( 532throw new NuGetPackageInstallerException(string.Format(CliStrings.FailedToFindSourceUnderPackageSourceMapping, packageId)); 537throw new NuGetPackageInstallerException(string.Format(CliStrings.FailedToMapSourceUnderPackageSourceMapping, packageId)); 553_verboseLogger.LogWarning(string.Format( 599_verboseLogger.LogWarning(string.Format( 635throw new NuGetPackageInstallerException(string.Format(CliStrings.Error_NU1302_HttpSourceUsed, packageSource.Source)); 897throw new NuGetPackageInstallerException(string.Format(CliStrings.FailedToLoadNuGetSource, 942throw new NuGetPackageInstallerException($"{string.Format(CliStrings.FailedToLoadNuGetSource, source.Source)}: {e.Message}", e);
src\sdk\src\Cli\dotnet\Parser.cs (1)
329errorMessage = string.Format(CliStrings.ResponseFileNotFound, tokenToReplace);
src\sdk\src\Cli\dotnet\ShellShim\LinuxEnvironmentPath.cs (1)
75string.Format(
src\sdk\src\Cli\dotnet\ShellShim\OsxBashEnvironmentPath.cs (1)
63string.Format(
src\sdk\src\Cli\dotnet\ShellShim\OsxZshEnvironmentPathInstruction.cs (1)
39string.Format(
src\sdk\src\Cli\dotnet\ShellShim\WindowsEnvironmentPath.cs (2)
67string.Format( 114string.Format(
src\sdk\src\Cli\dotnet\ToolManifest\ToolManifestEditor.cs (5)
118string.Format(CliStrings.ManifestHasMarkOfTheWeb, manifest.Value)); 235errors.Add(string.Format(CliStrings.ManifestMissingIsRoot, path.Value)); 246errors.Add(string.Format(CliStrings.MultipleSamePackageId, 268packageLevelErrors.Add(string.Format(CliStrings.VersionIsInvalid, versionString)); 416throw new ToolManifestException(string.Format(
src\sdk\src\Cli\dotnet\ToolManifest\ToolManifestFinder.cs (3)
44throw new ToolManifestCannotBeFoundException(string.Format(CliStrings.CannotFindAManifestFile, string.Join(Environment.NewLine, allPossibleManifests.Select(f => "\t" + f.manifestfile.Value)))); 210throw new ToolManifestCannotBeFoundException(string.Format(CliStrings.CannotFindAManifestFile, string.Join(Environment.NewLine, EnumerateDefaultAllPossibleManifests().Select(f => "\t" + f.manifestfile.Value)))); 297throw new ToolManifestCannotBeFoundException(string.Format(CliStrings.CannotFindAManifestFile, string.Join(Environment.NewLine, EnumerateDefaultAllPossibleManifests().Select(f => "\t" + f.manifestfile.Value))));
dotnet-dev-certs (1)
_generated\7\DevCertsJsonSerializerContext.g.cs (1)
83throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
dotnet-format (8)
CodeFormatter.cs (1)
32logger.LogInformation(string.Format(Resources.Formatting_code_files_in_workspace_0, formatOptions.WorkspaceFilePath));
Formatters\DocumentFormatter.cs (2)
197? string.Format(Resources.Delete_0_characters, change.Span.Length) 199? string.Format(Resources.Insert_0, textChange)
Workspaces\MSBuildWorkspaceFinder.cs (5)
42throw new FileNotFoundException(string.Format(Resources.Both_a_MSBuild_project_file_and_solution_file_found_in_0_Specify_which_to_use_with_the_workspace_argument, searchDirectory)); 55throw new FileNotFoundException(string.Format(Resources.Could_not_find_a_MSBuild_project_or_solution_file_in_0_Specify_which_to_use_with_the_workspace_argument, searchDirectory)); 72throw new FileNotFoundException(string.Format(Resources.The_file_0_does_not_appear_to_be_a_valid_project_solution_file_or_file_based_app, Path.GetFileName(workspacePath))); 80throw new FileNotFoundException(string.Format(message, workspacePath)); 105throw new FileNotFoundException(string.Format(multipleFilesFoundError, searchBase));
dotnet-Microsoft.XmlSerializer.Generator (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
dotnet-svcutil-lib (938)
CodeDomFixup\EndpointSelector.cs (1)
218s_bindingValidationErrors.Add(string.Format(SR.BindingElementTypeNotSupportedFormat, bindingElement.GetType().FullName));
CodeSerializer.cs (1)
107throw new ToolRuntimeException(string.Format(SR.ErrCannotCreateFileFormat, _outputFilePath), e);
CommandLineParser.cs (3)
151options.AddError(string.Format(SR.ErrUnknownSwitchFormat, arg)); 169options.AddError(string.Format(SR.ErrArgumentWithoutValue, argSwitch.Name)); 179options.AddError(string.Format(SR.ErrSingleUseSwitchFormat, argSwitch.Name));
CommandProcessorOptions.cs (4)
168fileOptions.AddWarning(string.Format(SR.WrnExtraParamsOnInputFileParamIgnoredFormat, disallowedSwitchesOnParamsFilesProvided.Select(s => $"'{s.Name}'").Aggregate((msg, n) => $"{msg}, '{n}'")), 0); 297this.AddWarning(string.Format(SR.WrnUnexpectedArgumentFormat, cmdSwitch.Name), 0); 308this.AddWarning(string.Format(SR.WrnUnexpectedInputsFormat, this.Inputs.Select(i => $"{i}''").Aggregate((msg, i) => $"{msg}, {i}"))); 315this.AddWarning(string.Format(SR.WrnUnexpectedArgumentFormat, option.Name));
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGenerator.cs (5)
824throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e"); 1143throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e"); 1803throw new ArgumentException(string.Format(SRCodeDom.InvalidPrimitiveType, e.Value.GetType().ToString())); 1911throw new ArgumentException(string.Format(SRCodeDom.Argument_NullComment, "e"), "e"); 2165throw new ArgumentException(string.Format(SRCodeDom.InvalidIdentifier, value));
FrameworkFork\Microsoft.CodeDom\Compiler\CodeValidator.cs (7)
62throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e"); 99throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e"); 500throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e"); 833throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e"); 1019throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e"); 1025throw new ArgumentException(string.Format(SRCodeDom.InvalidPathCharsInChecksum, e.FileName)); 1031throw new ArgumentException(string.Format(SRCodeDom.InvalidRegion, e.RegionText));
FrameworkFork\Microsoft.CodeDom\Compiler\CompilerInfo.cs (2)
50throw new ConfigurationErrorsException(string.Format(SRCodeDom.Unable_To_Locate_Type, _codeDomProviderTypeName)); 100throw new InvalidOperationException(string.Format(SRCodeDom.Provider_does_not_support_options, CodeDomProviderType.ToString()));
FrameworkFork\Microsoft.CodeDom\Compiler\TempFiles.cs (3)
104throw new ArgumentException(string.Format(SRCodeDom.InvalidNullEmptyArgument, "fileExtension"), "fileExtension"); // fileExtension not specified 116throw new ArgumentException(string.Format(SRCodeDom.InvalidNullEmptyArgument, "fileName"), "fileName"); // fileName not specified 119throw new ArgumentException(string.Format(SRCodeDom.DuplicateFileName, fileName), "fileName"); // duplicate fileName
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (5)
1219throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e"); 1405throw new ArgumentException(string.Format(SRCodeDom.InvalidPrimitiveType, e.Value.GetType().ToString())); 1588throw new ArgumentException(string.Format(SRCodeDom.Argument_NullComment, "e"), "e"); 1969throw new ArgumentException(string.Format(SRCodeDom.InvalidElementType, e.GetType().FullName), "e"); 3641throw new ArgumentException(string.Format(SRCodeDom.InvalidIdentifier, value));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlEncodedRawTextWriter.cs (2)
1733throw new ArgumentException(string.Format(ResXml.Xml_IndentCharsNotWhitespace, propertyName)); 1770error = string.Format(ResXml.Xml_InvalidSurrogateHighChar, ((uint)chars[i]).ToString("X", CultureInfo.InvariantCulture));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReader.cs (4)
736throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadContentAsBase64")); 742throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBase64")); 748throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadContentAsBinHex")); 754throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBinHex"));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReaderAsync.cs (4)
143throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadContentAsBase64")); 149throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBase64")); 155throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadContentAsBinHex")); 161throw new NotSupportedException(string.Format(ResXml.Xml_ReadBinaryContentNotSupported, "ReadElementContentAsBinHex"));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReaderSettings.cs (2)
670throw new InvalidOperationException(string.Format(ResXml.Xml_IncompatibleConformanceLevel, _conformanceLevel.ToString())); 728throw new InvalidOperationException(string.Format(ResXml.Xml_IncompatibleConformanceLevel, _conformanceLevel.ToString()));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (1)
1851throw new InvalidOperationException(string.Format(ResXml.Xml_InvalidReadValueChunk, _curNode.type));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextWriter.cs (4)
1033throw new ArgumentException(string.Format(ResXml.Xml_UndefNamespace, ns)); 1117throw new ArgumentException(string.Format(ResXml.Xml_InvalidNameChars, name)); 1677throw new ArgumentException(string.Format(ResXml.Xml_InvalidNameChars, name)); 1701throw new ArgumentException(string.Format(ResXml.Xml_InvalidXmlSpace, value));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlUtf8RawTextWriter.cs (2)
1613throw new ArgumentException(string.Format(ResXml.Xml_IndentCharsNotWhitespace, propertyName)); 1650error = string.Format(ResXml.Xml_InvalidSurrogateHighChar, ((uint)chars[i]).ToString("X", CultureInfo.InvariantCulture));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWellformedWriter.cs (4)
852throw new ArgumentException(string.Format(ResXml.Xml_InvalidXmlSpace, value)); 1381throw new ArgumentException(string.Format(ResXml.Xml_UndefNamespace, ns)); 1743throw new ArgumentException(string.Format(ResXml.Xml_NamespaceDeclXmlXmlns, prefix)); 1827throw new ArgumentException(string.Format(ResXml.Xml_NamespaceDeclXmlXmlns, prefix));
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWriter.cs (1)
263throw new ArgumentException(string.Format(ResXml.Xml_UndefNamespace, ns));
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentSchemaValidator.cs (1)
289throw new InvalidOperationException(string.Format(ResXml.Xml_InvalidXmlDocument, string.Format(ResXml.Xdom_NoRootEle)));
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlDeclaration.cs (2)
28throw new ArgumentException(string.Format(ResXml.Xdom_standalone, standalone)); 61throw new ArgumentException(string.Format(ResXml.Xdom_standalone, value));
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlDocument.cs (4)
170throw new ArgumentException(string.Format(ResXml.Xdom_Attr_Reserved_XmlNS, namespaceURI)); 1101throw new ArgumentException(string.Format(ResXml.Arg_CannotCreateNode, type)); 1196throw new ArgumentException(string.Format(ResXml.Xdom_Invalid_NT_String, nodeTypeString)); 1440throw new ArgumentException(string.Format(ResXml.XmlDocument_NodeNotFromDocument, "nodeToValidate"));
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlNode.cs (1)
101set { throw new InvalidOperationException(string.Format(ResXml.Xdom_Node_SetVal, NodeType)); }
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolver.cs (1)
238throw new XmlException(string.Format(ResXml.Xml_CannotResolveUrl, absoluteUri.ToString()));
FrameworkFork\Microsoft.Xml\Xml\Resolvers\XmlPreloadedResolverAsync.cs (1)
35throw new XmlException(string.Format(ResXml.Xml_CannotResolveUrl, absoluteUri.ToString()));
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (6)
3773throw new XmlSchemaException(string.Format(ResXml.Sch_InvalidValue, s), e); 3794throw new XmlSchemaException(string.Format(ResXml.Sch_InvalidValue, s), e); 3832throw new XmlSchemaException(string.Format(ResXml.Sch_InvalidValue, s), e); 3875throw new XmlSchemaException(string.Format(ResXml.Sch_InvalidValue, s), e); 3919throw new XmlSchemaException(string.Format(ResXml.Sch_InvalidValue, s), e); 3976throw new XmlSchemaException(string.Format(ResXml.Sch_InvalidValue, s), e);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (2)
1669_restrictionErrorMsg = string.Format(ResXml.Sch_ElementFromAnyRule1, derivedElement.QualifiedName.ToString()); 1674_restrictionErrorMsg = string.Format(ResXml.Sch_ElementFromAnyRule2, derivedElement.QualifiedName.ToString());
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaObjectTable.cs (8)
317throw new InvalidOperationException(string.Format(ResXml.Sch_EnumNotStarted, string.Empty)); 321throw new InvalidOperationException(string.Format(ResXml.Sch_EnumFinished, string.Empty)); 376throw new InvalidOperationException(string.Format(ResXml.Sch_EnumNotStarted, string.Empty)); 380throw new InvalidOperationException(string.Format(ResXml.Sch_EnumFinished, string.Empty)); 392throw new InvalidOperationException(string.Format(ResXml.Sch_EnumNotStarted, string.Empty)); 396throw new InvalidOperationException(string.Format(ResXml.Sch_EnumFinished, string.Empty)); 408throw new InvalidOperationException(string.Format(ResXml.Sch_EnumNotStarted, string.Empty)); 412throw new InvalidOperationException(string.Format(ResXml.Sch_EnumFinished, string.Empty));
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (6)
940throw new InvalidOperationException(string.Format(ResXml.Sch_InvalidEndElementMultiple, s_methodNames[(int)ValidatorState.SkipToEndElement])); 1201throw new InvalidOperationException(string.Format(ResXml.Sch_InvalidEndElementMultiple, s_methodNames[(int)ValidatorState.EndElement])); 2700builder.Append(string.Format(ResXml.Sch_ElementName, name.Name)); 2740builder.Append(string.Format(ResXml.Sch_ElementName, subBuilder.ToString())); 2764builder.Append(string.Format(ResXml.Sch_AnyElementNS, subBuilder.ToString())); 2785return string.Format(ResXml.Sch_ElementName, localName);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Advanced\SchemaImporterExtension.cs (3)
79throw new ArgumentException(string.Format(ResXml.XmlInvalidSchemaExtension, type)); 121throw new InvalidOperationException(string.Format(ResXml.XmlConfigurationDuplicateExtension, name)); 203string comment = string.Format(ResXml.XmlExtensionComment, _extension.GetType().FullName);
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (1)
177comments.Add(new CodeCommentStatement(string.Format(ResXml.XmlCodegenWarningDetails, text), false));
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeIdentifier.cs (3)
100if (!IsValid(c)) throw new ArgumentException(string.Format(ResXml.XmlInternalErrorDetails, "Invalid identifier character " + ((Int16)c).ToString()), "c"); 153throw new ArgumentException(string.Format(ResXml.XmlInternalErrorDetails, "Unhandled category " + uc), "c"); 164throw new ArgumentException(string.Format(ResXml.XmlInvalidIdentifier, ident), "ident");
FrameworkFork\Microsoft.Xml\Xml\Serialization\Compilation.cs (3)
153throw new InvalidOperationException(string.Format(ResXml.XmlInvalidEncodingNotEncoded1, encodingStyle)); 183throw new InvalidOperationException(string.Format(ResXml.XmlNotSerializable, mapping.Accessor.Name)); 217throw new InvalidOperationException(string.Format(ResXml.XmlNotSerializable, mapping.Accessor.Name));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (6)
115throw new ArgumentException(string.Format(ResXml.Xml_InvalidNameChars, name), "name"); 236throw new InvalidOperationException(string.Format(ResXml.Xml_InvalidNameChars, Name)); 1152throw new InvalidOperationException(string.Format(ResXml.XmlCircularDerivation, TypeDesc.FullName)); 1391throw new InvalidOperationException(string.Format(ResXml.XmlMissingSchema, _xsiType.Namespace)); 1400throw new InvalidOperationException(string.Format(ResXml.XmlMissingSchema, _xsiType.Namespace)); 1418if (_schema.Id == null || _schema.Id.Length == 0) throw new InvalidOperationException(string.Format(ResXml.XmlSerializableNameMissing1, _type.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Models.cs (2)
63if (!typeDesc.IsSpecial) throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedTypeKind, type.FullName)); 193typeDesc.Exception = new NotSupportedException(string.Format(ResXml.XmlSerializerUnsupportedType, typeDesc.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (11)
174return new InvalidOperationException(string.Format(ResXml.XmlReflectionError, context), e); 218throw new InvalidOperationException(string.Format(ResXml.XmlInvalidTypeAttributes, model.Type.FullName)); 252throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedSoapTypeKind, model.TypeDesc.FullName)); 369throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "DeferredWorkItems.Count have changed")); 371throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "DeferredWorkItems.Top have changed")); 430throw new NotSupportedException(string.Format(ResXml.XmlRpcRefsInValueType, model.TypeDesc.FullName)); 432throw new NotSupportedException(string.Format(ResXml.XmlRpcNestedValueType, member.TypeDesc.FullName)); 455throw new NotSupportedException(string.Format(ResXml.XmlRpcArrayOfValueTypes, model.TypeDesc.FullName)); 531throw new InvalidOperationException(string.Format(ResXml.XmlInvalidSoapArray, mapping.TypeDesc.FullName)); 571throw new InvalidOperationException(string.Format(ResXml.XmlUdeclaredXsdType, dataType)); 612throw new InvalidOperationException(string.Format(ResXml.XmlNoSerializableMembers, model.TypeDesc.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (3)
138if (schema == null) throw new InvalidOperationException(string.Format(ResXml.XmlMissingSchema, referencingNs)); 323if (!mapping.IncludeInSchema) throw new InvalidOperationException(string.Format(ResXml.XmlSoapCannotIncludeInSchema, mapping.TypeDesc.Name)); 389throw new InvalidOperationException(string.Format(ResXml.XmlInvalidContent, type.ContentModel.Content.GetType().Name));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (1)
721throw new InvalidOperationException(string.Format(ResXml.XmlMissingDataType, name.ToString()));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (13)
388throw new NotSupportedException(string.Format(ResXml.XmlSerializerUnsupportedType, FullName)); 402_exception = new InvalidOperationException(string.Format(ResXml.XmlConstructorInaccessible, FullName)); 729throw new InvalidOperationException(string.Format(ResXml.XmlUnsupportedOpenGenericType, type.ToString())); 797exception = new InvalidOperationException(string.Format(ResXml.XmlTypeInaccessible, type.FullName)); 802exception = new InvalidOperationException(string.Format(ResXml.XmlTypeStatic, type.FullName)); 823exception = new NotSupportedException(string.Format(ResXml.XmlSerializerUnsupportedType, type.FullName)); 845exception = new NotSupportedException(string.Format(ResXml.XmlUnsupportedRank, type.FullName)); 867exception = new NotSupportedException(string.Format(ResXml.XmlSerializerUnsupportedType, type.FullName)); 923exception = new NotSupportedException(string.Format(ResXml.XmlUnsupportedInterface, type.FullName)); 937exception = new NotSupportedException(string.Format(ResXml.XmlSerializerUnsupportedType, type.FullName)); 1346throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedIDictionary, type.FullName)); 1381throw new InvalidOperationException(string.Format(ResXml.XmlNoDefaultAccessors, type.FullName)); 1414throw new InvalidOperationException(string.Format(ResXml.XmlInvalidArrayTypeSyntax, type));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (3)
225if (value.GetType() != typeof(string)) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Invalid enumeration type " + value.GetType().Name)); 505if (value.GetType() != typeof(object[])) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Default value for list should be object[], not " + value.GetType().Name)); 556AddWarningComment(comments, string.Format(ResXml.XmlDropDefaultAttribute, type));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCustomFormatter.cs (3)
59throw new Exception(string.Format(ResXml.XmlUnsupportedDefaultType, type.FullName)); 138if (ids.Length != vals.Length) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Invalid enum")); 206throw new Exception(string.Format(ResXml.XmlUnsupportedDefaultValue, formatter));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (38)
130throw new InvalidOperationException(string.Format(ResXml.XmlAnonymousInclude, type.FullName)); 370return new InvalidOperationException(string.Format(ResXml.XmlReflectionError, context), e); 375return new InvalidOperationException(string.Format(ResXml.XmlTypeReflectionError, context), e); 380return new InvalidOperationException(string.Format(model.IsProperty ? ResXml.XmlPropertyReflectionError : ResXml.XmlFieldReflectionError, model.Name), e); 414throw new InvalidOperationException(string.Format(ResXml.XmlInvalidTypeAttributes, model.Type.FullName)); 489throw new ArgumentException(string.Format(ResXml.XmlGetSchemaMethodName, provider.MethodName), "MethodName"); 594throw new InvalidOperationException(string.Format(ResXml.XmlMissingSchema, baseQname.Namespace)); 628return new InvalidOperationException(string.Format(ResXml.XmlInvalidAttributeUse, type.FullName)); 778throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "DeferredWorkItems.Count have changed")); 780throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "DeferredWorkItems.Top have changed")); 802throw new NotSupportedException(string.Format(ResXml.XmlUnsupportedInheritance, model.Type.GetTypeInfo().BaseType.FullName)); 874throw new InvalidOperationException(string.Format(ResXml.XmlIllegalMultipleText, model.Type.FullName)); 881throw new InvalidOperationException(string.Format(ResXml.XmlMultipleXmlns, model.Type.FullName)); 928throw new InvalidOperationException(string.Format(ResXml.XmlMultipleXmlns, model.Type.FullName)); 1169throw new InvalidOperationException(string.Format(ResXml.XmlUdeclaredXsdType, dataType)); 1203throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAttributeFlagsArray, model.TypeDesc.FullName)); 1218throw new InvalidOperationException(string.Format(ResXml.XmlNoSerializableMembers, model.TypeDesc.FullName)); 1267throw new InvalidOperationException(string.Format(ResXml.XmlInvalidAttributeType, "XmlAttribute")); 1312throw new InvalidOperationException(string.Format(ResXml.XmlSequenceMembers, "Order")); 1438throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentifierTypeEnum, identifierName)); 1476throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentiferAmbiguous, choice.MemberName)); 1620throw new InvalidOperationException(string.Format(ResXml.XmlIllegalArrayTextAttribute, accessorName)); 1661throw new InvalidOperationException(string.Format(ResXml.XmlSequenceMatch, "Order")); 1673throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAnyElement, arrayElementType.FullName)); 1711throw new InvalidOperationException(string.Format(ResXml.XmlSequenceMatch, "Order")); 1760if (a.XmlAnyElements.Count > 0) throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAnyElement, accessor.TypeDesc.FullName)); 1765if (a.XmlAttribute.Type != null) throw new InvalidOperationException(string.Format(ResXml.XmlIllegalType, "XmlAttribute")); 1792throw new InvalidOperationException(string.Format(ResXml.XmlIllegalType, "XmlText")); 1809throw new InvalidOperationException(string.Format(ResXml.XmlIllegalType, "XmlElement")); 1836throw new InvalidOperationException(string.Format(ResXml.XmlSequenceMatch, "Order")); 1904throw new InvalidOperationException(string.Format(ResXml.XmlSequenceMatch, "Order")); 1916throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAnyElement, accessorType.FullName)); 1953throw new InvalidOperationException(string.Format(ResXml.XmlSequenceMatch, "Order")); 1967throw new InvalidOperationException(string.Format(ResXml.XmlRpcLitArrayElement, accessor.Elements[0].Name)); 1970throw new InvalidOperationException(string.Format(ResXml.XmlRpcLitXmlns, accessor.Name)); 2016throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingAnyValue, accessor.ChoiceIdentifier.Mapping.TypeDesc.FullName)); 2187throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Bad accessor type " + accessor.GetType().FullName)); 2222if (isNullable && !typeDesc.IsNullable) throw new InvalidOperationException(string.Format(ResXml.XmlInvalidIsNullable, typeDesc.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (15)
103throw new InvalidOperationException(string.Format(ResXml.XmlBareAttributeMember, member.Attribute.Name)); 105throw new InvalidOperationException(string.Format(ResXml.XmlBareTextMember, member.Text.Name)); 110throw new InvalidOperationException(string.Format(ResXml.XmlIllegalArrayElement, member.Elements[0].Name)); 319throw new InvalidOperationException(string.Format(ResXml.XmlIllegalForm, e.Name)); 326throw new InvalidOperationException(string.Format(ResXml.XmlIllegalForm, a.Name)); 550throw new InvalidOperationException(string.Format(ResXml.XmlDuplicateNamespace, anyNs)); 601throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Unsuported anonymous mapping type: " + mapping.ToString())); 658throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Type " + mapping.TypeName + " from namespace '" + ns + "' is an invalid array mapping")); 720throw new InvalidOperationException(string.Format(ResXml.XmlInvalidContent, type.ContentModel.Content.GetType().Name)); 919if (value.GetType() != typeof(string)) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, string.Format(ResXml.XmlInvalidDefaultValue, value.ToString(), value.GetType().FullName))); 959throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Mapping for " + pm.TypeDesc.Name + " missing type property")); 1018if (!mapping.IncludeInSchema) throw new InvalidOperationException(string.Format(ResXml.XmlCannotIncludeInSchema, mapping.TypeDesc.Name)); 1094throw new InvalidOperationException(string.Format(ResXml.XmlIllegalMultipleText, name)); 1117throw new InvalidOperationException(string.Format(ResXml.XmlInvalidContent, type.ContentModel.Content.GetType().Name)); 1186if (!mapping.IncludeInSchema) throw new InvalidOperationException(string.Format(ResXml.XmlCannotIncludeInSchema, mapping.TypeDesc.Name));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (6)
1959throw new InvalidOperationException(string.Format(ResXml.XmlMissingGroup, name.Name)); 1968throw new InvalidOperationException(string.Format(ResXml.XmlMissingAttributeGroup, name.Name)); 2030throw new InvalidOperationException(string.Format(ResXml.XmlInvalidEncoding, name.ToString())); 2034throw new InvalidOperationException(string.Format(ResXml.XmlMissingDataType, name.ToString())); 2057throw new InvalidOperationException(string.Format(ResXml.XmlMissingElement, name.ToString())); 2065throw new InvalidOperationException(string.Format(ResXml.XmlMissingAttribute, name.Name));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemas.cs (2)
65throw new InvalidOperationException(string.Format(ResXml.XmlSchemaDuplicateNamespace, ns)); 366throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "XmlSchemas.Find: Invalid object type " + type.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (17)
988if (arrayInfo.dimensions != 1) throw new InvalidOperationException(string.Format(ResXml.XmlInvalidArrayDimentions, CurrentTag())); 1010throw new ArgumentNullException(string.Format(ResXml.XmlMissingArrayType, CurrentTag())); 1015throw new ArgumentException(string.Format(ResXml.XmlEmptyArrayType, CurrentTag()), "value"); 1037throw new ArgumentException(string.Format(ResXml.XmlInvalidArrayDimentions, CurrentTag()), "value"); 1059throw new ArgumentException(string.Format(ResXml.XmlInvalidArrayLength, lengthString), "value"); 1076throw new ArgumentException(string.Format(ResXml.XmlInvalidArrayDimentions, CurrentTag()), "value"); 1128throw new ArgumentException(string.Format(ResXml.XmlInvalidArrayLength, dimensions[i]), "value"); 1220throw new InvalidOperationException(string.Format(ResXml.XmlUndefinedAlias, prefix)); 1371return new InvalidOperationException(string.Format(ResXml.XmlReadOnlyCollection, name)); 1383return new InvalidOperationException(string.Format(ResXml.XmlConstructorInaccessible, typeName)); 1389return new InvalidOperationException(string.Format(ResXml.XmlConstructorHasSecurityAttributes, typeName)); 1395return new InvalidOperationException(string.Format(ResXml.XmlUnknownNode, CurrentTag())); 1414return new InvalidCastException(string.Format(ResXml.XmlInvalidNullCast, type.FullName)); 1520if (!href.StartsWith("#", StringComparison.Ordinal)) throw new InvalidOperationException(string.Format(ResXml.XmlMissingHref, href)); 1578throw new InvalidOperationException(string.Format(ResXml.XmlInvalidHref, id)); 1680if (arrayInfo.dimensions != 1) throw new InvalidOperationException(string.Format(ResXml.XmlInvalidArrayDimentions, CurrentTag())); 1766throw new NotSupportedException(string.Format(ResXml.XmlRpcArrayOfValueTypes, elementType.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (17)
468if (_objectsInUse.ContainsKey(o)) throw new InvalidOperationException(string.Format(ResXml.XmlCircularReference, o.GetType().FullName)); 517throw new InvalidOperationException(string.Format(ResXml.XmlInvalidXmlns, alias)); 642if (!_objectsInUse.ContainsKey(o)) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "missing stack object of type " + o.GetType().FullName)); 816if (typeof(IXmlSerializable).IsAssignableFrom(type)) return new InvalidOperationException(string.Format(ResXml.XmlInvalidSerializable, type.FullName)); 818if (!typeDesc.IsStructLike) return new InvalidOperationException(string.Format(ResXml.XmlInvalidUseOfType, type.FullName)); 819return new InvalidOperationException(string.Format(ResXml.XmlUnxpectedType, type.FullName)); 863return new InvalidOperationException(string.Format(ResXml.XmlIllegalAnyElement, type.FullName)); 1319if (!typeof(IEnumerable).IsAssignableFrom(type)) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "not array like type " + type.FullName)); 1680if (methodName == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace); 1727if (defaultValue.GetType() != typeof(string)) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, name + " has invalid default type " + defaultValue.GetType().Name)); 2026if (enumSource == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping.")); 2254if (methodName == null) throw new InvalidOperationException("deriaved from " + mapping.TypeDesc.FullName + ", " + string.Format(ResXml.XmlInternalErrorMethod, derived.TypeDesc.Name) + Environment.StackTrace); 2292if (methodName == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace); 3376if (methodName == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace); 3590throw new InvalidOperationException(string.Format(ResXml.XmlUnsupportedDefaultType, type.FullName)); 3700throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingAnyValue, choiceMapping.TypeDesc.FullName)); 4018throw new InvalidOperationException(string.Format(ResXml.XmlSerializerUnsupportedType, memberInfos[0].ToString()));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (7)
132if (methodName == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace); 204if (defaultValue.GetType() != typeof(string)) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, name + " has invalid default type " + defaultValue.GetType().Name)); 530if (enumSource == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping.")); 772if (methodName == null) throw new InvalidOperationException("deriaved from " + mapping.TypeDesc.FullName + ", " + string.Format(ResXml.XmlInternalErrorMethod, derived.TypeDesc.Name) + Environment.StackTrace); 823if (methodName == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace); 2111if (methodName == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorMethod, mapping.TypeDesc.Name) + Environment.StackTrace); 2412throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingAnyValue, choiceMapping.TypeDesc.FullName));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializer.cs (4)
370throw new InvalidOperationException(string.Format(ResXml.XmlInvalidEncodingNotEncoded1, encodingStyle)); 460throw new InvalidOperationException(string.Format(ResXml.XmlInvalidEncodingNotEncoded1, encodingStyle)); 839throw new InvalidOperationException(string.Format(ResXml.XmlUnxpectedType, _primitiveType.FullName)); 913throw new InvalidOperationException(string.Format(ResXml.XmlUnxpectedType, _primitiveType.FullName));
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (1)
1785return new ArgumentException(string.Format(res, arg));
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\XPathArrayIterator.cs (1)
58throw new InvalidOperationException(string.Format(ResXml.Sch_EnumNotStarted, string.Empty));
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNodeIterator.cs (2)
70throw new InvalidOperationException(string.Format(ResXml.Sch_EnumFinished, string.Empty)); 76throw new InvalidOperationException(string.Format(ResXml.Sch_EnumNotStarted, string.Empty));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\Attributes.cs (3)
138throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.InvalidXsIdDefinition, Id))); 147throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.InvalidXsRefDefinition, Ref))); 160throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.InvalidSizeDefinition, ArraySZSize)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (4)
562new SecurityException(string.Format( 581new SecurityException(string.Format( 666new SecurityException(string.Format( 1401throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.NonAttributedSerializableTypesMustHaveDefaultConstructor, DataContract.GetClrTypeFullName(type))));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (2)
436throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.CannotComputeUniqueName, typeName))); 1511throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.CannotComputeUniqueName, nsFragment)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (7)
763throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.CannotLoadMemberType, "Unknown"))); 833throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.CanOnlyStoreIntoArgOrLocGot0, DataContract.GetClrTypeFullName(var.GetType())))); 1025throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.UnknownConstantType, DataContract.GetClrTypeFullName(valueType)))); 1276throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.ArrayTypeIsNotSupported, DataContract.GetClrTypeFullName(arrayElementType)))); 1338throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.ArrayTypeIsNotSupported, DataContract.GetClrTypeFullName(arrayElementType)))); 1514throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.NoConversionPossibleTo, DataContract.GetClrTypeFullName(target)))); 1575throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.ExpectingEnd, expected.ToString())));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CollectionDataContract.cs (16)
548throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.GetOnlyCollectionMustHaveAddMethod, GetClrTypeFullName(UnderlyingType)))); 631throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.InvalidCollectionContractItemName, DataContract.GetClrTypeFullName(UnderlyingType)))); 638throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.InvalidCollectionContractKeyName, DataContract.GetClrTypeFullName(UnderlyingType)))); 646throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.InvalidCollectionContractValueName, DataContract.GetClrTypeFullName(UnderlyingType)))); 691throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.CollectionMustHaveGetEnumeratorMethod, DataContract.GetClrTypeFullName(type)))); 693throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.CollectionMustHaveAddMethod, DataContract.GetClrTypeFullName(type)))); 695throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.CollectionMustHaveItemType, DataContract.GetClrTypeFullName(type)))); 1199throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(GetInvalidCollectionMessage(message, string.Format(SRSerialization.InvalidCollectionDataContract, DataContract.GetClrTypeFullName(type)), param))); 1206dataContract = new CollectionDataContract(type, GetInvalidCollectionMessage(message, string.Format(SRSerialization.InvalidCollectionType, DataContract.GetClrTypeFullName(type)), param)); 1215return (param == null) ? string.Format(message, nestedMessage) : string.Format(message, nestedMessage, param); 1314throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.CollectionTypeDoesNotHaveDefaultCtor, DataContract.GetClrTypeFullName(this.UnderlyingType)))); 1339new SecurityException(string.Format( 1351new SecurityException(string.Format( 1363new SecurityException(string.Format( 1399new SecurityException(string.Format( 1411new SecurityException(string.Format(
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ContractCodeDomInfo.cs (2)
28throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.CannotSetNamespaceForReferencedType, TypeReference.BaseType))); 37throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.CannotSetMembersForReferencedType, TypeReference.BaseType)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (20)
148throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SerializationException(string.Format(SRSerialization.ErrorDeserializing, string.Format(SRSerialization.ErrorTypeInfo, DataContract.GetClrTypeFullName(dataContract.UnderlyingType)), string.Format(SRSerialization.NoSetMethodForProperty, string.Empty, string.Empty)))); 717ThrowInvalidDataContractException(string.Format(SRSerialization.TypeNotSerializable, type), type); 774ThrowInvalidDataContractException(string.Format(SRSerialization.TypeNotSerializable, type), type); 1322throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.RecursiveCollectionType, GetClrTypeFullName(itemType)))); 1452throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.InvalidDataContractName, DataContract.GetClrTypeFullName(type)))); 1464throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.InvalidDataContractNamespace, DataContract.GetClrTypeFullName(type)))); 1543throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.TooManyDataContracts, DataContract.GetClrTypeFullName(type)))); 1585throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.TooManyCollectionContracts, DataContract.GetClrTypeFullName(type)))); 1592throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.InvalidCollectionContractName, DataContract.GetClrTypeFullName(type)))); 1604throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.InvalidCollectionContractNamespace, DataContract.GetClrTypeFullName(type)))); 1798ThrowInvalidDataContractException(string.Format(SRSerialization.DataContractNamespaceIsNotValid, dataContractNs), type); 1805ThrowInvalidDataContractException(string.Format(SRSerialization.DataContractNamespaceReserved, Globals.SerializationNamespace), type); 1808ThrowInvalidDataContractException(string.Format(SRSerialization.DataContractNamespaceIsNotValid, dataContractNs), type); 1851throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.InvalidGlobalDataContractNamespace, clrNs))); 2088DataContract.ThrowInvalidDataContractException(string.Format(SRSerialization.KnownTypeAttributeOneScheme, DataContract.GetClrTypeFullName(type)), type); 2098DataContract.ThrowInvalidDataContractException(string.Format(SRSerialization.KnownTypeAttributeOneScheme, DataContract.GetClrTypeFullName(type)), type); 2104DataContract.ThrowInvalidDataContractException(string.Format(SRSerialization.KnownTypeAttributeNoData, DataContract.GetClrTypeFullName(type)), type); 2108DataContract.ThrowInvalidDataContractException(string.Format(SRSerialization.KnownTypeAttributeEmptyString, DataContract.GetClrTypeFullName(type)), type); 2120DataContract.ThrowInvalidDataContractException(string.Format(SRSerialization.KnownTypeAttributeMethodNull, DataContract.GetClrTypeFullName(type)), type); 2126DataContract.ThrowInvalidDataContractException(string.Format(SRSerialization.KnownTypeAttributeValidMethodTypes, DataContract.GetClrTypeFullName(type)), type);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSerializer.cs (4)
308throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.ExceededMaxItemsQuota, MaxItemsInObjectGraph))); 325throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.IsAnyCannotBeNull, declaredType))); 397throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.ExceededMaxItemsQuota, MaxItemsInObjectGraph))); 427throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationExceptionWithReaderDetails(string.Format(SRSerialization.ExpectingElementAtDeserialize, XmlNodeType.Element), xmlReader));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContractSet.cs (2)
107throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.GenericTypeNotExportable, type))); 477throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\HybridObjectCache.cs (1)
28throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.MultipleIdDefinition, id)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\PrimitiveDataContract.cs (1)
161throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.CannotDeserializeRefAtTopLevel, attributes.Ref)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaExporter.cs (2)
24throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.InvalidXmlDataContractName, DataContract.GetClrTypeFullName(type)))); 53throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.InvalidGetSchemaMethod, DataContract.GetClrTypeFullName(clrType))));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (19)
55throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.CouldNotReadSerializationSchema, Globals.SerializationNamespace))); 380throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.CannotComputeUniqueName, element.Name))); 875ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.ISerializableWildcardMinOccursMustBe, iSerializableWildcardElement.MinOccurs)); 877ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.ISerializableWildcardMaxOccursMustBe, iSerializableWildcardElement.MaxOccursString)); 879ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.ISerializableWildcardNamespaceInvalid, iSerializableWildcardElement.Namespace)); 881ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.ISerializableWildcardProcessContentsInvalid, iSerializableWildcardElement.ProcessContents)); 965ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.ElementMinOccursMustBe, element.Name)); 967ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.ElementMaxOccursMustBe, element.Name)); 978ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.FormMustBeQualified, element.Name)); 1016ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.CannotHaveDuplicateElementNames, memberName)); 1076ThrowArrayTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.ArrayItemFormMustBe, element.Name)); 1112ThrowArrayTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.InvalidKeyValueType, element.Name)); 1364ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.AbstractElementNotSupported, element.Name)); 1366ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.DefaultOnElementNotSupported, element.Name)); 1368ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.FixedOnElementNotSupported, element.Name)); 1370ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.SubstitutionGroupOnElementNotSupported, element.Name)); 1395ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.TypeShouldNotContainAttributes, Globals.SerializationNamespace)); 1407ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.CannotHaveDuplicateAttributeNames, refName.Name)); 1474throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.TypeCannotBeImportedHowToFix, message)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlDataContract.cs (6)
235throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.IXmlSerializableCannotHaveDataContract, DataContract.GetClrTypeFullName(type)))); 237throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.IXmlSerializableCannotHaveCollectionDataContract, DataContract.GetClrTypeFullName(type)))); 270throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.IsAnyCannotHaveXmlRoot, DataContract.GetClrTypeFullName(UnderlyingType)))); 364throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.IXmlSerializableMustHaveDefaultConstructor, DataContract.GetClrTypeFullName(type)))); 461new SecurityException(string.Format(SRSerialization.PartialTrustIXmlSerializableTypeNotPublic, DataContract.GetClrTypeFullName(UnderlyingType)), 472new SecurityException(string.Format(SRSerialization.PartialTrustIXmlSerialzableNoPublicConstructor, DataContract.GetClrTypeFullName(UnderlyingType)),
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatReaderGenerator.cs (3)
405ThrowValidationException(string.Format(SRSerialization.ValueTypeCannotBeNull, DataContract.GetClrTypeFullName(type))); 421ThrowValidationException(string.Format(SRSerialization.ValueTypeCannotHaveId, DataContract.GetClrTypeFullName(type))); 444ThrowValidationException(string.Format(SRSerialization.ValueTypeCannotHaveRef, DataContract.GetClrTypeFullName(type)));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializer.cs (2)
144throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.XmlWriterMustBeInElement, writer.WriteState))); 383string typeInfo = (type == null) ? string.Empty : string.Format(SRSerialization.ErrorTypeInfo, DataContract.GetClrTypeFullName(type));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerContext.cs (3)
94throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.ExceededMaxItemsQuota, _maxItemsInObjectGraph))); 170throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.TypeNotSerializable, memberType))); 209throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.NullKnownType, "knownTypes")));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (5)
72throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.NullValueReturnedForGetOnlyCollection, DataContract.GetClrTypeFullName(type)))); 134throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.ErrorDeserializing, string.Format(SRSerialization.ErrorTypeInfo, DataContract.GetClrTypeFullName(declaredType)), string.Format(SRSerialization.XmlStartElementExpected, Globals.RefLocalName)))); 437throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.DeserializedObjectWithIdNotFound, id))); 573return XmlObjectSerializer.CreateSerializationExceptionWithReaderDetails(string.Format(SRSerialization.ExpectingState, expectedState), xmlReader);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerReadContextComplex.cs (4)
99throw XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.AssemblyNotFound, assemblyName)); 126throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.SurrogatesWithGetOnlyCollectionsNotSupportedSerDeser, DataContract.GetClrTypeFullName(declaredType)))); 179throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.TypeNotSerializable, memberType))); 198throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.SurrogatesWithGetOnlyCollectionsNotSupportedSerDeser,
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (2)
422throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.CannotSerializeObjectWithCycles, DataContract.GetClrTypeFullName(obj.GetType())))); 571throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.UnknownXmlType, DataContract.GetClrTypeFullName(obj.GetType()))));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlObjectSerializerWriteContextComplex.cs (2)
222throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.TypeNotSerializable, memberType))); 241throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.SurrogatesWithGetOnlyCollectionsNotSupportedSerDeser,
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlReaderDelegator.cs (1)
228throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRSerialization.XmlStartElementExpected, "EndElement")));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlSerializableWriter.cs (3)
27throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.IXmlSerializableMissingEndElements, (_obj == null ? string.Empty : DataContract.GetClrTypeFullName(_obj.GetType()))))); 56throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.IXmlSerializableWritePastSubTree, (_obj == null ? string.Empty : DataContract.GetClrTypeFullName(_obj.GetType()))))); 64throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(string.Format(SRSerialization.IXmlSerializableWritePastSubTree, (_obj == null ? string.Empty : DataContract.GetClrTypeFullName(_obj.GetType())))));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlWriterDelegator.cs (1)
289return new InvalidDataContractException(string.Format(SRSerialization.InvalidPrimitiveType, DataContract.GetClrTypeFullName(type)));
FrameworkFork\System.Runtime.Serialization\System\Text\Base64Encoding.cs (18)
42throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(SRSerialization.XmlInvalidBase64Length, charCount.ToString(NumberFormatInfo.CurrentInfo)))); 70throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 74throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - index))); 79throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(SRSerialization.XmlInvalidBase64Length, count.ToString(NumberFormatInfo.CurrentInfo)))); 130throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 135throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charCount", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - charIndex))); 142throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, bytes.Length))); 147throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(SRSerialization.XmlInvalidBase64Length, charCount.ToString(NumberFormatInfo.CurrentInfo)))); 213throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 218throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charCount", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - charIndex))); 225throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, bytes.Length))); 230throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(string.Format(SRSerialization.XmlInvalidBase64Length, charCount.ToString(NumberFormatInfo.CurrentInfo)))); 306throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, bytes.Length))); 310throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteCount", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex))); 318throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 400throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, bytes.Length))); 404throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("byteCount", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex))); 412throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length)));
FrameworkFork\System.Runtime.Serialization\System\Text\BinHexEncoding.cs (7)
40throw new FormatException(string.Format(SRSerialization.XmlInvalidBinHexLength, charCount.ToString(NumberFormatInfo.CurrentInfo))); 57throw new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length)); 61throw new ArgumentOutOfRangeException("charCount", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - charIndex)); 67throw new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, bytes.Length)); 128throw new ArgumentOutOfRangeException("byteIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, bytes.Length)); 132throw new ArgumentOutOfRangeException("byteCount", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, bytes.Length - byteIndex)); 139throw new ArgumentOutOfRangeException("charIndex", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length));
FrameworkFork\System.Runtime.Serialization\System\Text\SurrogateChar.cs (3)
27throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlInvalidSurrogate, ch.ToString("X", CultureInfo.InvariantCulture)), "ch")); 38throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlInvalidLowSurrogate, ((int)lowChar).ToString("X", CultureInfo.InvariantCulture)), "lowChar")); 41throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlInvalidHighSurrogate, ((int)highChar).ToString("X", CultureInfo.InvariantCulture)), "highChar"));
FrameworkFork\System.Runtime.Serialization\System\Xml\UniqueId.cs (8)
91throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, guid.Length))); 93throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlArrayTooSmallInput, guidLength), "guid")); 131throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 135throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 275throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 278throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("chars", string.Format(SRSerialization.XmlArrayTooSmallOutput, count))); 362throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, buffer.Length))); 365throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("buffer", string.Format(SRSerialization.XmlArrayTooSmallOutput, guidLength)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseReader.cs (7)
528throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("index", string.Format(SRSerialization.OffsetExceedsBufferSize, _attributeCount))); 1150throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, chars.Length))); 1154throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 1180throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, buffer.Length))); 1184throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1340throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, buffer.Length))); 1344throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, buffer.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseWriter.cs (13)
242throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlUndefinedPrefix, prefix), "prefix")); 322throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlInvalidXmlSpace, _attributeValue))); 375throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlInvalidXmlSpace, _attributeValue))); 465throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRSerialization.XmlMethodNotSupported, "WriteDocType"))); 493throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlUndefinedPrefix, prefix), "prefix")); 547throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlUndefinedPrefix, prefix), "prefix")); 780throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlNamespaceNotFound, namespaceUri), "namespaceUri")); 909throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRSerialization.XmlMethodNotSupported, "WriteEntityRef"))); 922throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRSerialization.XmlMethodNotSupported, "WriteNmToken"))); 1009throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 1066throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, chars.Length - offset))); 1436throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1605throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.XmlInvalidPrefixState, WriteState.ToString())));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryReader.cs (4)
42throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, buffer.Length))); 46throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, buffer.Length - offset))); 1212throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, array.Length))); 1216throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, array.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryWriter.cs (2)
1274throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, array.Length))); 1278throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, array.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlConverter.cs (1)
493throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRSerialization.XmlInvalidQualifiedName, qname)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryReader.cs (2)
898throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, array.Length))); 902throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, array.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryReaderQuotas.cs (5)
98throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.QuotaIsReadOnly, "MaxStringContentLength"))); 116throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.QuotaIsReadOnly, "MaxArrayLength"))); 134throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.QuotaIsReadOnly, "MaxBytesPerRead"))); 153throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.QuotaIsReadOnly, "MaxDepth"))); 172throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.QuotaIsReadOnly, "MaxNameTableCharCount")));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryWriter.cs (2)
410throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, array.Length))); 414throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, array.Length - offset)));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlExceptionHelper.cs (6)
73return string.Format(SRSerialization.XmlFoundText, reader.Value); 75return string.Format(SRSerialization.XmlFoundComment, reader.Value); 77return string.Format(SRSerialization.XmlFoundCData, reader.Value); 79return string.Format(SRSerialization.XmlFoundNodeType, reader.NodeType); 264return new XmlException(string.Format(SRSerialization.XmlInvalidConversionWithoutValue, type), exception); 279return new XmlException(string.Format(SRSerialization.XmlInvalidUTF8Bytes, value), exception);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlUTF8TextReader.cs (2)
569throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", string.Format(SRSerialization.OffsetExceedsBufferSize, buffer.Length))); 573throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("count", string.Format(SRSerialization.SizeExceedsRemainingBufferSpace, buffer.Length - offset)));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\TimeoutHelper.cs (1)
228return new TimeoutException(string.Format(SRServiceModel.LockTimeoutExceptionMessage, timeout));
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\KerberosSecurityTokenProvider.cs (1)
38string.Format(SRServiceModel.ImpersonationLevelNotSupported, tokenImpersonationLevel)));
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\SecurityTokenProvider.cs (4)
31throw Fx.Exception.AsError(new SecurityTokenException(string.Format(SRServiceModel.TokenProviderUnableToGetToken, this))); 45throw Fx.Exception.AsError(new SecurityTokenException(string.Format(SRServiceModel.TokenProviderUnableToRenewToken, this))); 64throw Fx.Exception.AsError(new NotSupportedException(string.Format(SRServiceModel.TokenRenewalNotSupported, this))); 69throw Fx.Exception.AsError(new NotSupportedException(string.Format(SRServiceModel.TokenCancellationNotSupported, this)));
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\SecurityTokenRequirement.cs (1)
151throw Fx.Exception.Argument(propertyName, string.Format(SRServiceModel.SecurityTokenRequirementDoesNotContainProperty, propertyName));
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\SecurityTokenResolver.cs (4)
23throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(string.Format(SRServiceModel.UnableToResolveTokenReference, keyIdentifier))); 46throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(string.Format(SRServiceModel.UnableToResolveTokenReference, keyIdentifierClause))); 69throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new InvalidOperationException(string.Format(SRServiceModel.UnableToResolveKeyReference, keyIdentifierClause))); 89throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException(string.Format(SRServiceModel.ID0023, this.GetType().AssemblyQualifiedName)));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\KerberosRequestorSecurityToken.cs (1)
29string.Format(SRServiceModel.ImpersonationLevelNotSupported, tokenImpersonationLevel)));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\KeyInfoSerializer.cs (1)
318throw /*System.ServiceModel.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.StandardsManagerCannotWriteObject, keyIdentifierClause.GetType())));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SecurityKeyIdentifier.cs (1)
97throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.NoKeyIdentifierClauseFound, typeof(TClause)), "TClause"));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SymmetricKey.cs (1)
30throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.SymmetricKeyLengthTooShort, symmetricKey.Length)));
FrameworkFork\System.ServiceModel\System\IdentityModel\XD.cs (15)
189throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 381throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 431throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 501throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 569throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 665throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 689throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 800throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 857throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 946throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 1094throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 1216throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 1255throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 1336throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value)); 1441throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.XDCannotFindValueInDictionaryString, value));
FrameworkFork\System.ServiceModel\System\ServiceModel\BasicHttpBinding.cs (1)
109throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.HttpClientCredentialTypeInvalid, BasicHttpSecurity.Transport.ClientCredentialType)));
FrameworkFork\System.ServiceModel\System\ServiceModel\BasicHttpsBinding.cs (1)
65throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.HttpClientCredentialTypeInvalid, BasicHttpSecurity.Transport.ClientCredentialType)));
FrameworkFork\System.ServiceModel\System\ServiceModel\BasicHttpSecurity.cs (2)
24Fx.Assert(BasicHttpSecurityModeHelper.IsDefined(mode), string.Format("Invalid BasicHttpSecurityMode value: {0}.", mode.ToString())); 123Fx.Assert(BasicHttpSecurityModeHelper.IsDefined(basicHttpSecurityMode), string.Format("Invalid BasicHttpSecurityMode value: {0}.", basicHttpSecurityMode.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\CallbackBehaviorAttribute.cs (2)
44string.Format(SRServiceModel.SFxCallbackBehaviorAttributeOnlyOnDuplex, serviceEndpoint.Contract.Name))); 61string.Format(SRServiceModel.SFXEndpointBehaviorUsedOnWrongSide, typeof(CallbackBehaviorAttribute).Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\ChannelFactory.cs (11)
158throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxChannelFactoryNoBindingFoundInConfig1, _configurationName))); 421ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, typeof(TChannel).FullName), ActivityType.Construct); 441ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, typeof(TChannel).FullName), ActivityType.Construct); 471ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, typeof(TChannel).FullName), ActivityType.Construct); 490ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, typeof(TChannel).FullName), ActivityType.Construct); 554throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxCreateNonDuplexChannel1, this.Endpoint.Contract.Name))); 588throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SfxCallbackTypeCannotBeNull, endpoint.Contract.ContractType.FullName))); 597throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SfxCallbackTypeCannotBeNull, endpoint.Contract.ContractType.FullName))); 625throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInvalidStaticOverloadCalledForDuplexChannelFactory1, channelFactory._channelType.Name))); 639throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInvalidStaticOverloadCalledForDuplexChannelFactory1, channelFactory._channelType.Name))); 653throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInvalidStaticOverloadCalledForDuplexChannelFactory1, channelFactory._channelType.Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AddressingVersion.cs (1)
175return string.Format(_toStringFormat, Namespace);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ApplicationContainerSettings.cs (1)
46throw FxTrace.Exception.Argument("value", string.Format(SRServiceModel.SessionValueInvalid, value));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AsymmetricSecurityBindingElement.cs (8)
108throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 114throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 456throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidChannelBindingException(string.Format(SRServiceModel.PolicyRequiresConfidentialityWithoutIntegrity, action))); 503throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 509throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 539throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 563throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 603throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncoder.cs (3)
399string excMsg = string.Format(SRServiceModel.MaxSentMessageSizeExceeded, maxMessageSize); 469string message = string.Format(SRServiceModel.BinaryEncoderSessionTooLarge, _maxSessionSize); 664string excMsg = string.Format(SRServiceModel.MaxSentMessageSizeExceeded, maxMessageSize);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Binding.cs (5)
187new InvalidOperationException(string.Format(SRServiceModel.SecurityCapabilitiesMismatched, this))); 234string.Format(SRServiceModel.CustomBindingRequiresTransport, this.Name))); 239string.Format(SRServiceModel.SFxCustomBindingNeedsTransport1, contractName))); 250string.Format(SRServiceModel.InvalidBindingScheme, transport.GetType().Name))); 256string.Format(SRServiceModel.MessageVersionMissingFromBinding, this.Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BindingContext.cs (1)
134throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.NotAllBindingElementsBuilt, builder.ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BufferManagerOutputStream.cs (1)
43string excMsg = string.Format(_quotaExceededString, maxSizeQuota);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelFactoryBase.cs (1)
154throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ChannelFactoryCannotBeUsedToCreateChannels, this.GetType().ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelManagerBase.cs (1)
48return new ArgumentException(string.Format(SRServiceModel.ChannelTypeNotSupported, type), "TChannel");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ChannelRequirements.cs (7)
348return new InvalidOperationException(string.Format(SRServiceModel.BindingDoesnTSupportAnyChannelTypes1, bindingName)); 352return new InvalidOperationException(string.Format(SRServiceModel.BindingDoesnTSupportSessionButContractRequires1, bindingName)); 356return new InvalidOperationException(string.Format(SRServiceModel.BindingDoesntSupportDatagramButContractRequires, bindingName)); 360return new InvalidOperationException(string.Format(SRServiceModel.BindingDoesnTSupportDuplexButContractRequires1, bindingName)); 364return new InvalidOperationException(string.Format(SRServiceModel.BindingDoesnTSupportRequestReplyButContract1, bindingName)); 368return new InvalidOperationException(string.Format(SRServiceModel.BindingDoesnTSupportOneWayButContractRequires1, bindingName)); 372return new InvalidOperationException(string.Format(SRServiceModel.BindingDoesnTSupportTwoWayButContractRequires1, bindingName));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (5)
159throw FxTrace.Exception.AsError(new CommunicationException(string.Format(SRServiceModel.WebSocketVersionMismatchFromServer, ""), ex)); 161throw FxTrace.Exception.AsError(new CommunicationException(string.Format(SRServiceModel.WebSocketSubProtocolMismatchFromServer, ""), ex)); 224throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(SRServiceModel.ClientWebSocketFactory_CreateWebSocketFailed, _connectionFactory.GetType().Name), e)); 230throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(SRServiceModel.ClientWebSocketFactory_InvalidWebSocket, _connectionFactory.GetType().Name))); 236throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(SRServiceModel.ClientWebSocketFactory_InvalidWebSocket, _connectionFactory.GetType().Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CommunicationObject.cs (2)
248string message = string.Format(SRServiceModel.CommunicationObjectFaulted1, this.GetCommunicationObjectType().ToString()); 254return new CommunicationObjectAbortedException(string.Format(SRServiceModel.CommunicationObjectAborted1, this.GetCommunicationObjectType().ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CompositeDuplexBindingElement.cs (1)
59string.Format(SRServiceModel.ChannelTypeNotSupported, typeof(TChannel)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Connection.cs (2)
791throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("offset", offset, string.Format(SRServiceModel.OffsetExceedsBufferSize, bufferSize))); 802throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("size", size, string.Format(
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPool.cs (1)
572WcfEventSource.Instance.MaxOutboundConnectionsPerEndpointExceeded(string.Format(SRServiceModel.TraceCodeConnectionPoolMaxOutboundConnectionsPerEndpointQuotaReached, _maxCount));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ConnectionPoolHelper.cs (1)
233string.Format(SRServiceModel.OperationAbortedDuringConnectionEstablishment, _via)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (5)
132new CommunicationException(string.Format(SRServiceModel.SocketCloseReadReceivedData, thisPtr.RemoteEndPoint))); 254new CommunicationException(string.Format(SRServiceModel.SocketCloseReadReceivedData, RemoteEndPoint))); 298new CommunicationException(string.Format(SRServiceModel.SocketCloseReadReceivedData, RemoteEndPoint))); 803new TimeoutException(string.Format(SRServiceModel.TcpConnectionTimedOut, timeout))); 843new TimeoutException(string.Format(SRServiceModel.TcpConnectionTimedOut, timeout)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\DnsCache.cs (2)
96new EndpointNotFoundException(string.Format(SRServiceModel.DnsResolveFailed, hostName))); 125new EndpointNotFoundException(string.Format(SRServiceModel.DnsResolveFailed, hostName), dnsException));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FaultConverter.cs (4)
36string text = string.Format(SRServiceModel.FaultConverterDidNotCreateException, this.GetType().Name); 45string text = string.Format(SRServiceModel.FaultConverterCreatedException, this.GetType().Name); 62string text = string.Format(SRServiceModel.FaultConverterDidNotCreateFaultMessage, this.GetType().Name); 71string text = string.Format(SRServiceModel.FaultConverterCreatedFaultMessage, this.GetType().Name);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingChannels.cs (4)
325new TimeoutException(string.Format(SRServiceModel.TimeoutOnOpen, timeout), exception)); 353new TimeoutException(string.Format(SRServiceModel.TimeoutOnOpen, timeout), exception)); 395new CommunicationObjectAbortedException(string.Format(SRServiceModel.DuplexChannelAbortedDuringOpen, this.Via))); 608new ProtocolException(string.Format(SRServiceModel.ServerRejectedSessionPreamble, via),
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingDecoders.cs (17)
216Exception result = new InvalidDataException(string.Format(SRServiceModel.FramingViaTooLong, size)); 230throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataException(string.Format(SRServiceModel.FramingViaNotUri, value), exception)); 256return new InvalidDataException(string.Format(SRServiceModel.FramingFaultTooLong, size)); 263return new EndpointNotFoundException(string.Format(SRServiceModel.EndpointNotFound, via)); 271return new ServiceActivationException(string.Format(SRServiceModel.Hosting_ServiceActivationFailed, via)); 275return new CommunicationException(string.Format(SRServiceModel.Sharing_ConnectionDispatchFailed, via)); 279return new EndpointNotFoundException(string.Format(SRServiceModel.Sharing_EndpointUnavailable, via)); 288return new ProtocolException(string.Format(SRServiceModel.FramingModeNotSupportedFault, via)); 292return new ProtocolException(string.Format(SRServiceModel.FramingVersionNotSupportedFault, via)); 296Exception inner = new QuotaExceededException(string.Format(SRServiceModel.FramingContentTypeTooLongFault, contentType)); 301Exception inner = new QuotaExceededException(string.Format(SRServiceModel.FramingViaTooLongFault, via)); 306return new ServerTooBusyException(string.Format(SRServiceModel.ServerTooBusy, via)); 310return new ProtocolException(string.Format(SRServiceModel.FramingUpgradeInvalid, via)); 314return new ProtocolException(string.Format(SRServiceModel.FramingFaultUnrecognized, faultString)); 328Exception result = new InvalidDataException(string.Format(SRServiceModel.FramingContentTypeTooLong, size)); 393Exception exception = CreateException(new InvalidDataException(string.Format( 436Exception exception = CreateException(new InvalidDataException(string.Format(
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingEncoders.cs (2)
225messageFrame.Offset, string.Format(SRServiceModel.SpaceNeededExceedsMessageFrameOffset, spaceNeeded))); 310messageFrame.Offset, string.Format(SRServiceModel.SpaceNeededExceedsMessageFrameOffset, spaceNeeded)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (3)
96throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", string.Format(SRServiceModel.HttpRequiresSingleAuthScheme, 1144new ProtocolException(string.Format(SRServiceModel.HttpIfModifiedSinceParseError, value))); 1191new ProtocolException(string.Format(SRServiceModel.EnvelopeVersionUnknown,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelHelpers.cs (4)
137return new CommunicationException(string.Format(SRServiceModel.HttpReceiveFailure, request.RequestUri), exception); 139return new EndpointNotFoundException(string.Format(SRServiceModel.EndpointNotFound, request.RequestUri.AbsoluteUri), exception); 141return new SecurityNegotiationException(string.Format(SRServiceModel.TrustFailure, request.RequestUri.Authority), exception); 214string.Format(SRServiceModel.OffsetExceedsBufferBound, buffer.Length - 1)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageHelper.cs (8)
92result = new ProtocolException(string.Format(SRServiceModel.HttpAddressingNoneHeaderOnWire, 111result = new ProtocolException(string.Format(SRServiceModel.HttpAddressingNoneHeaderOnWire, 250WcfEventSource.Instance.MaxReceivedMessageSizeExceeded(string.Format(SRServiceModel.MaxReceivedMessageSizeExceeded, _factory.MaxReceivedMessageSize)); 253string message = string.Format(SRServiceModel.MaxReceivedMessageSizeExceeded, _factory.MaxReceivedMessageSize); 323throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new EndpointNotFoundException(string.Format(SRServiceModel.EndpointNotFound, _httpRequestMessage.RequestUri.AbsoluteUri))); 328throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ServerTooBusyException(string.Format(SRServiceModel.HttpServerTooBusy, _httpRequestMessage.RequestUri.AbsoluteUri))); 338throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(string.Format(SRServiceModel.MissingContentType, _httpRequestMessage.RequestUri))); 365string message = string.Format(SRServiceModel.HttpAuthorizationForbidden, _factory.AuthenticationScheme);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpsTransportBindingElement.cs (2)
98throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(SRServiceModel.HttpPipelineNotSupportedOnClientSide, "MessageHandlerFactory"))); 103throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("TChannel", string.Format(SRServiceModel.ChannelTypeNotSupported, typeof(TChannel)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpTransportBindingElement.cs (4)
251string.Format(SRServiceModel.HttpMaxPendingAcceptsTooLargeError, HttpTransportDefaults.MaxPendingAcceptsUpperLimit))); 468throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(SRServiceModel.HttpPipelineNotSupportedOnClientSide, "MessageHandlerFactory"))); 479throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", string.Format(SRServiceModel.HttpAuthSchemeCannotBeNone, 484throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("value", string.Format(SRServiceModel.HttpRequiresSingleAuthScheme,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\IdlingCommunicationPool.cs (2)
332WcfEventSource.Instance.LeaseTimeout(string.Format(SRServiceModel.TraceCodeConnectionPoolLeaseTimeoutReached, _leaseTimeout), _parent.Key.ToString()); 340WcfEventSource.Instance.IdleTimeout(string.Format(SRServiceModel.TraceCodeConnectionPoolIdleTimeoutReached, _idleTimeout), _parent.Key.ToString());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\LifetimeManager.cs (3)
230throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(string.Format(SRServiceModel.SFxCloseTimedOut1, timeout))); 286throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new TimeoutException(string.Format(SRServiceModel.SFxCloseTimedOut1, timeout))); 325this.Complete(false, new TimeoutException(string.Format(SRServiceModel.SFxCloseTimedOut1, _timeout)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MaxMessageSizeStream.cs (2)
66string message = string.Format(SRServiceModel.MaxReceivedMessageSizeExceeded, maxMessageSize); 79string message = string.Format(SRServiceModel.MaxSentMessageSizeExceeded, maxMessageSize);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Message.cs (1)
1178throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.MessageBodyReaderInvalidReadState, bodyReader.ReadState.ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageFault.cs (2)
84throw TraceUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.EnvelopeVersionUnknown, envelopeVersion.ToString())), message); 285throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.EnvelopeVersionUnknown, version.ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeader.cs (1)
393throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.EnvelopeVersionUnknown, messageVersion.Envelope.ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeaders.cs (10)
520throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.InvalidEnumValue, header.HeaderType))); 580throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.InvalidEnumValue, kind))); 723string.Format(SRServiceModel.MultipleRelatesToHeaders, relationshipType.AbsoluteUri), 947new InvalidOperationException(string.Format(SRServiceModel.HeadersCannotBeAddedToEnvelopeVersion, _version.Envelope))); 956new InvalidOperationException(string.Format(SRServiceModel.AddressingHeadersCannotBeAddedToAddressingVersion, _version.Addressing))); 983throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.InvalidEnumValue, _headers[headerIndex].HeaderType))); 1081throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.InvalidEnumValue, _headers[index].HeaderType))); 1303new InvalidOperationException(string.Format(SRServiceModel.AddressingHeadersCannotBeAddedToAddressingVersion, _version.Addressing))); 1595throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.InvalidEnumValue, _headers[headerIndex].HeaderType))); 1627throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.InvalidEnumValue, _headers[headerIndex].HeaderType)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageProperties.cs (3)
53throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ObjectDisposedException(string.Empty, string.Format(SRServiceModel.ObjectDisposed, this.GetType().ToString()))); 67throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.MessagePropertyNotFound, name))); 636throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.DuplicateMessageProperty, name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageVersion.cs (4)
66string.Format(SRServiceModel.AddressingVersionNotSupported, addressingVersion)); 82string.Format(SRServiceModel.AddressingVersionNotSupported, addressingVersion)); 94string.Format(SRServiceModel.AddressingVersionNotSupported, addressingVersion)); 100string.Format(SRServiceModel.EnvelopeVersionNotSupported, envelopeVersion));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MtomMessageEncodingBindingElement.cs (2)
36throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.MtomEncoderBadMessageVersion, messageVersion.ToString()), "messageVersion")); 153throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.MtomEncoderBadMessageVersion, value.ToString()), "value"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ReliableSessionBindingElementImporter.cs (6)
72string.Format(SRServiceModel.MultipleVersionsFoundInPolicy, 266throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidChannelBindingException(string.Format(SRServiceModel.RequiredMillisecondsAttributeIncorrect, wsrmNode.LocalName), innerException)); 278throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidChannelBindingException(string.Format(SRServiceModel.MillisecondsNotConvertibleToBindingRange, wsrmNode.LocalName), exception)); 297throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidChannelBindingException(string.Format(SRServiceModel.MillisecondsNotConvertibleToBindingRange, localName), exception)); 309throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidChannelBindingException(string.Format(SRServiceModel.MillisecondsNotConvertibleToBindingRange, localName), exception)); 507string exceptionString = string.Format(SRServiceModel.DeliveryAssuranceRequiredNothingFound, wsrmNs);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\RequestChannel.cs (2)
284throw TraceUtility.ThrowHelperError(new TimeoutException(string.Format(SRServiceModel.RequestChannelSendTimedOut, savedTimeout), 296throw TraceUtility.ThrowHelperError(new TimeoutException(string.Format(SRServiceModel.RequestChannelWaitForReplyTimedOut, savedTimeout),
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannel.cs (7)
566throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxNonInitiatingOperation1, operation.Name))); 703ServiceModelActivity.Start(serviceModelActivity, string.Format(SRServiceModel.ActivityProcessAction, action), ActivityType.ProcessAction); 739ServiceModelActivity.Start(rpc.Activity, string.Format(SRServiceModel.ActivityProcessAction, action), ActivityType.ProcessAction); 886return new TimeoutException(string.Format(SRServiceModel.TimeoutServiceChannelConcurrentOpen1, timeout)); 1084string text = string.Format(SRServiceModel.SFxServiceChannelIdleAborted, operation.Name); 1104string text = string.Format(SRServiceModel.SFxInitializationUINotCalled, example.GetType().ToString()); 1123string text = string.Format(SRServiceModel.SFxInitializationUIDisallowed, example.GetType().ToString());
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (5)
34throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.FailedToCreateTypedProxy, typeof(TChannel)))); 82throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.SFxMethodNotSupported1, method.Name))); 84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.SFxMethodNotSupportedOnCallback1, method.Name))); 131throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.InvalidTypedProxyMethodHandle, _proxiedType.Name))); 328activityName = string.Format(SRServiceModel.ActivityClose, _serviceChannel.GetType().FullName);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SocketConnection.cs (9)
79thisPtr.Abort(string.Format(SRServiceModel.SocketAbortedReceiveTimedOut, thisPtr._receiveTimeout), TransferOperation.Read); 86string.Format(SRServiceModel.SocketAbortedSendTimedOut, thisPtr._sendTimeout), TransferOperation.Write); 222TimeoutException timeoutException = new TimeoutException(string.Format(SRServiceModel.TcpConnectionTimedOut, timeout), originalException); 236CommunicationException communicationException = new CommunicationException(string.Format(SRServiceModel.TcpConnectionResetError, timeout), originalException); 242TimeoutException timeoutException = new TimeoutException(string.Format(SRServiceModel.TcpConnectionTimedOut, timeout), originalException); 500new EndpointNotFoundException(string.Format(SRServiceModel.UnableToResolveHost, uri.Host), socketException)); 506new EndpointNotFoundException(string.Format(SRServiceModel.UnableToResolveHost, uri.Host))); 574new EndpointNotFoundException(string.Format(SRServiceModel.NoIPEndpointsFoundForHost, uri.Host))); 626new EndpointNotFoundException(string.Format(SRServiceModel.NoIPEndpointsFoundForHost, uri.Host)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SslStreamSecurityUpgradeProvider.cs (5)
170throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("upgradeInitiator", string.Format(SRServiceModel.UnsupportedUpgradeInitiator, upgradeInitiator.GetType())); 192throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("upgradeAcceptor", string.Format(SRServiceModel.UnsupportedUpgradeAcceptor, upgradeAcceptor.GetType())); 366string.Format(SRServiceModel.NegotiationFailedIO, ioException.Message), ioException)); 481throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ClientCredentialsUnableToCreateLocalTokenProvider, clientCertRequirement))); 616string.Format(SRServiceModel.NegotiationFailedIO, ioException.Message), ioException));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SynchronizedMessageSource.cs (4)
34new TimeoutException(string.Format(SRServiceModel.WaitForMessageTimedOut, timeout), 58new TimeoutException(string.Format(SRServiceModel.WaitForMessageTimedOut, timeout), 83new TimeoutException(string.Format(SRServiceModel.ReceiveTimedOut2, timeout), 108new TimeoutException(string.Format(SRServiceModel.ReceiveTimedOut2, timeout),
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TcpTransportBindingElement.cs (1)
66throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("TChannel", string.Format(SRServiceModel.ChannelTypeNotSupported, typeof(TChannel)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TextMessageEncoder.cs (3)
87string.Format(SRServiceModel.EnvelopeVersionNotSupported, version.Envelope))); 226throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ProtocolException(string.Format(SRServiceModel.EncoderUnrecognizedCharSet, charSet))); 305string.Format(SRServiceModel.EnvelopeVersionNotSupported, version.Envelope)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransactionFlowBindingElement.cs (2)
45throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.ConfigInvalidTransactionFlowProtocolValue, transactionProtocol.ToString())); 59throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.ConfigInvalidTransactionFlowProtocolValue, elementToBeCloned._transactionProtocol.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportDefaults.cs (1)
79throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.MessageTextEncodingNotSupported, charSet), "encoding"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportDuplexSessionChannel.cs (4)
288WcfEventSource.Instance.CloseTimeout(string.Format(SRServiceModel.CloseTimedOut, timeout)); 292string.Format(SRServiceModel.CloseTimedOut, timeout), 343WcfEventSource.Instance.CloseTimeout(string.Format(SRServiceModel.CloseTimedOut, timeout)); 347string.Format(SRServiceModel.CloseTimedOut, timeout),
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\UdpRetransmissionSettings.cs (10)
40string.Format(SRServiceModel.ArgumentOutOfMinRange, 0)); 46string.Format(SRServiceModel.ArgumentOutOfMinRange, 0)); 52throw FxTrace.Exception.ArgumentOutOfRange("delayLowerBound", delayLowerBound, string.Format(SRServiceModel.ArgumentOutOfMinRange, TimeSpan.Zero)); 57throw FxTrace.Exception.ArgumentOutOfRange("delayUpperBound", delayUpperBound, string.Format(SRServiceModel.ArgumentOutOfMinRange, TimeSpan.Zero)); 63string.Format(SRServiceModel.ArgumentOutOfMinRange, TimeSpan.Zero)); 96throw FxTrace.Exception.ArgumentOutOfRange("value", value, string.Format(SRServiceModel.ArgumentOutOfMinRange, min)); 114throw FxTrace.Exception.ArgumentOutOfRange("value", value, string.Format(SRServiceModel.ArgumentOutOfMinRange, min)); 130throw FxTrace.Exception.ArgumentOutOfRange("value", value, string.Format(SRServiceModel.ArgumentOutOfMinRange, TimeSpan.Zero)); 148throw FxTrace.Exception.ArgumentOutOfRange("value", value, string.Format(SRServiceModel.ArgumentOutOfMinRange, TimeSpan.Zero)); 166throw FxTrace.Exception.ArgumentOutOfRange("value", value, string.Format(SRServiceModel.ArgumentOutOfMinRange, TimeSpan.Zero));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\UdpTransportBindingElement.cs (3)
62string.Format(SRServiceModel.ArgumentOutOfMinRange, min)); 82string.Format(SRServiceModel.ArgumentOutOfMinRange, min)); 123string.Format(SRServiceModel.ArgumentOutOfMinRange, UdpConstants.MinReceiveBufferSize));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketHelper.cs (3)
223errorMsg = string.Format(SRServiceModel.CloseTimedOut, timeout); 226errorMsg = string.Format(SRServiceModel.WebSocketSendTimedOut, timeout); 229errorMsg = string.Format(SRServiceModel.WebSocketReceiveTimedOut, timeout);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (4)
524string.Format(SRServiceModel.WaitForMessageTimedOut, timeout), 547string.Format(SRServiceModel.WaitForMessageTimedOut, timeout), 592_pendingException = FxTrace.Exception.AsError(new QuotaExceededException(string.Format(SRServiceModel.MaxReceivedMessageSizeExceeded, _maxBufferSize))); 685WcfEventSource.Instance.ReceiveTimeout(string.Format(SRServiceModel.WaitForMessageTimedOut, timeout));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportSettings.cs (1)
105throw FxTrace.Exception.Argument("value", string.Format(SRServiceModel.WebSocketInvalidProtocolContainsMultipleSubProtocolString, value));
FrameworkFork\System.ServiceModel\System\ServiceModel\ClientBase.cs (3)
97ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityOpenClientBase, typeof(TChannel).FullName), ActivityType.OpenClient); 206ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityCloseClientBase, typeof(TChannel).FullName), ActivityType.Close); 577throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.SFxMethodNotSupported1, methodName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientCredentials.cs (2)
150throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.MultipleSecurityCredentialsManagersInChannelBindingParameters, otherCredentialsManager))); 158string.Format(SRServiceModel.SFXEndpointBehaviorUsedOnWrongSide, typeof(ClientCredentials).Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ContractDescription.cs (3)
221string.Format(SRServiceModel.SFxContractHasZeroOperations, this.Name))); 234string.Format(SRServiceModel.ContractIsNotSelfConsistentItHasOneOrMore2, this.Name))); 240string.Format(SRServiceModel.SFxContractHasZeroInitiatingOperations, this.Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
210throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxWrapperTypeHasMultipleNamespaces, messageName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (12)
453AddError(string.Format(SRServiceModel.SFxInconsistentWsdlOperationStyleInMessageParts, operationName)); 1175throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxSchemaNotFound, ns))); 1669throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxDataContractSerializerDoesNotSupportEncoded, part.Name))); 1700throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxDataContractSerializerDoesNotSupportBareArray, part.Name))); 1865throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxDataContractSerializerDoesNotSupportEncoded, operationName))); 1887throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxDataContractSerializerDoesNotSupportEncoded, operation.Name))); 2060throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxDocEncodedNotSupported, part.Name))); 2110throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxDocEncodedNotSupported, operationName))); 2184string reason = string.Format(SRServiceModel.XsdMissingRequiredAttribute1, "message"); 2192string reason = string.Format(SRServiceModel.XsdMissingRequiredAttribute1, "part"); 2204string reason = string.Format(SRServiceModel.XsdMissingRequiredAttribute1, "name"); 2217string reason = string.Format(SRServiceModel.XsdMissingRequiredAttribute1, "name");
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (11)
141throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", string.Format(SRServiceModel.SFxMaximumResolvedReferencesOutOfRange, value))); 203throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("scheme", string.Format(SRServiceModel.SFxMetadataExchangeClientCouldNotCreateChannelFactoryBadScheme, scheme)); 217throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("address", string.Format(SRServiceModel.SFxCannotGetMetadataFromRelativeAddress, address)); 222throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("address", string.Format(SRServiceModel.SFxCannotHttpGetMetadataFromAddress, address)); 637string.Format(SRServiceModel.SFxBadMetadataReference, this.SourceUrl), e)); 728throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("location", string.Format(SRServiceModel.SFxCannotGetMetadataFromLocation, location.ToString())); 817string.Format(SRServiceModel.SFxBadMetadataReference, this.SourceUrl), e)); 834string.Format(SRServiceModel.SFxBadMetadataReference, this.SourceUrl), e)); 979string.Format(SRServiceModel.SFxBadMetadataReference, this.SourceUrl), e)); 1068string.Format(SRServiceModel.SFxBadMetadataReference, this.SourceUrl), e)); 1136throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxBadMetadataReference,
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataLocation.cs (1)
33throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.SFxMetadataReferenceInvalidLocation, value));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationDescription.cs (1)
249throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new System.InvalidOperationException(string.Format(SRServiceModel.SFxOperationMustHaveOneOrTwoMessages, this.Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (11)
183_method.Comments.Add(new CodeCommentStatement(string.Format(SRServiceModel.SFxCodeGenWarning, SRServiceModel.SFxCannotImportAsParameters_OutputParameterAndTask))); 221method.Comments.Add(new CodeCommentStatement(string.Format(SRServiceModel.SFxCodeGenWarning, ex.Message))); 243throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_Message, _context.Operation.CodeName))); 744throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SfxNoTypeSpecifiedForParameter, setting.Name))); 889throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_MessageHasProtectionLevel, parent._request.Action == null ? "" : parent._request.Action))); 893throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_MessageHasProtectionLevel, parent._response.Action == null ? "" : parent._response.Action))); 900throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_Bare, parent._context.Operation.CodeName))); 925parent._context.Contract.ServiceContractGenerator.Errors.Add(new MetadataConversionError(string.Format(SRServiceModel.SFxCannotImportAsParameters_HeadersAreIgnoredInEncoded, parent._request.MessageName), true/*isWarning*/)); 928throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_HeadersAreUnsupported, parent._request.MessageName))); 934parent._context.Contract.ServiceContractGenerator.Errors.Add(new MetadataConversionError(string.Format(SRServiceModel.SFxCannotImportAsParameters_HeadersAreIgnoredInEncoded, parent._response.MessageName), true/*isWarning*/)); 936throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_HeadersAreUnsupported, parent._response.MessageName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\PolicyReader.cs (2)
106string warningMsg = string.Format(SRServiceModel.PolicyReferenceMissingURI, MetadataStrings.WSPolicy.Attributes.URI); 120string warningMsg = string.Format(SRServiceModel.UnableToFindPolicyWithId, idRef);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\SchemaHelper.cs (1)
152warning = new MetadataConversionError(string.Format(SRServiceModel.GeneralSchemaValidationError, args.Message));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (4)
164throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(paramName, string.Format(SRServiceModel.SFXUnvalidNamespaceParam, ns)); 507string.Format(SRServiceModel.SFxErrorReflectionOnUnknown1, attrType.Name), e)); 603throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.AttemptedToGetContractTypeForButThatTypeIs1, interfaceType.Name))); 624string.Format(SRServiceModel.SFxNoMostDerivedContract, interfaceType.Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (6)
386throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxKnownTypeAttributeInvalid1, provider.ToString()))); 705throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.SFxInvalidCallbackContractType, callbackType.Name))); 1062throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.OneWayOperationShouldNotSpecifyAReplyAction1, operationName))); 1216throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInvalidMessageContractSignature, methodName))); 1221throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInvalidMessageContractSignature, methodName))); 1471throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxStaticMessageHeaderPropertiesNotAllowed, defaultName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlExporter.cs (4)
148throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.EndpointsMustHaveAValidBinding1, endpoint.Name))); 617new InvalidOperationException(string.Format(SRServiceModel.AddressingVersionNotSupported, addressing))); 664throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SupportedAddressingModeNotSupported, mode))); 700new InvalidOperationException(string.Format(SRServiceModel.AddressingVersionNotSupported, addressVersion)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (14)
826WsdlImportException wie = WsdlImportException.Create(item, new InvalidOperationException(string.Format(SRServiceModel.UnknownWSDLExtensionIgnored, extension.GetType().AssemblyQualifiedName))); 877throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInvalidWsdlBindingOpNoName, wsdlOperationBinding.Binding.Name))); 1686stringBuilder.AppendLine(string.Format(SRServiceModel.UnImportedAssertionList, CreateXPathString(item))); 1903string warningMsg = string.Format(SRServiceModel.WsdlItemAlreadyFaulted, GetElementName(item)); 2021warningMsg.AppendLine(string.Format(SRServiceModel.XPathPointer, xPath)); 2028warningMsg.AppendLine(string.Format(SRServiceModel.XPathPointer, SRServiceModel.XPathUnavailable)); 2089warningMsg.AppendLine(string.Format(SRServiceModel.UnableToFindPolicyWithId, policyRef)); 2090warningMsg.AppendLine(string.Format(SRServiceModel.XPathPointer, xPath)); 2127string warningMsg = string.Format(SRServiceModel.PolicyReferenceMissingURI, MetadataStrings.WSPolicy.Attributes.URI); 2326string warningMsg = string.Format(SRServiceModel.PolicyInWsdlMustHaveFragmentId, xPath); 2340string warningMsg = string.Format(SRServiceModel.DuplicatePolicyInWsdlSkipped, xPath); 2354string warningMsg = string.Format(SRServiceModel.UnrecognizedPolicyDocumentNamespace, policyDocument.Value.NamespaceURI); 2361string warningMsg = string.Format(SRServiceModel.UnsupportedPolicyDocumentRoot, policyDocument.Value.Name); 2369string warningMsg = string.Format(SRServiceModel.DuplicatePolicyDocumentSkipped, key);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (1)
344throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxKnownTypeNull, Operation.Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Diagnostics\TraceUtility.cs (1)
485ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityProcessAction, message.Headers.Action), ActivityType.ProcessAction);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelDispatcher.cs (1)
491return new InvalidOperationException(string.Format(SRServiceModel.SFxChannelDispatcherUnableToOpen1, _listener.Uri), e);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ChannelHandler.cs (3)
826string reason = string.Format(SRServiceModel.SFxNoEndpointMatchingAddress, request.RequestMessage.Headers.To); 840string.Format(SRServiceModel.SFxMissingActionHeader, addressingVersion.Namespace), AddressingStrings.Action, addressingVersion.Namespace)); 848string reason = string.Format(SRServiceModel.SFxNoEndpointMatchingContract, request.RequestMessage.Headers.Action);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
86throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxKnownTypeNull, description.Name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DispatchOperationRuntime.cs (2)
66throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.DispatchRuntimeRequiresFormatter0, _name))); 308string message = string.Format(SRServiceModel.SFxDispatchRuntimeMessageCannotBeNull, _name);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DispatchRuntime.cs (1)
377string reasonText = string.Format(SRServiceModel.SFxNoEndpointMatchingContract, action);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\DuplexChannelBinder.cs (1)
254return new TimeoutException(string.Format(SRServiceModel.SFxRequestTimedOut1, timeout));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ListenerBinder.cs (1)
38throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnknownListenerType1, listener.Uri.AbsoluteUri)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\MessageRpc.cs (1)
592string text = string.Format(SRServiceModel.SFxMultipleCallbackFromAsyncOperation,
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationFormatter.cs (7)
167throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxMessageContractRequiresDefaultConstructor, messageContractType.FullName), mme)); 504throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxDocEncodedNotSupported, operation.Name))); 518throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxTypedMessageCannotBeRpcLiteral, operation.Name))); 528throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxTypedOrUntypedMessageCannotBeMixedWithParameters, operation.Name))); 530throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxTypedOrUntypedMessageCannotBeMixedWithVoidInRpc, operation.Name))); 554reason = string.Format(SRServiceModel.SFxDeserializationFailed1, reason); 579throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException(string.Format(SRServiceModel.SFxTypedMessageCannotBeNull, description.Action)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (2)
179new InvalidOperationException(string.Format(SRServiceModel.AddressingVersionNotSupported, addressing))); 201new InvalidOperationException(string.Format(SRServiceModel.AddressingVersionNotSupported, addressing)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (2)
84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ClientRuntimeRequiresFormatter0, _name))); 255throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxProxyRuntimeMessageCannotBeNull, _name)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\StreamFormatter.cs (4)
177throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInvalidStreamInTypedMessage, messageDescription.MessageName))); 179throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInvalidStreamInRequest, operationName))); 181throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInvalidStreamInResponse, operationName))); 251throw TraceUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.SFxInvalidStreamOffsetLength, offset + count)), _message);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (1)
83throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxInputParametersToServiceNull, _inputParameterCount)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
140new InvalidOperationException(string.Format(SRServiceModel.SFxInputParametersToServiceNull, _inputParameterCount)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ThreadBehavior.cs (1)
121string text = string.Format(SRServiceModel.SFxMultipleCallbackFromSynchronizationContext, _context.GetType().ToString());
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (4)
240string.Format(SRServiceModel.SFxErrorDeserializingHeader, messageDescription.MessageName), e)); 281throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxBodyCannotBeNull, messageDescription.MessageName))); 387string.Format(resourceKey, OperationName), e)); 404string.Format(SRServiceModel.EnvelopeVersionNotSupported, version));
FrameworkFork\System.ServiceModel\System\ServiceModel\DuplexChannelFactory.cs (6)
67ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct); 93ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct); 129ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct); 154ServiceModelActivity.Start(activity, string.Format(SRServiceModel.ActivityConstructChannelFactory, TraceUtility.CreateSourceString(this)), ActivityType.Construct); 230throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxCreateDuplexChannel1, this.Endpoint.Contract.Name))); 237throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointAddress.cs (5)
323new ProtocolException(string.Format(SRServiceModel.AddressingVersionNotSupported, message.Version.Addressing))); 567"reader", string.Format(SRServiceModel.AddressingVersionNotSupported, reader.NamespaceURI)); 605"reader", string.Format(SRServiceModel.AddressingVersionNotSupported, reader.NamespaceURI)); 680string.Format(SRServiceModel.AddressingVersionNotSupported, addressingVersion)); 1031string.Format(SRServiceModel.AddressingVersionNotSupported, addressingVersion));
FrameworkFork\System.ServiceModel\System\ServiceModel\EndpointIdentity.cs (1)
182throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnrecognizedIdentityPropertyType, this.IdentityClaim.GetType().ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\EnvelopeVersion.cs (1)
167return string.Format(_toStringFormat, Namespace);
FrameworkFork\System.ServiceModel\System\ServiceModel\FaultException.cs (1)
227return string.Format(SRServiceModel.SFxUnknownFaultNoMatchingTranslation1, reason.Translations[0].Text);
FrameworkFork\System.ServiceModel\System\ServiceModel\KeyedByTypeCollection.cs (1)
107throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("item", string.Format(SRServiceModel.DuplicateBehavior1, item.GetType().FullName));
FrameworkFork\System.ServiceModel\System\ServiceModel\NetHttpBinding.cs (1)
118throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(SRServiceModel.HttpClientCredentialTypeInvalid, this.BasicHttpSecurity.Transport.ClientCredentialType)));
FrameworkFork\System.ServiceModel\System\ServiceModel\NetHttpsBinding.cs (1)
75throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(SRServiceModel.HttpClientCredentialTypeInvalid, BasicHttpSecurity.Transport.ClientCredentialType)));
FrameworkFork\System.ServiceModel\System\ServiceModel\ProtocolException.cs (6)
24string text = string.Format(SRServiceModel.ReceiveShutdownReturnedFault, reason.Text); 29string text = string.Format(SRServiceModel.ReceiveShutdownReturnedLargeFault, message.Headers.Action); 35string text = string.Format(SRServiceModel.ReceiveShutdownReturnedMessage, message.Headers.Action); 48string text = string.Format(SRServiceModel.OneWayOperationReturnedFault, reason.Text); 53string text = string.Format(SRServiceModel.OneWayOperationReturnedLargeFault, message.Headers.Action); 59string text = string.Format(SRServiceModel.OneWayOperationReturnedMessage, message.Headers.Action);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\BinaryNegotiation.cs (1)
53throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new SecurityNegotiationException(string.Format(SRServiceModel.IncorrectBinaryNegotiationValueType, _valueTypeUri)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (4)
42throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(string.Format(SRServiceModel.TokenRequirementDoesNotSpecifyTargetAddress, initiatorRequirement)); 67throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("authScheme", string.Format(SRServiceModel.HttpRequiresSingleAuthScheme, authScheme)); 170throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.SecurityTokenManagerCannotCreateProviderForRequirement, tokenRequirement))); 256throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.SecurityTokenManagerCannotCreateAuthenticatorForRequirement, tokenRequirement)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\IdentityVerifier.cs (2)
118result = new MessageSecurityException(string.Format(SRServiceModel.DnsIdentityCheckFailedForIncomingMessageLackOfDnsClaim, expectedDnsName)); 129result = new MessageSecurityException(string.Format(SRServiceModel.DnsIdentityCheckFailedForOutgoingMessageLackOfDnsClaim, expectedDnsName));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ReferenceList.cs (2)
79new SecurityMessageSerializationException(string.Format(SR_IdentityModel.InvalidDataReferenceInReferenceList, "#" + id))); 125new SecurityMessageSerializationException(string.Format(SR_IdentityModel.InvalidDataReferenceInReferenceList, uri)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\RequestSecurityToken.cs (6)
244throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemNotAvailableInDeserializedRST, "RequestProperties"))); 322throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemAvailableInDeserializedRSTOnly, "RequestSecurityTokenXml"))); 360throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemNotAvailableInDeserializedRST, "AppliesTo"))); 372throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemNotAvailableInDeserializedRST, "AppliesToSerializer"))); 384throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemNotAvailableInDeserializedRST, "AppliesToType"))); 451throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemAvailableInDeserializedRSTOnly, "MatchesAppliesTo")));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\RequestSecurityTokenResponse.cs (9)
319throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemNotAvailableInDeserializedRSTR, "EntropyToken"))); 331throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemNotAvailableInDeserializedRSTR, "IssuedToken"))); 349throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemNotAvailableInDeserializedRSTR, "ProofToken"))); 367throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemAvailableInDeserializedRSTROnly, "RequestSecurityTokenXml"))); 379throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemNotAvailableInDeserializedRST, "AppliesTo"))); 391throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemNotAvailableInDeserializedRST, "AppliesToSerializer"))); 403throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemNotAvailableInDeserializedRST, "AppliesToType"))); 415throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemNotAvailableInDeserializedRSTR, "IsLifetimeSet"))); 461throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ItemAvailableInDeserializedRSTOnly, "MatchesAppliesTo")));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityAlgorithmSuite.cs (3)
266throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.Psha1KeyLengthInvalid, this.DefaultEncryptionKeyDerivationLength))); 296throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SigningTokenHasNoKeys, token))); 341throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.Psha1KeyLengthInvalid, this.DefaultSignatureKeyDerivationLength)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityProtocolFactory.cs (3)
749throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.MultipleSupportingAuthenticatorsOfSameType, spec.TokenParameters.GetType()))); 756throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.MultipleSupportingAuthenticatorsOfSameType, spec.TokenParameters.GetType()))); 1019throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("DetectReplays", string.Format(SRServiceModel.SecurityProtocolCannotDoReplayDetection, this));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (2)
404throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(string.Format(SRServiceModel.CannotDetermineSPNBasedOnAddress, target))); 444throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new QuotaExceededException(string.Format(SRServiceModel.BufferQuotaExceededReadingBase64, maxBufferSize)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\TimeBoundedCache.cs (1)
410string message = string.Format(SRServiceModel.CacheQuotaReached, _maxCacheItems);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SecurityTokenParameters.cs (1)
84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SecurityTokenParametersCloneInvalidResult, this.GetType().ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecureConversation.cs (3)
169throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.DerivedKeyInvalidGenerationSpecified, generation))); 179throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.DerivedKeyInvalidOffsetSpecified, offset))); 256throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(string.Format(SRServiceModel.UnsupportedKeyDerivationAlgorithm, derivedKeyToken.KeyDerivationAlgorithm)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityJan2004.cs (3)
362throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(string.Format(SRServiceModel.UnsupportedPasswordType, type))); 435throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.CantInferReferenceForToken, EncryptedKey.ElementName.Value))); 480throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.CantInferReferenceForToken, ValueTypeAbsoluteUri)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (6)
1059throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 1071throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 1083throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 1192throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 1256throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 2963importer.Errors.Add(new MetadataConversionError(string.Format(SRServiceModel.MultipleIssuerEndpointsFound, mexAddress)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy12.cs (5)
460throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 472throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 484throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 496throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml))); 611throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnsupportedSecurityPolicyAssertion, assertion.OuterXml)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSTrust.cs (1)
704throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.UnableToCreateKeyTypeElementForUnknownKeyType, keyType.ToString())));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\XmlHelper.cs (6)
119throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.CouldNotFindNamespaceForPrefix, prefix))); 180throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.EmptyXmlElementError, r.Name))); 185throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.EmptyXmlElementError, e.Name))); 195throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.CouldNotFindNamespaceForPrefix, prefix))); 313throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("idPrefix", string.Format(SRServiceModel.InValidateIdPrefix, idPrefix[0]))); 321throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("idPrefix", string.Format(SRServiceModel.InValidateId, idPrefix[i])));
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedCollection.cs (1)
311throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRServiceModel.SynchronizedCollectionWrongType1, value.GetType().FullName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\TcpTransportSecurity.cs (1)
73throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
FrameworkFork\System.ServiceModel\System\ServiceModel\UriSchemeKeyedCollection.cs (2)
36throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("item", string.Format(SRServiceModel.BaseAddressDuplicateScheme, item.Scheme)); 47throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("item", string.Format(SRServiceModel.BaseAddressDuplicateScheme, item.Scheme));
FrameworkFork\System.ServiceModel\System\ServiceModel\WSFederationHttpSecurity.cs (2)
25Fx.Assert(WSFederationHttpSecurityModeHelper.IsDefined(mode), string.Format("Invalid WSFederationHttpSecurityMode value: {0}", mode.ToString())); 78Fx.Assert(WSFederationHttpSecurityModeHelper.IsDefined(mode), string.Format("Invalid WSFederationHttpSecurityMode value: {0}", mode.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\WSHttpBinding.cs (1)
84throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.HttpClientCredentialTypeInvalid, _security.Transport.ClientCredentialType)));
FrameworkFork\System.ServiceModel\System\ServiceModel\WSHttpSecurity.cs (2)
115Fx.Assert(SecurityModeHelper.IsDefined(securityMode), string.Format("Invalid SecurityMode value: {0}.", mode.ToString())); 126Fx.Assert(SecurityModeHelper.IsDefined(securityMode), string.Format("Invalid SecurityMode value: {0}.", securityMode.ToString()));
FrameworkFork\System.ServiceModel\System\ServiceModel\XmlUtil.cs (2)
115throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.InvalidXmlQualifiedName, qname))); 121throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new XmlException(string.Format(SRServiceModel.UnboundPrefixInQName, qname)));
FrameworkFork\System.Web.Services\Configuration\WebServicesSection.cs (2)
61throw new ArgumentException(string.Format(ResWebServices.RequiredXmlFormatExtensionAttributeIsMissing1, extensionType.FullName), "extensionTypes"); 113throw new ArgumentException(string.Format(ResWebServices.TheSyntaxOfTypeMayNotBeExtended1, type.FullName), "type");
FrameworkFork\System.Web.Services\Services\Description\MimeFormatExtensions.cs (3)
184if (value < 0) throw new ArgumentException(string.Format(ResWebServices.WebNegativeValue, "group")); 196if (value < 0) throw new ArgumentException(string.Format(ResWebServices.WebNegativeValue, "capture")); 208if (value < 0) throw new ArgumentException(string.Format(ResWebServices.WebNegativeValue, "repeats"));
FrameworkFork\System.Web.Services\Services\Description\ServiceDescription.cs (13)
3215message = string.Format(ResWebServices.WebDuplicateFormatExtension, elemName); 3217message = string.Format(ResWebServices.WebDuplicateOperationMessage, elemName); 3219message = string.Format(ResWebServices.WebDuplicateImport, elemName); 3221message = string.Format(ResWebServices.WebDuplicateMessage, elemName); 3223message = string.Format(ResWebServices.WebDuplicatePort, elemName); 3225message = string.Format(ResWebServices.WebDuplicatePortType, elemName); 3227message = string.Format(ResWebServices.WebDuplicateBinding, elemName); 3229message = string.Format(ResWebServices.WebDuplicateService, elemName); 3231message = string.Format(ResWebServices.WebDuplicateMessagePart, elemName); 3233message = string.Format(ResWebServices.WebDuplicateOperationBinding, elemName); 3235message = string.Format(ResWebServices.WebDuplicateFaultBinding, elemName); 3237message = string.Format(ResWebServices.WebDuplicateOperation, elemName); 3239message = string.Format(ResWebServices.WebDuplicateOperationFault, elemName);
HelpGenerator.cs (23)
49ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.OutputDirectory.Name, SR.ParametersDirectory, string.Format(SR.HelpDirectoryFormat, CommandProcessorOptions.Switches.OutputDirectory.Abbreviation)), 50ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.NoLogo.Name, string.Format(SR.HelpNologoFormat, CommandProcessorOptions.Switches.NoLogo.Abbreviation)), 52ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.Help.Name, string.Format(SR.HelpHelpFormat, CommandProcessorOptions.Switches.Help.Abbreviation)), 53ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.ProjectFile.Name, SR.ParametersProjectFile, string.Format(SR.HelpProjectFileFormat, CommandProcessorOptions.Switches.ProjectFile.Abbreviation)), 54ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.OutputFile.Name, SR.ParametersOut, string.Format(SR.HelpOutFormat, CommandProcessorOptions.Switches.OutputFile.Abbreviation)), 55ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.Namespace.Name, SR.ParametersNamespace, string.Format(SR.HelpNamespaceFormat, CommandProcessorOptions.Switches.Namespace.Abbreviation), true), 56ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.MessageContract.Name, string.Format(SR.HelpMessageContractFormat, CommandProcessorOptions.Switches.MessageContract.Abbreviation), true), 57ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.EnableDataBinding.Name, string.Format(SR.HelpEnableDataBindingFormat, CommandProcessorOptions.Switches.EnableDataBinding.Abbreviation)), 58ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.Internal.Name, string.Format(SR.HelpInternalFormat, CommandProcessorOptions.Switches.Internal.Abbreviation)), 59ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.Reference.Name, SR.ParametersReference, string.Format(SR.HelpReferenceCodeGenerationFormat, CommandProcessorOptions.Switches.Reference.Abbreviation), true), 61ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.CollectionType.Name, SR.ParametersCollectionType, string.Format(SR.HelpCollectionTypeFormat, CommandProcessorOptions.Switches.CollectionType.Abbreviation)), 62ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.ExcludeType.Name, SR.ParametersExcludeType, string.Format(SR.HelpExcludeTypeCodeGenerationFormat, CommandProcessorOptions.Switches.ExcludeType.Abbreviation)), 63ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.NoStdlib.Name, string.Format(SR.HelpNostdlibFormat, CommandProcessorOptions.Switches.NoStdlib.Abbreviation)), 64ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.Serializer.Name, SerializerMode.Auto.ToString(), string.Format(SR.HelpAutoSerializerFormat, CommandProcessorOptions.Switches.Serializer.Abbreviation), true), 67ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.Sync.Name, string.Format(SR.HelpSyncFormat, CommandProcessorOptions.Switches.Sync.Abbreviation)), 68ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.SyncOnly.Name, string.Format(SR.HelpSyncOnlyFormat, CommandProcessorOptions.Switches.SyncOnly.Abbreviation)), 69ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.Wrapped.Name, string.Format(SR.HelpWrappedFormat, CommandProcessorOptions.Switches.Wrapped.Abbreviation)), 70ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.Update.Name, SR.ParametersWebServiceReferenceName, string.Format(SR.HelpUpdateWebServiceReferenceFormat, CommandProcessorOptions.Switches.Update.Abbreviation)), 71ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.RuntimeIdentifier.Name, SR.ParametersRuntimeIdentifier, string.Format(SR.HelpRuntimeIdentifierFormat, CommandProcessorOptions.Switches.RuntimeIdentifier.Abbreviation)), 72ArgumentInfo.CreateParameterHelpInfo(CommandProcessorOptions.Switches.TargetFramework.Name, SR.ParametersTargetFramework, string.Format(SR.HelpTargetFrameworkFormat, CommandProcessorOptions.Switches.TargetFramework.Abbreviation)), 73ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.AcceptCertificate.Name, string.Format(SR.HelpAcceptCertificateFormat, CommandProcessorOptions.Switches.AcceptCertificate.Abbreviation)), 74ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.ServiceContract.Name, string.Format(SR.HelpServiceContractFormat, CommandProcessorOptions.Switches.ServiceContract.Abbreviation)), 75ArgumentInfo.CreateFlagHelpInfo( CommandProcessorOptions.Switches.Language.Name, string.Format(SR.HelpLanguage, CommandProcessorOptions.Switches.Language.Abbreviation))
OutputPathHelper.cs (1)
80throw new ToolRuntimeException(string.Format(SR.ErrCannotCreateDirectoryFormat, directoryPath), e);
Tool.cs (2)
213ToolConsole.WriteLine(string.Format(SR.RetreivingMetadataMsgFormat, serviceDescriptor.MetadataUrl.AbsoluteUri)); 218ToolConsole.WriteLine(string.Format(SR.ReadingMetadataMessageFormat, displayUri));
ToolConsole.cs (2)
45toolError.AppendLine(string.Format(SR.WrnWSMExFailedFormat, me.ServiceUri?.AbsoluteUri)); 53toolError.AppendLine(string.Format(SR.MoreHelpFormat, CommandProcessorOptions.Switches.Help.Abbreviation));
TypeLoader.cs (2)
71warning = string.Format(SR.ErrCouldNotLoadTypesFromAssemblyAtFormat, assembly.Location); 80warning = string.Format(SR.WrnCouldNotLoadTypesFromReferenceAssemblyAtFormat, assembly.Location);
dotnet-svcutil-lib.Tests (2)
TestInit.cs (2)
431failureMessage += string.Format(g_NoBaselineErrorFormat, expected); 604var globalConfig = string.Format(globalConfigFormat, sdkVersion);
dotnet-svcutil.xmlserializer (1)
src\Common\src\System\SR.cs (1)
41return String.Format(resourceFormat, p1);
dotnet-user-jwts (1)
_generated\12\JwtSerializerContext.g.cs (1)
85throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
dotnet-user-secrets (1)
_generated\2\SecretManagerJsonSerializerContext.g.cs (1)
83throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Extensibility.WebSockets.IntegrationTests (16)
WebSocketTests.4.1.0.cs (16)
78String.Format("Test case timeout was reached while waiting for the stream response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 90String.Format("Test case timeout was reached while waiting for the stream response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 96String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 153String.Format("Test case timeout was reached while waiting for the buffered response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 158String.Format("Test case timeout was reached while waiting for the buffered response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 164String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 225String.Format("Test case timeout was reached while waiting for the buffered response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 230String.Format("Test case timeout was reached while waiting for the buffered response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 236String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 319String.Format("Test case timeout was reached while waiting for the stream response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 331String.Format("Test case timeout was reached while waiting for the stream response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 337String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 398String.Format("Test case timeout was reached while waiting for the buffered response from the Service. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 403String.Format("Test case timeout was reached while waiting for the buffered response from the Service to be completed. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 409String.Format("Test case timeout was reached while waiting for the Logging from the Service to be received. Timeout was: {0}", ScenarioTestHelpers.TestTimeout)); 885Assert.True(responseFromService, String.Format("Response from the service was not expected. Expected: 'True' but got {0}", responseFromService));
GenerateDocumentationAndConfigFiles (21)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
127failureReason = string.Format(CompilerExtensionsResources.Missing_prefix_colon_0, Prefix); 133failureReason = string.Format(CompilerExtensionsResources.Missing_suffix_colon_0, Suffix); 154? string.Format(CompilerExtensionsResources.Prefix_0_is_not_expected, prefix) 226reason = string.Format(resourceId, string.Join(", ", violations)); 266reason = string.Format(firstResourceId, Substring(name, wordSpan)); 282var restString = string.Format(restResourceId, string.Join(", ", violations));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.RepeatMatcher.cs (1)
23=> string.Format("({0}*)", matcher);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.SequenceMatcher.cs (1)
29=> string.Format("({0})", string.Join(",", (object[])matchers));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\FixAllHelper.cs (4)
19FixAllScope.Custom => string.Format(WorkspaceExtensionsResources.Fix_all_0, title), 22FixAllScope.Solution => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Solution, title), 23FixAllScope.ContainingMember => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_member, title), 24FixAllScope.ContainingType => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_type, title),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
39return semanticModel ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 63return syntaxTree ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 80return root ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (2)
44throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Project_of_ID_0_is_required_to_accomplish_the_task_but_is_not_available_from_the_solution, projectId)); 128=> new InvalidOperationException(string.Format(WorkspaceExtensionsResources.The_solution_does_not_contain_the_specified_document, debugName ?? "Unknown"));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (1)
99throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Compilation_is_required_to_accomplish_the_task_but_is_not_supported_by_project_0, project.Name));
ILAssembler (38)
GrammarVisitor.cs (38)
1223string.Format(DiagnosticMessageTemplates.UnsealedValueType, newTypeDef.Name), 1289ReportError(DiagnosticIds.ModuleNotFound, string.Format(DiagnosticMessageTemplates.ModuleNotFound, moduleName), context); 1349ReportError(DiagnosticIds.TypeNotFound, string.Format(DiagnosticMessageTemplates.TypeNotFound, containingType.DottedName), context); 1787string.Format(DiagnosticMessageTemplates.MissingExportedTypeImplementation, dottedName), 1956ReportError(DiagnosticIds.MethodTypeParameterOutsideMethod, string.Format(DiagnosticMessageTemplates.MethodTypeParameterOutsideMethod, dottedName), context); 1982ReportError(DiagnosticIds.GenericParameterNotFound, string.Format(DiagnosticMessageTemplates.GenericParameterNotFound, dottedName), context); 2002ReportError(DiagnosticIds.TypeParameterOutsideType, string.Format(DiagnosticMessageTemplates.TypeParameterOutsideType, dottedName), context); 2028ReportError(DiagnosticIds.GenericParameterNotFound, string.Format(DiagnosticMessageTemplates.GenericParameterNotFound, dottedName), context); 2066ReportError(DiagnosticIds.TypedefNotFound, string.Format(DiagnosticMessageTemplates.TypedefNotFound, alias), context); 2188ReportError(DiagnosticIds.FileNotFound, string.Format(DiagnosticMessageTemplates.FileNotFound, fileName), declarations[i]); 2197ReportError(DiagnosticIds.AssemblyNotFound, string.Format(DiagnosticMessageTemplates.AssemblyNotFound, assemblyName), declarations[i]); 2212ReportError(DiagnosticIds.ExportedTypeNotFound, string.Format(DiagnosticMessageTemplates.ExportedTypeNotFound, declarations[i].slashedName().GetText()), declarations[i]); 2268ReportError(DiagnosticIds.ExportedTypeNotFound, string.Format(DiagnosticMessageTemplates.ExportedTypeNotFound, containingType.DottedName), slashedName); 2593ReportError(DiagnosticIds.TypedefNotFound, string.Format(DiagnosticMessageTemplates.TypedefNotFound, alias), context); 3227ReportError(DiagnosticIds.ArgumentNotFound, string.Format(DiagnosticMessageTemplates.ArgumentNotFound, varName), context); 3242ReportError(DiagnosticIds.LocalNotFound, string.Format(DiagnosticMessageTemplates.LocalNotFound, varName), context); 3354string.Format(DiagnosticMessageTemplates.LiteralOutOfRange, node.Text), 3379string.Format(DiagnosticMessageTemplates.LiteralOutOfRange, node.Text), 3407string.Format(DiagnosticMessageTemplates.LabelNotFound, labelName), 3477ReportError(DiagnosticIds.FileNotFound, string.Format(DiagnosticMessageTemplates.FileNotFound, fileName), decl); 3491ReportError(DiagnosticIds.AssemblyNotFound, string.Format(DiagnosticMessageTemplates.AssemblyNotFound, assemblyName), decl); 3736string.Format(DiagnosticMessageTemplates.GenericParameterIndexOutOfRange, index), 3756string.Format(DiagnosticMessageTemplates.UnknownGenericParameter, name), 3777string.Format(DiagnosticMessageTemplates.GenericParameterIndexOutOfRange, index), 3797string.Format(DiagnosticMessageTemplates.UnknownGenericParameter, name), 3832string.Format(DiagnosticMessageTemplates.ParameterIndexOutOfRange, index), 3907string.Format(DiagnosticMessageTemplates.AbstractMethodNotInAbstractType, methodDefinition.Name), 4018ReportError(DiagnosticIds.TypedefNotFound, string.Format(DiagnosticMessageTemplates.TypedefNotFound, alias), context); 4127string.Format(DiagnosticMessageTemplates.DeprecatedNativeType, "pointer in array"), 4180ReportError(DiagnosticIds.TypedefNotFound, string.Format(DiagnosticMessageTemplates.TypedefNotFound, alias), context); 4226string.Format(DiagnosticMessageTemplates.DeprecatedNativeType, "VARIANT"), 4238string.Format(DiagnosticMessageTemplates.DeprecatedNativeType, "SYSCHAR"), 4245string.Format(DiagnosticMessageTemplates.DeprecatedNativeType, "VOID"), 4288string.Format(DiagnosticMessageTemplates.DeprecatedNativeType, "DECIMAL"), 4295string.Format(DiagnosticMessageTemplates.DeprecatedNativeType, "DATE"), 4314string.Format(DiagnosticMessageTemplates.DeprecatedNativeType, "OBJECTREF"), 4370string.Format(DiagnosticMessageTemplates.DeprecatedNativeType, "NESTEDSTRUCT"), 4773ReportError(DiagnosticIds.TypedefNotFound, string.Format(DiagnosticMessageTemplates.TypedefNotFound, alias), context);
ilc (3)
src\runtime\src\coreclr\tools\Common\InstructionSetHelpers.cs (3)
180throw new CommandLineException(string.Format(mustNotBeMessage, "")); 211throw new CommandLineException(string.Format(mustNotBeMessage, instructionSet)); 216throw new CommandLineException(string.Format(mustNotBeMessage, instructionSet));
ILCompiler.Compiler (1)
src\runtime\src\coreclr\tools\Common\Compiler\CodeGenerationFailedException.cs (1)
22: base(string.Format(MessageText, method), inner)
ILCompiler.MetadataTransform (85)
Internal\Metadata\NativeFormat\Writer\ConstantValues.cs (13)
13return string.Format("(Boolean){0}", this.Value); 31return string.Format("'{0}'", this.Value); 49else return string.Format("\"{0}\"", this.Value); 66return string.Format("(Byte){0}", this.Value); 83return string.Format("(SByte){0}", this.Value); 100return string.Format("(Int16){0}", this.Value); 117return string.Format("(UInt16){0}", this.Value); 134return string.Format("(Int32){0}", this.Value); 151return string.Format("(UInt32){0}", this.Value); 168return string.Format("(Int64){0}", this.Value); 185return string.Format("(UInt64){0}", this.Value); 202return string.Format("(Single){0}", this.Value); 219return string.Format("(Double){0}", this.Value);
Internal\Metadata\NativeFormat\Writer\NativeMetadataWriter.cs (9)
580return Name.ToString() + (includeHandleValue ? string.Format(" ({0:x})", Handle._value) : ""); 592return Name.ToString() + (includeHandleValue ? string.Format(" ({0:x})", Handle._value) : ""); 617str += string.Format("({0})", Handle.ToString()); 652str += string.Format("({0})", Handle.ToString()); 684str += string.Format(" ({0:x})", Handle._value); 691str += string.Format(" ({0:x})", Handle._value); 694str = Name.Value + string.Format(" ({0:x})", Handle._value); 696str += string.Format(" ({0:x})", Handle._value); 716s += string.Format(" ({0:x})", Handle._value);
src\runtime\src\coreclr\tools\Common\Internal\Metadata\NativeFormat\NativeFormatReaderGen.cs (63)
113public override string ToString() => string.Format("{0:X8}", _value); 194public override string ToString() => string.Format("{0:X8}", _value); 274public override string ToString() => string.Format("{0:X8}", _value); 354public override string ToString() => string.Format("{0:X8}", _value); 434public override string ToString() => string.Format("{0:X8}", _value); 514public override string ToString() => string.Format("{0:X8}", _value); 594public override string ToString() => string.Format("{0:X8}", _value); 674public override string ToString() => string.Format("{0:X8}", _value); 754public override string ToString() => string.Format("{0:X8}", _value); 834public override string ToString() => string.Format("{0:X8}", _value); 918public override string ToString() => string.Format("{0:X8}", _value); 1002public override string ToString() => string.Format("{0:X8}", _value); 1082public override string ToString() => string.Format("{0:X8}", _value); 1162public override string ToString() => string.Format("{0:X8}", _value); 1242public override string ToString() => string.Format("{0:X8}", _value); 1322public override string ToString() => string.Format("{0:X8}", _value); 1402public override string ToString() => string.Format("{0:X8}", _value); 1482public override string ToString() => string.Format("{0:X8}", _value); 1562public override string ToString() => string.Format("{0:X8}", _value); 1638public override string ToString() => string.Format("{0:X8}", _value); 1718public override string ToString() => string.Format("{0:X8}", _value); 1798public override string ToString() => string.Format("{0:X8}", _value); 1878public override string ToString() => string.Format("{0:X8}", _value); 1958public override string ToString() => string.Format("{0:X8}", _value); 2039public override string ToString() => string.Format("{0:X8}", _value); 2121public override string ToString() => string.Format("{0:X8}", _value); 2201public override string ToString() => string.Format("{0:X8}", _value); 2281public override string ToString() => string.Format("{0:X8}", _value); 2361public override string ToString() => string.Format("{0:X8}", _value); 2441public override string ToString() => string.Format("{0:X8}", _value); 2521public override string ToString() => string.Format("{0:X8}", _value); 2601public override string ToString() => string.Format("{0:X8}", _value); 2691public override string ToString() => string.Format("{0:X8}", _value); 2788public override string ToString() => string.Format("{0:X8}", _value); 2889public override string ToString() => string.Format("{0:X8}", _value); 2970public override string ToString() => string.Format("{0:X8}", _value); 3050public override string ToString() => string.Format("{0:X8}", _value); 3151public override string ToString() => string.Format("{0:X8}", _value); 3241public override string ToString() => string.Format("{0:X8}", _value); 3345public override string ToString() => string.Format("{0:X8}", _value); 3431public override string ToString() => string.Format("{0:X8}", _value); 3515public override string ToString() => string.Format("{0:X8}", _value); 3614public override string ToString() => string.Format("{0:X8}", _value); 3694public override string ToString() => string.Format("{0:X8}", _value); 3784public override string ToString() => string.Format("{0:X8}", _value); 3878public override string ToString() => string.Format("{0:X8}", _value); 3975public override string ToString() => string.Format("{0:X8}", _value); 4060public override string ToString() => string.Format("{0:X8}", _value); 4157public override string ToString() => string.Format("{0:X8}", _value); 4238public override string ToString() => string.Format("{0:X8}", _value); 4339public override string ToString() => string.Format("{0:X8}", _value); 4429public override string ToString() => string.Format("{0:X8}", _value); 4513public override string ToString() => string.Format("{0:X8}", _value); 4597public override string ToString() => string.Format("{0:X8}", _value); 4678public override string ToString() => string.Format("{0:X8}", _value); 4818public override string ToString() => string.Format("{0:X8}", _value); 4926public override string ToString() => string.Format("{0:X8}", _value); 5064public override string ToString() => string.Format("{0:X8}", _value); 5152public override string ToString() => string.Format("{0:X8}", _value); 5238public override string ToString() => string.Format("{0:X8}", _value); 5323public override string ToString() => string.Format("{0:X8}", _value); 5404public override string ToString() => string.Format("{0:X8}", _value); 5484public override string ToString() => string.Format("{0:X8}", _value);
ILCompiler.ReadyToRun (1)
src\runtime\src\coreclr\tools\Common\Compiler\CodeGenerationFailedException.cs (1)
22: base(string.Format(MessageText, method), inner)
illink (4)
Infrastructure.Common (18)
ServiceUtilHelper.cs (10)
125String.Format("Failed to find a root certificate matching thumbprint '{0}'", thumbprint); 218String.Format("Failed to find a client certificate matching thumbprint '{0}'", thumbprint); 331String.Format("Failed to find a server certificate matching thumbprint '{0}'", thumbprint); 399String.Format("The root certificate could not be installed: {0}", s_rootCertInstallErrorMessage)); 408String.Format("The client certificate could not be installed: {0}", s_clientCertInstallErrorMessage)); 417String.Format("The peer certificate could not be installed: {0}", s_peerCertInstallErrorMessage)); 426String.Format("The OSX local Keychain certificate could not be installed: {0}", s_osXKeychainCertInstallErrorMessage)); 572Console.WriteLine(String.Format("Invoking {0} ...", requestUri)); 591Console.WriteLine(String.Format("Invoking {0} ...", requestUri)); 610Console.WriteLine(String.Format("Invoking {0} ...", requestUri));
xunit\ConditionAttribute.cs (1)
101return String.Format("{0}", String.Join(", ", falseConditions));
xunit\IssueAttribute.cs (2)
81return String.Format("{0}", 123Console.WriteLine(String.Format("Warning: The number '{0}' in IncludeTestsWithIssues is not a valid integer and will be ignored.", issue));
xunit\WcfTestCase.cs (3)
73etwOutput.AppendLine(string.Format("---ETW Trace for Test {0} Begins---", DisplayName)); 88etwOutput.AppendLine(string.Format("ETW message: {0}, payload below was received", item.Message)); 98etwOutput.AppendLine(string.Format("---ETW Trace for Test {0} Ends---", DisplayName));
xunit\WcfTestDiscoverer.cs (2)
48string skippedReason = string.Format("Active issue(s): {0}", string.Join(", ", issueSkipList)); 77string skippedReason = string.Format("Condition(s) not met: {0}", string.Join(", ", skipReasons));
Infrastructure.IntegrationTests (3)
OSAndFrameworkTests.4.1.1.cs (3)
17String.Format("FrameworkID was not properly detected from: RuntimeInformation.FrameworkDescription = \'{0}\"", 41String.Format("FrameworkID.Name should have contained NetCore and NetNative, but actual was \"{0}\"", formatted)); 52String.Format("FrameworkID.Name should have contained Windows_7 and Ubuntu, but actual was \"{0}\"", formatted));
Microsoft.Analyzers.Extra (1)
DiagDescriptors.cs (1)
142string.Format(DiagnosticIds.UrlFormat, id),
Microsoft.AspNetCore.Authentication.BearerToken (1)
_generated\4\BearerTokenJsonSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Authentication.DeviceBoundSessions (1)
_generated\10\DeviceBoundSessionJsonContext.g.cs (1)
86throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Authentication.Twitter (1)
_generated\6\TwitterJsonContext.g.cs (1)
82throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Components (1)
_generated\4\PersistentServicesRegistryJsonContext.g.cs (1)
86throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Components.Endpoints (5)
_generated\14\ResourceCollectionSerializerContext.g.cs (1)
86throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\33\BrowserOptionsJsonContext.g.cs (1)
84throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\5\ImportMapSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\52\ServerComponentJsonContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\58\PrerenderComponentApplicationStoreSerializerContext.g.cs (1)
92throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Components.Server (5)
_generated\13\CircuitPersistenceManagerSerializerContext.g.cs (1)
82throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\3\JavaScriptInitializersManifestJsonContext.g.cs (1)
82throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\38\ServerComponentJsonContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\44\PrerenderComponentApplicationStoreSerializerContext.g.cs (1)
92throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
src\aspnetcore\src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackReader.cs (1)
674throw new MessagePackSerializationException(string.Format("Extension TypeCode is invalid. typeCode: {0}", header.TypeCode));
Microsoft.AspNetCore.Components.Server.AutoPause (1)
_generated\2\AutoPauseJsonContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Components.Testing (1)
_generated\8\E2EManifestJsonContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Components.Web (1)
_generated\15\WebRendererSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Components.WebAssembly (2)
_generated\20\WebAssemblyJsonSerializerContext.g.cs (1)
85throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\26\PrerenderComponentApplicationStoreSerializerContext.g.cs (1)
92throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Components.WebAssembly.Authentication (1)
_generated\9\InteractiveRequestOptionsSerializerContext.g.cs (1)
84throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Components.WebView (1)
_generated\11\SourceGenerationContext.g.cs (1)
84throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Diagnostics (1)
_generated\7\ExtensionsExceptionJsonContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Hosting (1)
_generated\11\SourceGenerationContext.g.cs (1)
84throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Http.Extensions (1)
_generated\11\ProblemDetailsJsonContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Identity (2)
_generated\17\IdentityEndpointsJsonSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\50\IdentityJsonSerializerContext.g.cs (1)
84throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.Mvc.Testing (1)
_generated\2\CustomJsonSerializerContext.g.cs (1)
82throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.OpenApi (1)
_generated\6\OpenApiJsonSchemaContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.AspNetCore.StaticAssets (1)
_generated\12\StaticAssetsManifestJsonContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.Build (6)
_generated\7\TasksDetailsJsonContext.g.cs (1)
83throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Graph\GraphBuilder.cs (2)
492string.Format( 517string.Format(
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
Microsoft.Build.Framework (1)
Utilities\FrameworkLocationHelper.cs (1)
1306return string.Format(_dotNetFrameworkSdkRegistryKey, sdkVersionFolder);
Microsoft.Build.Tasks.Git (5)
GitDataReader\GitConfig.Reader.cs (2)
46(c == -1) ? Resources.UnexpectedEndOfFile : string.Format(Resources.UnexpectedCharacter, $"U+{c:x4}"))); 202throw new InvalidDataException(string.Format(Resources.ConfigurationFileRecursionExceededMaximumAllowedDepth, MaxIncludeDepth));
GitDataReader\GitReferenceResolver.cs (2)
272throw new InvalidDataException(string.Format(Resources.InvalidReference, value)); 289throw new InvalidDataException(string.Format(Resources.RecursionDetectedWhileResolvingReference, referenceName));
GitDataReader\GitRepository.cs (1)
441throw new InvalidDataException(string.Format(Resources.FormatOfFileIsInvalid, path));
Microsoft.CodeAnalysis (49)
CommandLine\CommonCompiler.cs (2)
618consoleOutput.WriteLine(string.Format(CodeAnalysisResources.InternalsVisibleToCurrentAssembly, currentAssembly.Identity.GetDisplayName(fullKey: true))); 642consoleOutput.WriteLine(string.Format(CodeAnalysisResources.InternalsVisibleToReferencedAssemblyDetails, simpleName));
CommandLine\ReportAnalyzerUtil.cs (6)
49string.Format("{0,5}", percentage < 1 ? "<1" : percentage.ToString(culture)); 53var time = string.Format("{0,8}", CodeAnalysisResources.AnalyzerExecutionTimeColumnHeader); 54var percent = string.Format("{0,5}", "%"); 75consoleOutput.WriteLine(string.Format(CodeAnalysisResources.AnalyzerTotalExecutionTime, totalAnalyzerExecutionTime.ToString("##0.000", culture))); 121consoleOutput.WriteLine(string.Format(CodeAnalysisResources.SuppressorsNonConcurrentCountMessage, suppressorCount)); 157consoleOutput.WriteLine(string.Format(CodeAnalysisResources.GeneratorTotalExecutionTime, totalTime.ToString("##0.000", culture)));
Compilation\Compilation.cs (4)
705throw new ArgumentException(string.Format(CodeAnalysisResources.ReferenceOfTypeIsInvalid1, reference.GetType()), 865throw new ArgumentException(string.Format(CodeAnalysisResources.MetadataRefNotFoundToRemove1, r), 1663throw new ArgumentException(string.Format(CodeAnalysisResources.IsSymbolAccessibleBadWithin, nameof(within)), nameof(within)); 1679throw new ArgumentException(string.Format(CodeAnalysisResources.IsSymbolAccessibleWrongAssembly, parameterName), parameterName);
ConstantValueSpecialized.cs (1)
212return (_value == null) ? "null" : string.Format("\"{0}\"", _value);
CvtRes.cs (1)
78throw new ResourceException(String.Format("Resource header beginning at offset 0x{0:x} is malformed.", stream.Position - 8));
Diagnostic\CustomObsoleteDiagnosticInfo.cs (1)
76helpLinkUri = string.Format(urlFormat, id);
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
1455string.Format(CodeAnalysisResources.ExceptionContext, info?.GetContext()), e.CreateDiagnosticDescription()); 1482return string.Format(CodeAnalysisResources.DisableAnalyzerDiagnosticsMessage, string.Join(", ", diagnosticIds));
DiagnosticAnalyzer\AnalyzerFileReference.cs (1)
620string.Format(CodeAnalysisResources.AssemblyReferencesNetFramework, typeName),
DiagnosticAnalyzer\AnalyzerManager.AnalyzerExecutionContext.cs (2)
307throw new ArgumentException(string.Format(CodeAnalysisResources.SupportedDiagnosticsHasNullDescriptor, analyzer.ToString()), nameof(DiagnosticAnalyzer.SupportedDiagnostics)); 387throw new ArgumentException(string.Format(CodeAnalysisResources.SupportedSuppressionsHasNullDescriptor, analyzer.ToString()), nameof(DiagnosticSuppressor.SupportedSuppressions));
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (2)
1951var message = string.Format(CodeAnalysisResources.NonReportedDiagnosticCannotBeSuppressed, suppression.SuppressedDiagnostic.Id); 1958var message = string.Format(CodeAnalysisResources.UnsupportedSuppressionReported, suppression.Descriptor.Id);
DiagnosticAnalyzer\DiagnosticAnalysisContextHelpers.cs (2)
63throw new ArgumentException(string.Format(CodeAnalysisResources.UnsupportedDiagnosticReported, diagnostic.Id), nameof(diagnostic)); 71throw new ArgumentException(string.Format(CodeAnalysisResources.InvalidDiagnosticIdReported, diagnostic.Id), nameof(diagnostic));
Emit\EditAndContinue\DeletedMethodBody.cs (1)
77message = string.Format(CodeAnalysisResources.EncLambdaRudeEdit, rudeEdit.Value.Message);
Emit\SemanticEdit.cs (1)
186throw new ArgumentOutOfRangeException(nameof(MethodInstrumentation.Kinds), string.Format(CodeAnalysisResources.InvalidInstrumentationKind, instrumentationKind));
MetadataReader\MetadataReaderExtensions.cs (2)
106throw new BadImageFormatException(string.Format(CodeAnalysisResources.InvalidAssemblyName, nameStr)); 112throw new BadImageFormatException(string.Format(CodeAnalysisResources.InvalidCultureName, cultureName));
MetadataReference\AssemblyIdentity.cs (2)
113throw new ArgumentException(string.Format(CodeAnalysisResources.InvalidAssemblyName, name), nameof(name)); 118throw new ArgumentException(string.Format(CodeAnalysisResources.InvalidCultureName, cultureName), nameof(cultureName));
NativePdbWriter\PdbWriter.cs (2)
551throw new SymUnmanagedWriterException(string.Format(message, e.ImplementationModuleName)); 767throw new SymUnmanagedWriterException(string.Format(CodeAnalysisResources.SymWriterDoesNotSupportSourceLink, e.ImplementationModuleName));
SourceGeneration\AdditionalSourcesCollection.cs (3)
86throw new ArgumentException(string.Format(CodeAnalysisResources.HintNameUniquePerGenerator, hintName), nameof(hintName)); 91throw new ArgumentException(string.Format(CodeAnalysisResources.SourceTextRequiresEncoding, hintName), nameof(source)); 141throw new ArgumentException(string.Format(CodeAnalysisResources.HintNameUniquePerGenerator, source.HintName), "hintName");
SourceGeneration\GeneratorContexts.cs (1)
216throw new InvalidOperationException(string.Format(CodeAnalysisResources.Single_type_per_generator_0, typeName ?? typeof(T).Name));
SourceGeneration\Nodes\SharedInputNodes.cs (1)
40string.Format(CodeAnalysisResources.CompilationNotAvailableInPreCompilationPhase, providerName)));
src\roslyn\src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (8)
365throw new InvalidOperationException(string.Format("Expected at most one Using record for method {0}", FormatMethodToken(methodToken))); 374throw new InvalidOperationException(string.Format("Did not expect both Forward and ForwardToModule records for method {0}", FormatMethodToken(methodToken))); 392throw new InvalidOperationException(string.Format("Expected at most one ForwardToModule record for method {0}", FormatMethodToken(methodToken))); 434throw new InvalidOperationException(string.Format("Group size indicates more imports than there are import strings (method {0}).", FormatMethodToken(methodToken))); 440throw new InvalidOperationException(string.Format("Encountered extern alias info before all import strings were consumed (method {0}).", FormatMethodToken(methodToken))); 460throw new InvalidOperationException(string.Format("Expected only extern alias info strings after consuming the indicated number of imports (method {0}).", FormatMethodToken(methodToken))); 474throw new InvalidOperationException(string.Format("Group size indicates fewer imports than there are import strings (method {0}).", FormatMethodToken(methodToken))); 847return string.Format("0x{0:x8}", methodToken);
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
TreeDumper.cs (1)
227return string.Format("{{{0}}}", string.Join(", ", seq.Cast<object>().Select(DumperString).ToArray()));
Microsoft.CodeAnalysis.Analyzers (21)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
127failureReason = string.Format(CompilerExtensionsResources.Missing_prefix_colon_0, Prefix); 133failureReason = string.Format(CompilerExtensionsResources.Missing_suffix_colon_0, Suffix); 154? string.Format(CompilerExtensionsResources.Prefix_0_is_not_expected, prefix) 226reason = string.Format(resourceId, string.Join(", ", violations)); 266reason = string.Format(firstResourceId, Substring(name, wordSpan)); 282var restString = string.Format(restResourceId, string.Join(", ", violations));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.RepeatMatcher.cs (1)
23=> string.Format("({0}*)", matcher);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.SequenceMatcher.cs (1)
29=> string.Format("({0})", string.Join(",", (object[])matchers));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\FixAllHelper.cs (4)
19FixAllScope.Custom => string.Format(WorkspaceExtensionsResources.Fix_all_0, title), 22FixAllScope.Solution => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Solution, title), 23FixAllScope.ContainingMember => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_member, title), 24FixAllScope.ContainingType => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_type, title),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
39return semanticModel ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 63return syntaxTree ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 80return root ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (2)
44throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Project_of_ID_0_is_required_to_accomplish_the_task_but_is_not_available_from_the_solution, projectId)); 128=> new InvalidOperationException(string.Format(WorkspaceExtensionsResources.The_solution_does_not_contain_the_specified_document, debugName ?? "Unknown"));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (1)
99throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Compilation_is_required_to_accomplish_the_task_but_is_not_supported_by_project_0, project.Name));
Microsoft.CodeAnalysis.AnalyzerUtilities (11)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
127failureReason = string.Format(CompilerExtensionsResources.Missing_prefix_colon_0, Prefix); 133failureReason = string.Format(CompilerExtensionsResources.Missing_suffix_colon_0, Suffix); 154? string.Format(CompilerExtensionsResources.Prefix_0_is_not_expected, prefix) 226reason = string.Format(resourceId, string.Join(", ", violations)); 266reason = string.Format(firstResourceId, Substring(name, wordSpan)); 282var restString = string.Format(restResourceId, string.Join(", ", violations));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.RepeatMatcher.cs (1)
23=> string.Format("({0}*)", matcher);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.SequenceMatcher.cs (1)
29=> string.Format("({0})", string.Join(",", (object[])matchers));
Microsoft.CodeAnalysis.CodeStyle (11)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
127failureReason = string.Format(CompilerExtensionsResources.Missing_prefix_colon_0, Prefix); 133failureReason = string.Format(CompilerExtensionsResources.Missing_suffix_colon_0, Suffix); 154? string.Format(CompilerExtensionsResources.Prefix_0_is_not_expected, prefix) 226reason = string.Format(resourceId, string.Join(", ", violations)); 266reason = string.Format(firstResourceId, Substring(name, wordSpan)); 282var restString = string.Format(restResourceId, string.Join(", ", violations));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.RepeatMatcher.cs (1)
23=> string.Format("({0}*)", matcher);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.SequenceMatcher.cs (1)
29=> string.Format("({0})", string.Join(",", (object[])matchers));
Microsoft.CodeAnalysis.CodeStyle.Fixes (32)
src\roslyn\src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (1)
164return string.Format(
src\roslyn\src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (1)
370var title = string.Format(resourceString, signature);
src\roslyn\src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
70string.Format(CodeFixesResources.Alias_ambiguous_type_0, diagnosticNode.ToString()),
src\roslyn\src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (2)
273: string.Format(CodeFixesResources.Take_0, topText); 278: string.Format(CodeFixesResources.Take_0, bottomText);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (3)
97string.Format(CodeFixesResources.Generate_constructor_in_0_with_fields, state.TypeToGenerateIn.Name), 106string.Format(CodeFixesResources.Generate_constructor_in_0_with_properties, state.TypeToGenerateIn.Name), 113string.Format(CodeFixesResources.Generate_constructor_in_0, state.TypeToGenerateIn.Name),
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.CodeAction.cs (1)
56return string.Format(
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.CodeAction.cs (1)
53return string.Format(text, name);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.CodeAction.cs (1)
187return string.Format(
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (1)
76string.Format(CodeFixesResources.Generate_variable_0, state.IdentifierToken.ValueText),
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.GenerateLocalCodeAction.cs (1)
30return string.Format(
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.GenerateParameterCodeAction.cs (1)
36return string.Format(
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementAbstractClass\AbstractImplementAbstractClassCodeFixProvider.cs (1)
61string.Format(AnalyzersResources.Implement_through_0, through.Name),
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceService.cs (1)
243return string.Format(CodeFixesResources.Implement_interface_through_0, options.ThroughMember.Name);
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (1)
194string.Format(CodeFixesResources.Do_not_change_this_code_Put_cleanup_code_in_0_method, disposeMethodDisplayString),
src\roslyn\src\Analyzers\Core\CodeFixes\NamingStyle\NamingStyleCodeFixProvider.cs (1)
96string.Format(CodeFixesResources.Fix_name_violation_colon_0, fixedName),
src\roslyn\src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
46var title = string.Format(TitleFormat, type.Name);
src\roslyn\src\Analyzers\Core\CodeFixes\UpgradeProject\AbstractUpgradeProjectCodeFixProvider.cs (2)
56var fixOneProjectTitle = string.Format(UpgradeThisProjectResource, newVersion); 64var fixAllProjectsTitle = string.Format(UpgradeAllProjectsResource, newVersion);
src\roslyn\src\Analyzers\Core\CodeFixes\UseCollectionExpression\AbstractUseCollectionExpressionCodeFixProvider.cs (1)
17private readonly string _titleChangesSemantics = string.Format(CodeFixesResources._0_may_change_semantics, title);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\FixAllHelper.cs (4)
19FixAllScope.Custom => string.Format(WorkspaceExtensionsResources.Fix_all_0, title), 22FixAllScope.Solution => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Solution, title), 23FixAllScope.ContainingMember => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_member, title), 24FixAllScope.ContainingType => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_type, title),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
39return semanticModel ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 63return syntaxTree ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 80return root ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (2)
44throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Project_of_ID_0_is_required_to_accomplish_the_task_but_is_not_available_from_the_solution, projectId)); 128=> new InvalidOperationException(string.Format(WorkspaceExtensionsResources.The_solution_does_not_contain_the_specified_document, debugName ?? "Unknown"));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (1)
99throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Compilation_is_required_to_accomplish_the_task_but_is_not_supported_by_project_0, project.Name));
Microsoft.CodeAnalysis.CSharp (20)
CommandLine\CSharpCommandLineParser.cs (1)
1446AddDiagnostic(diagnostics, ErrorCode.ERR_BadBaseNumber, string.Format("0x{0:X}", baseAddress));
Compilation\CSharpCompilation.cs (7)
4331throw new ArgumentException(string.Format(CSharpResources.CallingConventionTypeIsInvalid, type.ToDisplayString())); 4453throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps1, name), nameof(name)); 4457throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps3, name), nameof(name)); 4652throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps2, $"{csharpReturnType.ToDisplayString()} operator {name}({csharpLeftType.ToDisplayString()}, {csharpRightType.ToDisplayString()})")); 4679throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps1, name), nameof(name)); 4683throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps3, name), nameof(name)); 4734throw new ArgumentException(string.Format(CodeAnalysisResources.BadBuiltInOps2, $"{csharpReturnType.ToDisplayString()} operator {name}({csharpOperandType.ToDisplayString()})"));
Compilation\CSharpSemanticModel.cs (1)
1319string.Format(CSharpResources.PositionIsNotWithinSyntax, Root.FullSpan));
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (1)
409commentMessage = string.Format(ErrorFacts.GetMessage(MessageID.IDS_XMLIGNORED2, CultureInfo.CurrentUICulture), resolvedFilePath);
CSharpExtensions.cs (4)
797throw new ArgumentException(string.Format(CSharpResources.IConversionExpressionIsNotCSharpConversion, 823throw new ArgumentException(string.Format(CSharpResources.ICompoundAssignmentOperationIsNotCSharpCompoundAssignment, 849throw new ArgumentException(string.Format(CSharpResources.ICompoundAssignmentOperationIsNotCSharpCompoundAssignment, 874throw new ArgumentException(string.Format(CSharpResources.ISpreadOperationIsNotCSharpSpread, nameof(spread)), nameof(spread));
Emitter\EditAndContinue\EmitHelpers.cs (1)
183string.Format(CodeAnalysisResources.Type0DoesNotHaveExpectedConstructor, type.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat)));
Emitter\Model\PEModuleBuilder.cs (1)
1282throw new InvalidOperationException(string.Format(CSharpResources.GenericParameterDefinition, param.Name));
Syntax\InternalSyntax\SyntaxToken.cs (2)
76throw new ArgumentException(string.Format(CSharpResources.ThisMethodCanOnlyBeUsedToCreateTokens, kind), nameof(kind)); 91throw new ArgumentException(string.Format(CSharpResources.ThisMethodCanOnlyBeUsedToCreateTokens, kind), nameof(kind));
Syntax\SyntaxFactory.cs (2)
263throw new ArgumentException(string.Format(CSharpResources.ThisMethodCanOnlyBeUsedToCreateTokens, kind), nameof(kind)); 1649string commentText = string.Format(@"/// <see cref=""{0}""/>", text);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SymbolDisplayPartExtensions.cs (1)
23return new SymbolDisplayPart(SymbolDisplayPartKind.ErrorTypeName, null, string.Format("@{0}", text));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (8)
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToAsync\CSharpConvertToAsyncMethodCodeFixProvider.cs (1)
42return string.Format(CSharpCodeFixesResources.Make_0_return_Task_instead_of_void, methodNode!.WithBody(null));
src\roslyn\src\Analyzers\CSharp\CodeFixes\DisambiguateSameVariable\CSharpDisambiguateSameVariableCodeFixProvider.cs (1)
123title = string.Format(titleFormat, $"{memberContainer}.{matchingMember.Name}");
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateConversionService.cs (2)
218=> string.Format(CodeFixesResources.Generate_implicit_conversion_operator_in_0, state.TypeToGenerateIn.Name); 221=> string.Format(CodeFixesResources.Generate_explicit_conversion_operator_in_0, state.TypeToGenerateIn.Name);
src\roslyn\src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (2)
107string.Format(CodeFixesResources.Do_not_change_this_code_Put_cleanup_code_in_0_method, disposeMethodDisplayString), 115string.Format(CodeFixesResources.TODO_colon_override_finalizer_only_if_0_has_code_to_free_unmanaged_resources, disposeMethodDisplayString),
src\roslyn\src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
56string.Format(CSharpCodeFixesResources.Use_0, displayText),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\OperatorGenerator.cs (1)
85throw new ArgumentException(string.Format(WorkspaceExtensionsResources.Cannot_generate_code_for_unsupported_operator_0, method.Name), nameof(method));
Microsoft.CodeAnalysis.CSharp.Features (21)
CodeFixes\Suppression\CSharpSuppressionCodeFixProvider.cs (1)
65var titleComment = Comment(string.Format(" // {0}", title)).WithAdditionalAnnotations(Formatter.Annotation);
ConvertToExtension\ConvertToExtensionCodeRefactoringProvider.cs (2)
167string.Format(CSharpFeaturesResources.Convert_0_extension_methods_to_extension, specificExtension.Value.FirstParameter.Type.ToDisplayString()), 184string.Format(CSharpFeaturesResources.Convert_all_extension_methods_in_0_to_extension, classDeclaration.Identifier.ValueText),
ImplementInterface\AbstractChangeImplementationCodeRefactoringProvider.cs (2)
80string.Format(Implement_0, firstImplName), 112string.Format(Implement_0, string.Join(", ", interfaceNames)),
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider.cs (3)
80string.Format(fieldOrProperty.Kind == SymbolKind.Field ? FeaturesResources.Initialize_field_0 : FeaturesResources.Initialize_property_0, fieldOrProperty.Name), 154string.Format(FeaturesResources.Create_and_assign_field_0, field.Name), 157string.Format(FeaturesResources.Create_and_assign_property_0, property.Name),
LanguageServices\CSharpSymbolDisplayService.SymbolDescriptionBuilder.cs (1)
217additionalParts = PlainText(string.Format(FeaturesResources.Represents_the_character_0_as_a_UTF_16_code_unit, character));
QuickInfo\CSharpSemanticQuickInfoProvider.cs (3)
245(NullableAnnotation.None, _) => string.Format(FeaturesResources._0_is_not_nullable_aware, symbol.ToDisplayString(s_nullableDisplayFormat)), 246(_, NullableFlowState.MaybeNull) => string.Format(FeaturesResources._0_may_be_null_here, symbol.ToDisplayString(s_nullableDisplayFormat)), 247(_, NullableFlowState.NotNull) => string.Format(FeaturesResources._0_is_not_null_here, symbol.ToDisplayString(s_nullableDisplayFormat)),
SimplifyTypeNames\SimplifyTypeNamesCodeFixProvider.cs (2)
33return string.Format(FeaturesResources.Simplify_name_0, nodeText); 36return string.Format(FeaturesResources.Simplify_member_access_0, nodeText);
src\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToAsync\CSharpConvertToAsyncMethodCodeFixProvider.cs (1)
42return string.Format(CSharpCodeFixesResources.Make_0_return_Task_instead_of_void, methodNode!.WithBody(null));
src\roslyn\src\Analyzers\CSharp\CodeFixes\DisambiguateSameVariable\CSharpDisambiguateSameVariableCodeFixProvider.cs (1)
123title = string.Format(titleFormat, $"{memberContainer}.{matchingMember.Name}");
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateConversionService.cs (2)
218=> string.Format(CodeFixesResources.Generate_implicit_conversion_operator_in_0, state.TypeToGenerateIn.Name); 221=> string.Format(CodeFixesResources.Generate_explicit_conversion_operator_in_0, state.TypeToGenerateIn.Name);
src\roslyn\src\Analyzers\CSharp\CodeFixes\ImplementInterface\CSharpImplementInterfaceService.cs (2)
107string.Format(CodeFixesResources.Do_not_change_this_code_Put_cleanup_code_in_0_method, disposeMethodDisplayString), 115string.Format(CodeFixesResources.TODO_colon_override_finalizer_only_if_0_has_code_to_free_unmanaged_resources, disposeMethodDisplayString),
src\roslyn\src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (1)
56string.Format(CSharpCodeFixesResources.Use_0, displayText),
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\Performance\CSharpCollapseMultiplePathOperations.Fixer.cs (1)
46string.Format(MicrosoftNetCoreAnalyzersResources.CollapseMultiplePathOperationsCodeFixTitle, methodName),
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Hosting\CSharpReplServiceProvider.cs (1)
24=> string.Format(CSharpScriptingResources.LogoLine1, CommonCompiler.GetProductVersion(typeof(CSharpReplServiceProvider)));
Microsoft.CodeAnalysis.CSharp.Workspaces (20)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SymbolDisplayPartExtensions.cs (1)
23return new SymbolDisplayPart(SymbolDisplayPartKind.ErrorTypeName, null, string.Format("@{0}", text));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\OperatorGenerator.cs (1)
85throw new ArgumentException(string.Format(WorkspaceExtensionsResources.Cannot_generate_code_for_unsupported_operator_0, method.Name), nameof(method));
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (13)
323context.ReportError(string.Format(FileBasedProgramsResources.UnrecognizedDirective, context.DirectiveKind)); 336context.ReportError(string.Format(FileBasedProgramsResources.MissingDirectiveName, directiveKind)); 431context.ReportError(string.Format(FileBasedProgramsResources.PropertyDirectiveInvalidName, ex.Message)); 510context.ReportError(string.Format(FileBasedProgramsResources.MissingDirectiveName, context.DirectiveKind)); 570ReportError(string.Format(FileBasedProgramsResources.InvalidProjectDirective, error)); 575ReportError(string.Format(FileBasedProgramsResources.InvalidProjectDirective, string.Format(FileBasedProgramsResources.CouldNotFindProjectOrDirectory, resolvedProjectPath))); 622context.ReportError(string.Format(FileBasedProgramsResources.MissingDirectiveName, context.DirectiveKind)); 671string.Format(FileBasedProgramsResources.InvalidRefDirective, 672string.Format(FileBasedProgramsResources.CouldNotFindRefFile, resolvedFilePath))); 732context.ReportError(string.Format(FileBasedProgramsResources.MissingDirectiveName, directiveKind)); 846ReportError(string.Format(FileBasedProgramsResources.InvalidIncludeExcludeMappingEntry, pair)); 911string.Format(FileBasedProgramsResources.DuplicateDirective, typeAndName));
SyncedSource\FileBasedPrograms\ProjectLocator.cs (3)
33error = string.Format(FileBasedProgramsResources.CouldNotFindProjectOrDirectory, projectDirectory); 40error = string.Format(FileBasedProgramsResources.CouldNotFindAnyProjectInDirectory, projectDirectory); 46error = string.Format(FileBasedProgramsResources.MoreThanOneProjectInDirectory, projectDirectory);
SyncedSource\FileBasedPrograms\VirtualProjectBuilder.cs (2)
419reportError(EntryPointSourceFile.Text, EntryPointSourceFile.Path, default, string.Format(FileBasedProgramsResources.IncludedFileNotFound, filePath)); 577string.Format(FileBasedProgramsResources.ExperimentalFeatureDisabled, flagName));
Microsoft.CodeAnalysis.Extensions.Package (3)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
Microsoft.CodeAnalysis.ExternalAccess.Extensions (2)
Internal\ExtensionMessageHandlerFactory.cs (1)
69?? throw new InvalidOperationException(string.Format(ExternalAccessExtensionsResources.Cannot_create_0, candidateType.FullName));
Internal\ExtensionMessageHandlerWrapper.cs (1)
24Name = handler.GetType().FullName ?? throw new ArgumentException(string.Format(ExternalAccessExtensionsResources.The_handler_of_type_0_must_have_a_full_name, handler.GetType().Name), nameof(handler));
Microsoft.CodeAnalysis.Features (152)
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.AddConstructorParametersCodeAction.cs (3)
180return string.Format(CodeFixesResources.Add_to_0, signature); 183? string.Format(FeaturesResources.Add_optional_parameters_to_0, signature) 184: string.Format(FeaturesResources.Add_parameters_to_0, signature);
AddImport\AbstractAddImportCodeRefactoringProvider.cs (2)
110string.Format(AddImportTitle, namespaceDisplayString), 113string.Format(AddImportAndSimplifyAllOccurrencesTitle, namespaceDisplayString),
AddImport\References\AssemblyReference.cs (1)
31var title = $"{provider.GetDescription(SearchResult.NameParts)} ({string.Format(FeaturesResources.from_0, _referenceAssemblyWithType.AssemblyName)})";
AddImport\References\MetadataSymbolReference.cs (1)
46return (string.Format(FeaturesResources.Add_reference_to_0, Path.GetFileName(_reference.FilePath)),
AddImport\References\ProjectSymbolReference.cs (1)
95: string.Format(FeaturesResources.Add_reference_to_0, _project.Name);
AddMissingReference\AddMissingReferenceCodeAction.cs (2)
62string.Format(FeaturesResources.Add_project_reference_to_0, candidateProject.Name), 69var description = string.Format(FeaturesResources.Add_reference_to_0, missingAssemblyIdentity.GetDisplayName());
AddPackage\InstallPackageDirectlyCodeAction.cs (2)
30? string.Format(FeaturesResources.Use_local_version_0, versionOpt) 31: string.Format(FeaturesResources.Install_version_0, versionOpt);
AddPackage\InstallPackageDirectlyCodeActionOperation.cs (1)
60? string.Format(FeaturesResources.Find_and_install_latest_version_of_0, _packageName)
AddPackage\InstallPackageParentCodeAction.cs (1)
30Document document) : CodeAction.CodeActionWithNestedActions(string.Format(FeaturesResources.Install_package_0, packageName),
AddPackage\ParentInstallPackageCodeAction.cs (3)
59: base(string.Format(FeaturesResources.Install_package_0, fixData.PackageName), 117? string.Format(FeaturesResources.Use_local_version_0, version) 118: string.Format(FeaturesResources.Install_version_0, version);
CodeFixes\Configuration\ConfigureCodeStyle\ConfigureCodeStyleOptionCodeFixProvider.TopLevelConfigureCodeStyleOptionCodeAction.cs (1)
15: base(nestedActions, string.Format(FeaturesResources.Configure_0_code_style, diagnostic.Id))
CodeFixes\Configuration\ConfigureSeverity\ConfigureSeverityLevelCodeFixProvider.TopLevelBulkConfigureSeverityCodeAction.cs (1)
14? string.Format(FeaturesResources.Configure_severity_for_all_0_analyzers, category)
CodeFixes\Configuration\ConfigureSeverity\ConfigureSeverityLevelCodeFixProvider.TopLevelConfigureSeverityCodeAction.cs (1)
12private sealed class TopLevelConfigureSeverityCodeAction(Diagnostic diagnostic, ImmutableArray<CodeAction> nestedActions) : AbstractConfigurationActionWithNestedActions(nestedActions, string.Format(FeaturesResources.Configure_0_severity, diagnostic.Id))
CodeFixes\Service\CodeFixService.cs (2)
412? string.Format(FeaturesResources.Error_creating_instance_of_CodeFixProvider_0, lazyFixer.Metadata.Name) 895string.Format(
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (1)
76return string.Format(s_suppressionsFileCommentTemplate, SingleLineCommentStart);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction.cs (1)
52: base(fixer, title: string.Format(FeaturesResources.Remove_Suppression_0, diagnostic.Id))
CodeFixes\Suppression\TopLevelSuppressionCodeAction.cs (1)
10internal sealed class TopLevelSuppressionCodeAction(Diagnostic diagnostic, ImmutableArray<NestedSuppressionCodeAction> nestedActions) : AbstractConfigurationActionWithNestedActions(ImmutableArray<CodeAction>.CastUp(nestedActions), string.Format(FeaturesResources.Suppress_0, diagnostic.Id))
CodeLens\ReferenceCount.cs (1)
26var description = string.Format(referenceWord, GetCappedReferenceCountString());
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeCodeAction.cs (3)
41MoveTypeOperationKind.MoveType => string.Format(FeaturesResources.Move_type_to_0, _fileName), 42MoveTypeOperationKind.RenameType => string.Format(FeaturesResources.Rename_type_to_0, GetDocumentNameWithoutExtension(_document)), 43MoveTypeOperationKind.RenameFile => string.Format(FeaturesResources.Rename_file_to_0, _fileName),
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.cs (1)
83: string.Format(FeaturesResources.Change_namespace_to_0, state.TargetNamespace);
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (1)
33? string.Format(FeaturesResources.Move_file_to_0, string.Join(PathUtilities.DirectorySeparatorStr, _newfolders))
Completion\CommonCompletionProvider.cs (1)
88var note = string.Format(FeaturesResources.Note_colon_Tab_twice_to_insert_the_0_snippet, insertionText);
Completion\Providers\AbstractAwaitCompletionProvider.cs (1)
142string.Format(FeaturesResources.Await_the_preceding_expression_and_add_ConfigureAwait_0, _falseKeyword),
Completion\Providers\RecommendedKeyword.cs (1)
35textContentBuilder.AddText(string.Format(FeaturesResources._0_Keyword, keyword));
Completion\Providers\Snippets\AbstractSnippetCompletionProvider.cs (1)
95description: (snippetData.Description + Environment.NewLine + string.Format(FeaturesResources.Code_snippet_for_0, snippetData.Description)).ToSymbolDisplayParts(),
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
1527arguments: [string.Format(FeaturesResources._0_directive, LineDirectiveKeyword)]));
EditAndContinue\EditSession.cs (2)
714reason ??= string.Format(FeaturesResources._0_does_not_support_Hot_Reload, document.Project.Language); 1574: string.Format(FeaturesResources.the_project_contains_stale_document_0, staleDocumentPath)
EmbeddedLanguages\Json\JsonParser.cs (9)
55private static readonly string s_closeBracketExpected = string.Format(FeaturesResources._0_expected, ']'); 56private static readonly string s_closeBraceExpected = string.Format(FeaturesResources._0_expected, '}'); 57private static readonly string s_openParenExpected = string.Format(FeaturesResources._0_expected, '('); 58private static readonly string s_closeParenExpected = string.Format(FeaturesResources._0_expected, ')'); 59private static readonly string s_commaExpected = string.Format(FeaturesResources._0_expected, ','); 184string.Format(FeaturesResources._0_unexpected, firstToken.VirtualChars[0]), 196string.Format(FeaturesResources._0_unexpected, ','), 203string.Format(FeaturesResources._0_unexpected, ':'), 496string.Format(FeaturesResources._0_unexpected, firstChar.ToString()),
EmbeddedLanguages\Json\JsonParser.JsonNetSyntaxChecks.cs (1)
168return new EmbeddedDiagnostic(string.Format(FeaturesResources._0_expected, ','), GetFirstToken(nextChild).GetSpan());
EmbeddedLanguages\Json\JsonParser.StrictSyntaxChecker.cs (4)
138return new EmbeddedDiagnostic(string.Format(FeaturesResources._0_unexpected, ","), child.GetSpan()); 143return new EmbeddedDiagnostic(string.Format(FeaturesResources._0_expected, ","), GetFirstToken(child).GetSpan()); 258=> new(string.Format(FeaturesResources._0_literal_not_allowed, literalToken.VirtualChars.CreateString()), literalToken.GetSpan()); 261=> new(string.Format(FeaturesResources._0_literal_not_allowed, "-Infinity"), node.GetSpan());
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexEmbeddedCompletionProvider.cs (1)
283: string.Format(Regex_unicode_general_category_0, name);
EmbeddedLanguages\RegularExpressions\RegexLexer.cs (1)
246string.Format(FeaturesResources.Unknown_property_0, category),
EmbeddedLanguages\RegularExpressions\RegexParser.cs (8)
829string.Format(FeaturesResources.Conditional_alternation_refers_to_an_undefined_group_number_0, capture.VirtualChars[0]), 837string.Format(FeaturesResources.Conditional_alternation_is_missing_a_closing_parenthesis_after_the_group_number_0, capture.VirtualChars[0]), 1129string.Format(FeaturesResources.Reference_to_undefined_group_number_0, val), 1139string.Format(FeaturesResources.Reference_to_undefined_group_name_0, val), 1514string.Format(FeaturesResources.Cannot_include_class_0_in_character_range, nextChar), 1868string.Format(FeaturesResources.Unrecognized_escape_sequence_0, ch), 2036string.Format(FeaturesResources.Quantifier_0_following_nothing, token.VirtualChars[0]), token.GetSpan())); 2041string.Format(FeaturesResources.Nested_quantifier_0, token.VirtualChars[0]), token.GetSpan()));
Emit\CompilationOutputs.cs (1)
124throw new InvalidOperationException(string.Format(FeaturesResources.MethodMustReturnStreamThatSupportsReadAndSeek, methodName));
EncapsulateField\AbstractEncapsulateFieldService.cs (2)
100string.Format(FeaturesResources.Encapsulate_field_colon_0_and_use_property, field.Name), 104string.Format(FeaturesResources.Encapsulate_field_colon_0_but_still_use_field, field.Name),
Extensions\ExtensionFolder.cs (3)
122throw new InvalidOperationException(string.Format(FeaturesResources.Extension_0_is_already_registered, assemblyFilePath)); 145throw new InvalidOperationException(string.Format(FeaturesResources.Extension_0_was_not_registered, assemblyFilePath)); 160throw new InvalidOperationException(string.Format(FeaturesResources.Extension_0_was_not_registered, assemblyFilePath));
Extensions\ExtensionMessageHandlerService.cs (5)
63?? throw new InvalidOperationException(string.Format(FeaturesResources.Unable_to_get_the_directory_name_for_0, assemblyFilePath)); 117throw new InvalidOperationException(string.Format(FeaturesResources.No_extension_registered_as_0, assemblyFolderPath)); 177throw new InvalidOperationException(string.Format(FeaturesResources.No_extensions_registered_at_0, assemblyFolderPath)); 222throw new InvalidOperationException(string.Format(FeaturesResources.No_handler_found_for_message_0, messageName)); 229throw new InvalidOperationException(string.Format(FeaturesResources.Multiple_handlers_found_for_message_0, messageName));
ExtractInterface\AbstractExtractInterfaceService.cs (1)
419Debug.Assert(false, string.Format(FeaturesResources.Unexpected_interface_member_kind_colon_0, member.Kind.ToString()));
ExtractMethod\MethodExtractor.Analyzer.cs (4)
239string.Format( 252string.Format( 277return new OperationStatus(succeeded: true, string.Format(FeaturesResources.Asynchronous_method_cannot_have_ref_out_parameters_colon_bracket_0_bracket, string.Join(", ", names))); 895return new OperationStatus(succeeded: true, string.Format(FeaturesResources.Assigning_to_readonly_fields_must_be_done_in_a_constructor_colon_bracket_0_bracket, string.Join(", ", names)));
FindUsages\AbstractFindUsagesService_FindImplementations.cs (1)
72string.Format(FeaturesResources._0_implementations,
FindUsages\AbstractFindUsagesService_FindReferences.cs (2)
111string.Format(FeaturesResources._0_references, 219var searchTitle = string.Format(FeaturesResources._0_references, title);
FullyQualify\AbstractFullyQualifyCodeFixProvider.cs (1)
57string.Format(FeaturesResources.Fully_qualify_0, fixData.Name),
GenerateComparisonOperators\GenerateComparisonOperatorsCodeRefactoringProvider.cs (1)
109string.Format(FeaturesResources.Generate_for_0, displayString),
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersCodeRefactoringProvider.cs (1)
275string.Format(FeaturesResources.Implement_0, displayName),
GenerateType\AbstractGenerateTypeService.cs (1)
85string.Format(FeaturesResources.Generate_type_0, state.Name),
GoToBase\AbstractGoToBaseService.cs (1)
53string.Format(FeaturesResources._0_bases,
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (1)
278var taggedText = new TaggedText(TextTags.Text, string.Format(FeaturesResources.Directives_from_0, fileName));
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (3)
127string.Format(FeaturesResources.Add_0_check, "string.IsNullOrEmpty"), 132string.Format(FeaturesResources.Add_0_check, "string.IsNullOrWhiteSpace"), 163string.Format(FeaturesResources.Add_0_check, "Enum.IsDefined"),
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (3)
202string.Format(FeaturesResources.Create_and_assign_field_0, field.Name), 206string.Format(FeaturesResources.Create_and_assign_property_0, property.Name), 251var title = string.Format(resource, fieldOrProperty.Name);
InlineMethod\AbstractInlineMethodRefactoringProvider.cs (3)
198string.Format(FeaturesResources.Inline_0, calleeMethodSymbol.ToNameDisplayString()), 214string.Format(FeaturesResources.Inline_0, calleeMethodName), 221string.Format(FeaturesResources.Inline_and_keep_0, calleeMethodName),
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (2)
112string.Format(FeaturesResources.Introduce_parameter_for_0, nodeString), 121string.Format(FeaturesResources.Introduce_parameter_for_all_occurrences_of_0, nodeString),
IntroduceVariable\AbstractIntroduceLocalForExpressionCodeRefactoringProvider.cs (2)
56string.Format(FeaturesResources.Deconstruct_locals_for_0, nodeString), 64string.Format(FeaturesResources.Introduce_local_for_0, nodeString),
IntroduceVariable\AbstractIntroduceVariableService.IntroduceVariableCodeAction.cs (1)
103return string.Format(formatString, nodeString);
MetadataAsSource\AbstractMetadataAsSourceService.DocCommentFormatter.cs (3)
59lineBuilder.Append(string.Format(s_labelFormat, parameterNames[i])); 83lineBuilder.Append(string.Format(s_labelFormat, typeParameterNames[i])); 121lineBuilder.Append(string.Format(s_labelFormat, exceptionTypes[i]));
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (2)
350? string.Format(@"[assembly: System.Reflection.AssemblyVersion(""{0}"")]", assemblyIdentity.Version) 351: string.Format(@"<Assembly: System.Reflection.AssemblyVersion(""{0}"")>", assemblyIdentity.Version);
NameTupleElement\AbstractNameTupleElementCodeRefactoringProvider.cs (1)
34string.Format(FeaturesResources.Add_tuple_element_name_0, elementName),
NavigateTo\RoslynNavigateToItem.cs (1)
131(false, true) => string.Format(FeaturesResources.project_0, combinedProjectName),
PdbSourceDocument\IPdbSourceDocumentLogger.cs (1)
20=> logger.Log(string.Format(message, arg0));
PullMemberUp\AbstractPullMemberUpRefactoringProvider.cs (1)
63? string.Format(FeaturesResources.Pull_0_up_to, selectedMembers.Single().ToNameDisplayString())
ReplaceDocCommentTextWithTag\AbstractReplaceDocCommentTextWithTagCodeRefactoringProvider.cs (1)
151string.Format(FeaturesResources.Use_0, replacement),
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (1)
70string.Format(FeaturesResources.Replace_0_with_property, methodName),
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (1)
65string.Format(resourceString, propertyName),
Shared\Utilities\ExtractTypeHelpers.cs (1)
221Debug.Assert(false, string.Format(FeaturesResources.Unexpected_interface_member_kind_colon_0, member.Kind.ToString()));
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (1)
186string.Format(FeaturesResources.Fix_typo_0, nameText),
SplitOrMergeIfStatements\Consecutive\AbstractMergeConsecutiveIfStatementsCodeRefactoringProvider.cs (1)
51var title = string.Format(resourceText, ifKeywordText);
SplitOrMergeIfStatements\Consecutive\AbstractSplitIntoConsecutiveIfStatementsCodeRefactoringProvider.cs (1)
49string.Format(FeaturesResources.Split_into_consecutive_0_statements, ifKeywordText),
SplitOrMergeIfStatements\Nested\AbstractMergeNestedIfStatementsCodeRefactoringProvider.cs (1)
39var title = string.Format(resourceText, ifKeywordText);
SplitOrMergeIfStatements\Nested\AbstractSplitIntoNestedIfStatementsCodeRefactoringProvider.cs (1)
36string.Format(FeaturesResources.Split_into_nested_0_statements, ifKeywordText),
src\roslyn\src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (1)
164return string.Format(
src\roslyn\src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (1)
370var title = string.Format(resourceString, signature);
src\roslyn\src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (1)
70string.Format(CodeFixesResources.Alias_ambiguous_type_0, diagnosticNode.ToString()),
src\roslyn\src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (2)
273: string.Format(CodeFixesResources.Take_0, topText); 278: string.Format(CodeFixesResources.Take_0, bottomText);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (3)
97string.Format(CodeFixesResources.Generate_constructor_in_0_with_fields, state.TypeToGenerateIn.Name), 106string.Format(CodeFixesResources.Generate_constructor_in_0_with_properties, state.TypeToGenerateIn.Name), 113string.Format(CodeFixesResources.Generate_constructor_in_0, state.TypeToGenerateIn.Name),
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.CodeAction.cs (1)
56return string.Format(
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.CodeAction.cs (1)
53return string.Format(text, name);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.CodeAction.cs (1)
187return string.Format(
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (1)
76string.Format(CodeFixesResources.Generate_variable_0, state.IdentifierToken.ValueText),
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.GenerateLocalCodeAction.cs (1)
30return string.Format(
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.GenerateParameterCodeAction.cs (1)
36return string.Format(
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementAbstractClass\AbstractImplementAbstractClassCodeFixProvider.cs (1)
61string.Format(AnalyzersResources.Implement_through_0, through.Name),
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceService.cs (1)
243return string.Format(CodeFixesResources.Implement_interface_through_0, options.ThroughMember.Name);
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (1)
194string.Format(CodeFixesResources.Do_not_change_this_code_Put_cleanup_code_in_0_method, disposeMethodDisplayString),
src\roslyn\src\Analyzers\Core\CodeFixes\NamingStyle\NamingStyleCodeFixProvider.cs (1)
96string.Format(CodeFixesResources.Fix_name_violation_colon_0, fixedName),
src\roslyn\src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (1)
46var title = string.Format(TitleFormat, type.Name);
src\roslyn\src\Analyzers\Core\CodeFixes\UpgradeProject\AbstractUpgradeProjectCodeFixProvider.cs (2)
56var fixOneProjectTitle = string.Format(UpgradeThisProjectResource, newVersion); 64var fixAllProjectsTitle = string.Format(UpgradeAllProjectsResource, newVersion);
src\roslyn\src\Analyzers\Core\CodeFixes\UseCollectionExpression\AbstractUseCollectionExpressionCodeFixProvider.cs (1)
17private readonly string _titleChangesSemantics = string.Format(CodeFixesResources._0_may_change_semantics, title);
src\roslyn\src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoReader.cs (8)
365throw new InvalidOperationException(string.Format("Expected at most one Using record for method {0}", FormatMethodToken(methodToken))); 374throw new InvalidOperationException(string.Format("Did not expect both Forward and ForwardToModule records for method {0}", FormatMethodToken(methodToken))); 392throw new InvalidOperationException(string.Format("Expected at most one ForwardToModule record for method {0}", FormatMethodToken(methodToken))); 434throw new InvalidOperationException(string.Format("Group size indicates more imports than there are import strings (method {0}).", FormatMethodToken(methodToken))); 440throw new InvalidOperationException(string.Format("Encountered extern alias info before all import strings were consumed (method {0}).", FormatMethodToken(methodToken))); 460throw new InvalidOperationException(string.Format("Expected only extern alias info strings after consuming the indicated number of imports (method {0}).", FormatMethodToken(methodToken))); 474throw new InvalidOperationException(string.Format("Group size indicates fewer imports than there are import strings (method {0}).", FormatMethodToken(methodToken))); 847return string.Format("0x{0:x8}", methodToken);
UseNamedArguments\AbstractUseNamedArgumentsCodeRefactoringProvider.cs (3)
112string.Format(FeaturesResources.Add_argument_name_0, argumentName), 119string.Format(FeaturesResources.Add_argument_name_0_including_trailing_arguments, argumentName), 128string.Format(FeaturesResources.Add_argument_name_0, argumentName),
Microsoft.CodeAnalysis.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\Performance\PreferReadOnlySpanOverSpan.Fixer.cs (1)
65=> string.Format(MicrosoftNetCoreAnalyzersResources.PreferReadOnlySpanOverSpanCodeFixTitle, targetTypeName);
Microsoft.CodeAnalysis.Rebuild (3)
CompilationOptionsReader.cs (1)
396throw new InvalidDataException(string.Format(RebuildResources.Unexpected_value_for_EmbedInteropTypes_MetadataImageKind_0, embedInteropTypesAndKind));
Extensions.cs (1)
20throw new InvalidDataException(string.Format(RebuildResources.Encountered_unexpected_byte_0_when_expecting_a_null_terminator, b));
VisualBasicCompilationFactory.cs (1)
82throw new Exception(string.Format(RebuildResources.Cannot_create_compilation_options_0, diagnostic));
Microsoft.CodeAnalysis.ResxSourceGenerator (11)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
127failureReason = string.Format(CompilerExtensionsResources.Missing_prefix_colon_0, Prefix); 133failureReason = string.Format(CompilerExtensionsResources.Missing_suffix_colon_0, Suffix); 154? string.Format(CompilerExtensionsResources.Prefix_0_is_not_expected, prefix) 226reason = string.Format(resourceId, string.Join(", ", violations)); 266reason = string.Format(firstResourceId, Substring(name, wordSpan)); 282var restString = string.Format(restResourceId, string.Join(", ", violations));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.RepeatMatcher.cs (1)
23=> string.Format("({0}*)", matcher);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.SequenceMatcher.cs (1)
29=> string.Format("({0})", string.Join(",", (object[])matchers));
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommandLine\CommandLineRunner.cs (1)
399Console.Error.WriteLine(string.Format(ScriptingResources.PlusAdditionalError, notShown));
Microsoft.CodeAnalysis.VisualBasic (14)
Compilation\VisualBasicCompilation.vb (2)
951Throw New ArgumentException(String.Format(VBResources.TreesMustHaveRootNode, i)) 1057Throw New ArgumentException(String.Format(VBResources.SyntaxTreeNotFoundToRemove, tree))
Scanner\ScannerXml.vb (1)
1123name = name.WithDiagnostics(ErrorFactory.ErrorInfo(err, errChar, String.Format("&H{0:X}", errUnicode)))
Scanner\XmlTokenFactories.vb (1)
102diagnostic = ErrorFactory.ErrorInfo(id, xmlCh, String.Format("&H{0:X}", xmlChAsUnicode))
SymbolDisplay\SymbolDisplayVisitor.Types.vb (1)
338Dim name = String.Format("<anonymous type: {0}>", members)
SymbolDisplay\SymbolDisplayVisitor.vb (2)
138Return String.Format("[{0}]", identifier) 173Return String.Format("[{0}]", identifier)
Symbols\Source\OverrideHidingHelper.vb (1)
504Debug.Assert(False, String.Format("Unexpected method kind '{0}'", DirectCast(sym, MethodSymbol).MethodKind))
Syntax\SyntaxFacts.vb (1)
550Debug.Assert(False, String.Format("Unknown accessibility '{0}'", accessibility))
VisualBasicExtensions.vb (5)
1391Throw New ArgumentException(String.Format(VBResources.IConversionExpressionIsNotVisualBasicConversion, 1409Throw New ArgumentException(String.Format(VBResources.IArgumentIsNotVisualBasicArgument, 1427Throw New ArgumentException(String.Format(VBResources.IArgumentIsNotVisualBasicArgument, 1449Throw New ArgumentException(String.Format(VBResources.ICompoundAssignmentOperationIsNotVisualBasicCompoundAssignment, 1471Throw New ArgumentException(String.Format(VBResources.ICompoundAssignmentOperationIsNotVisualBasicCompoundAssignment,
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\Iterator\VisualBasicConvertToIteratorCodeFixProvider.vb (1)
98Dim title = String.Format(VisualBasicCodeFixesResources.Convert_0_to_Iterator, methodStatementNode.Identifier)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SymbolDisplayPartExtensions.vb (1)
21Return New SymbolDisplayPart(SymbolDisplayPartKind.ErrorTypeName, Nothing, String.Format("[{0}]", text))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (1)
411Throw New NotSupportedException(String.Format("Accessibility '{0}' not supported.", accessibility))
Microsoft.CodeAnalysis.VisualBasic.Features (15)
CodeFixes\GenerateEndConstruct\GenerateEndConstructCodeFixProvider.vb (3)
202Return String.Format(VBFeaturesResources.Insert_the_missing_0, "End " + SyntaxFacts.GetText(endBlockSyntax.BlockKeyword.Kind)) 207Return String.Format(VBFeaturesResources.Insert_the_missing_0, SyntaxFacts.GetText(SyntaxKind.LoopKeyword)) 210Return String.Format(VBFeaturesResources.Insert_the_missing_0, SyntaxFacts.GetText(SyntaxKind.NextKeyword))
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.AddKeywordCodeAction.vb (1)
35Return String.Format(VBFeaturesResources.Insert_0, SyntaxFacts.GetText(BlockKindToKeywordKind(_createBlockKind)))
CodeFixes\IncorrectExitContinue\IncorrectExitContinueCodeFixProvider.vb (1)
330Return String.Format(VBFeaturesResources.Delete_the_0_statement1, node.ToString().Trim())
CodeFixes\MoveToTopOfFile\MoveToTopOfFileCodeFixProvider.vb (1)
193Return String.Format(VBFeaturesResources.Delete_the_0_statement2, kind)
CodeFixes\Suppression\VisualBasicSuppressionCodeFixProvider.vb (1)
66Dim titleComment = SyntaxFactory.CommentTrivia(String.Format(" ' {0}", title)).WithAdditionalAnnotations(Formatter.Annotation)
Completion\KeywordRecommenders\Declarations\EndBlockKeywordRecommender.vb (5)
69Return String.Format(VBFeaturesResources.Terminates_a_0_block, keyword) 71Return String.Format(VBFeaturesResources.Terminates_an_0_block, keyword) 73Return String.Format(VBFeaturesResources.Terminates_the_definition_of_a_0_statement, keyword & " Case") 75Return String.Format(VBFeaturesResources.Terminates_the_definition_of_a_0_statement, keyword) 77Return String.Format(VBFeaturesResources.Terminates_the_definition_of_an_0_statement, keyword)
Completion\KeywordRecommenders\Expressions\CastOperatorsKeywordRecommender.vb (1)
41String.Format(VBFeaturesResources._0_function, SyntaxFacts.GetText(keyword)),
Completion\KeywordRecommenders\Expressions\IfKeywordRecommender.vb (1)
21$"{String.Format(VBFeaturesResources._0_function, "If")} (+1 {FeaturesResources.overload})",
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\Iterator\VisualBasicConvertToIteratorCodeFixProvider.vb (1)
98Dim title = String.Format(VisualBasicCodeFixesResources.Convert_0_to_Iterator, methodStatementNode.Identifier)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\SymbolDisplayPartExtensions.vb (1)
21Return New SymbolDisplayPart(SymbolDisplayPartKind.ErrorTypeName, Nothing, String.Format("[{0}]", text))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (1)
411Throw New NotSupportedException(String.Format("Accessibility '{0}' not supported.", accessibility))
Utilities\IntrinsicOperators\PredefinedCastExpressionDocumentation.vb (1)
19Return String.Format(VBWorkspaceResources.Converts_an_expression_to_the_0_data_type, _resultingType.ToDisplayString())
Microsoft.CodeAnalysis.Workspaces (66)
CodeActions\CodeAction.cs (1)
364return solution ?? throw new InvalidOperationException(string.Format(WorkspacesResources.CodeAction_0_did_not_produce_a_changed_solution, this.Title));
CodeFixes\CodeFixContext.cs (1)
252throw new ArgumentException(string.Format(WorkspacesResources.Diagnostic_must_have_span_0, span.ToString()), nameof(diagnostics));
CodeFixes\ExportCodeFixProviderAttribute.cs (1)
55var message = string.Format(WorkspacesResources.Unexpected_value_0_in_DocumentKinds_array,
CodeRefactorings\ExportCodeRefactoringProviderAttribute.cs (1)
51var message = string.Format(WorkspacesResources.Unexpected_value_0_in_DocumentKinds_array,
Differencing\Match.cs (2)
50throw new ArgumentException(string.Format(WorkspacesResources.Node_0_must_be_contained_in_the_old_tree, knownMatch.Key), nameof(knownMatches)); 55throw new ArgumentException(string.Format(WorkspacesResources.Node_0_must_be_contained_in_the_new_tree, knownMatch.Value), nameof(knownMatches));
Editing\SymbolEditor.cs (2)
274throw new ArgumentException(string.Format(WorkspacesResources.The_symbol_0_cannot_be_located_within_the_current_solution, argSymbol.Name)); 411throw new ArgumentException(string.Format(WorkspacesResources.The_member_0_is_not_declared_within_the_declaration_of_the_symbol, member.Name));
LinkedFileDiffMerging\AbstractLinkedFileMergeConflictCommentAdditionService.cs (1)
79string.Format(WorkspacesResources.TODO_Unmerged_change_from_project_0, projectName),
Rename\ConflictEngine\ConflictResolver.cs (1)
99return new ConflictResolution(string.Format(WorkspacesResources.Symbol_0_is_not_from_source, renameLocations.Symbol.Name));
Rename\Renamer.RenameDocumentActionSet.cs (1)
82throw new ArgumentException(string.Format(WorkspacesResources.Cannot_apply_action_that_is_not_in_0, nameof(ApplicableActions)));
Rename\RenameUtilities.cs (1)
329var matchString = string.Format(@"\b{0}\b", matchText);
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
127failureReason = string.Format(CompilerExtensionsResources.Missing_prefix_colon_0, Prefix); 133failureReason = string.Format(CompilerExtensionsResources.Missing_suffix_colon_0, Suffix); 154? string.Format(CompilerExtensionsResources.Prefix_0_is_not_expected, prefix) 226reason = string.Format(resourceId, string.Join(", ", violations)); 266reason = string.Format(firstResourceId, Substring(name, wordSpan)); 282var restString = string.Format(restResourceId, string.Join(", ", violations));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.RepeatMatcher.cs (1)
23=> string.Format("({0}*)", matcher);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.SequenceMatcher.cs (1)
29=> string.Format("({0})", string.Join(",", (object[])matchers));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\FixAllHelper.cs (4)
19FixAllScope.Custom => string.Format(WorkspaceExtensionsResources.Fix_all_0, title), 22FixAllScope.Solution => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Solution, title), 23FixAllScope.ContainingMember => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_member, title), 24FixAllScope.ContainingType => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_type, title),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (6)
39return semanticModel ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 52return semanticModel ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 63return syntaxTree ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 70return syntaxTree ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 80return root ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 87return root ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (2)
44throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Project_of_ID_0_is_required_to_accomplish_the_task_but_is_not_available_from_the_solution, projectId)); 128=> new InvalidOperationException(string.Format(WorkspaceExtensionsResources.The_solution_does_not_contain_the_specified_document, debugName ?? "Unknown"));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (1)
99throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Compilation_is_required_to_accomplish_the_task_but_is_not_supported_by_project_0, project.Name));
Workspace\CommandLineProject.cs (3)
69throw new ArgumentException(string.Format(WorkspacesResources.Can_t_resolve_metadata_reference_colon_0, ((UnresolvedMetadataReference)unresolvedMetadataReferences).Reference)); 82throw new ArgumentException(string.Format(WorkspacesResources.Can_t_resolve_analyzer_reference_colon_0, ((UnresolvedAnalyzerReference)unresolvedAnalyzerReferences).Display)); 96throw new ArgumentException(string.Format(WorkspacesResources.An_error_occurred_while_reading_the_specified_configuration_file_colon_0, e.Message));
Workspace\Host\HostWorkspaceServices.cs (1)
142=> throw new NotSupportedException(string.Format(WorkspacesResources.The_language_0_is_not_supported, languageName));
Workspace\Solution\Document.cs (1)
302return semanticModel ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, this.Name));
Workspace\Solution\FileTextLoader.cs (1)
223var message = string.Format(WorkspacesResources.File_was_externally_modified_colon_0, Path);
Workspace\Solution\Project.cs (1)
820throw new ArgumentException(string.Format(WorkspacesResources._0_is_in_a_different_project, documentId));
Workspace\Solution\Solution.cs (1)
1166=> this.SolutionState.GetProjectState(projectId) ?? throw new InvalidOperationException(string.Format(WorkspacesResources._0_is_not_part_of_the_workspace, projectId));
Workspace\Workspace_Editor.cs (5)
164throw new ArgumentException(string.Format(WorkspacesResources._0_still_contains_open_documents, this.GetProjectName(projectId))); 337string.Format(WorkspacesResources._0_is_still_open, 346throw new ArgumentException(string.Format( 375throw new ArgumentException(string.Format( 663throw new ArgumentException(string.Format(
Workspace\Workspace.cs (17)
1273throw new ArgumentException(string.Format( 1568progressTracker.Report(CodeAnalysisProgress.Description(string.Format(WorkspacesResources.Applying_changes_to_0, projectChanges.NewProject.Name))); 1755throw new NotSupportedException(string.Format(WorkspacesResources.Changing_document_0_is_not_supported, document.FilePath ?? document.Name)); 2331throw new ArgumentException(string.Format( 2347throw new ArgumentException(string.Format( 2360throw new ArgumentException(string.Format( 2373throw new ArgumentException(string.Format( 2422throw new ArgumentException(string.Format(WorkspacesResources._0_is_not_present, analyzerReference)); 2433throw new ArgumentException(string.Format(WorkspacesResources._0_is_already_present, analyzerReference)); 2444throw new ArgumentException(string.Format(WorkspacesResources._0_is_not_present, analyzerReference)); 2455throw new ArgumentException(string.Format(WorkspacesResources._0_is_already_present, analyzerReference)); 2469throw new ArgumentException(string.Format( 2485throw new ArgumentException(string.Format( 2501throw new ArgumentException(string.Format( 2514throw new ArgumentException(string.Format( 2530throw new ArgumentException(string.Format( 2546throw new ArgumentException(string.Format(
Microsoft.CodeAnalysis.Workspaces.MSBuild (19)
MSBuild\BuildHostProcessManager.cs (1)
330throw new Exception(string.Format(WorkspaceMSBuildResources.The_build_host_could_not_be_found_at_0, buildHostPath));
MSBuild\DiagnosticReporter.cs (1)
67? string.Format(WorkspaceMSBuildResources.Msbuild_failed_when_processing_the_file_0, projectFilePath)
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (2)
260string.Format(WorkspaceMSBuildResources.Unresolved_metadata_reference_removed_from_project_0, filePath), 302string.Format(WorkspaceMSBuildResources.Found_project_reference_without_a_matching_metadata_reference_0, projectReferencePath),
MSBuild\MSBuildProjectLoader.Worker.cs (3)
110string.Format(WorkspaceMSBuildResources.Duplicate_project_discovered_and_skipped_0, projectPath))); 160string.Format(WorkspaceMSBuildResources.Found_project_with_the_same_file_path_and_output_path_as_another_project_0, projectFileInfo.FilePath)); 322var message = string.Format(WorkspaceMSBuildResources.Unable_to_find_0, nameof(IAnalyzerService));
MSBuild\MSBuildWorkspace.cs (6)
353string.Format(WorkspaceMSBuildResources.Project_path_for_0_was_null, project.Name), 363string.Format(WorkspaceMSBuildResources.Applying_updates_to_file_based_apps_is_not_supported_0, projectPath), 420var message = string.Format(WorkspaceMSBuildResources.Path_for_document_0_was_null, document.Name); 438var message = string.Format(WorkspaceMSBuildResources.Path_for_additional_document_0_was_null, document.Name); 603var message = string.Format(WorkspaceMSBuildResources.Unable_to_add_metadata_reference_0, metadataReference.Display); 639var message = string.Format(WorkspaceMSBuildResources.Unable_to_remove_metadata_reference_0, metadataReference.Display);
MSBuild\PathResolver.cs (4)
29_diagnosticReporter?.Report(reportingMode, string.Format(WorkspacesResources.Invalid_solution_file_path_colon_0, path)); 38string.Format(WorkspacesResources.Solution_file_not_found_colon_0, absolutePath), 54_diagnosticReporter?.Report(reportingMode, string.Format(WorkspacesResources.Invalid_project_file_path_colon_0, path)); 63string.Format(WorkspacesResources.Project_file_not_found_colon_0, absolutePath),
MSBuild\SolutionFileReader.cs (2)
31throw new Exception(string.Format(WorkspaceMSBuildResources.Failed_to_load_solution_filter_0, solutionFilePath)); 37throw new Exception(string.Format(WorkspaceMSBuildResources.Failed_to_load_solution_0, absoluteSolutionPath));
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Build\ProjectBuildManager.cs (1)
330log.Add(string.Format(WorkspaceMSBuildBuildHostResources.Project_does_not_contain_0_target, target), projectInstance.FullPath);
Microsoft.CSharp (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Data.Analysis (37)
DataFrame.cs (10)
339throw new ArgumentException(string.Format(Strings.ExceedsNumberOfRows, Rows.Count), nameof(numberOfRows)); 371throw new ArgumentException(String.Format(Strings.InvalidColumnName, columnName), nameof(columnName)); 566throw new ArgumentException(string.Format(Strings.MismatchedValueType, column.DataType), column.Name); 575throw new ArgumentException(string.Format(Strings.ExceedsNumberOfColumns, Columns.Count), nameof(row)); 631throw new ArgumentException(String.Format(Strings.InvalidColumnName, columnName), nameof(columnName)); 641throw new ArgumentException(string.Format(Strings.MismatchedValueType, column.DataType), column.Name); 793throw new ArgumentException(string.Format(Strings.VariableNameAlreadyExists, variableName), nameof(variableName)); 798throw new ArgumentException(string.Format(Strings.ValueNameAlreadyExists, valueName), nameof(valueName)); 810throw new ArgumentException(string.Format(Strings.InvalidColumnName, columnName), nameof(idColumns)); 818throw new ArgumentException(string.Format(Strings.InvalidColumnName, columnName), nameof(valueColumns));
DataFrame.IO.cs (1)
63IEnumerable<string> lines = read.Select(line => col < line.Line.Length ? line.Line[col] : throw new FormatException(string.Format(Strings.LessColumnsThatExpected, line.LineNumber + 1)));
DataFrameColumn.cs (1)
275throw new ArgumentException(String.Format(Strings.MismatchedColumnValueType, this.DataType), nameof(other));
DataFrameColumnCollection.cs (3)
87throw new ArgumentException(string.Format(Strings.DuplicateColumnName, column.Name), nameof(column)); 113throw new ArgumentException(string.Format(Strings.DuplicateColumnName, column.Name), nameof(column)); 188throw new ArgumentException(String.Format(Strings.InvalidColumnName, columnName), nameof(columnName));
DataFrameColumns\ArrowStringDataFrameColumn.cs (1)
554throw new ArgumentException(String.Format(Strings.MismatchedValueType, typeof(string)), nameof(value));
DataFrameColumns\StringDataFrameColumn.cs (2)
153throw new ArgumentException(string.Format(Strings.MismatchedValueType, typeof(string)), nameof(value)); 467throw new ArgumentException(String.Format(Strings.MismatchedValueType, typeof(string)), nameof(value));
DataFrameColumns\VBufferDataFrameColumn.cs (1)
132throw new ArgumentException(string.Format(Strings.MismatchedValueType, typeof(VBuffer<T>)), nameof(value));
IDataView.Extension.cs (2)
125throw new NotSupportedException(String.Format(Microsoft.Data.Strings.NotSupportedColumnType, type.RawType.Name)); 212throw new NotSupportedException(String.Format(Microsoft.Data.Strings.VectorSubTypeNotSupported, itemType.ToString()));
PrimitiveDataFrameColumn.cs (10)
245throw new ArgumentException(string.Format(Strings.MismatchedValueType, DataType), nameof(value)); 479throw new ArgumentException(String.Format(Strings.MismatchedValueType, Strings.NumericColumnType), nameof(mapIndices)); 720throw new ArgumentException(string.Format(Strings.MismatchedValueType, typeof(T)), nameof(U)); 750throw new ArgumentException(string.Format(Strings.MismatchedValueType, typeof(T)), nameof(U)); 987throw new ArgumentException(string.Format(Strings.MismatchedColumnValueType, typeof(T)), nameof(column)); 1022throw new ArgumentException(string.Format(Strings.MismatchedColumnValueType, typeof(T)), nameof(column)); 1065throw new ArgumentException(string.Format(Strings.MismatchedValueType, typeof(T)), nameof(value)); 1100throw new ArgumentException(string.Format(Strings.MismatchedValueType, typeof(T)), nameof(value)); 1142throw new ArgumentException(string.Format(Strings.MismatchedValueType, typeof(T)), nameof(value)); 1176throw new ArgumentException(string.Format(Strings.MismatchedValueType, typeof(T)), nameof(value));
TextFieldParser.cs (6)
453throw new ArgumentException(string.Format(Strings.PositiveNumberOfCharacters, nameof(numberOfChars))); 804throw new Exception(string.Format(Strings.CannotParseWithDelimiters, currentLineNumber)); 822throw new Exception(string.Format(Strings.CannotParseWithDelimiters, currentLineNumber)); 828throw new Exception(string.Format(Strings.LineExceedsMaxLineSize, currentLineNumber)); 837throw new Exception(string.Format(Strings.CannotParseWithDelimiters, currentLineNumber)); 939throw new Exception(string.Format(Strings.CannotParseWithFieldWidths, lineNumber));
Microsoft.Data.Analysis.Tests (6)
src\Microsoft.Data.Analysis\TextFieldParser.cs (6)
453throw new ArgumentException(string.Format(Strings.PositiveNumberOfCharacters, nameof(numberOfChars))); 804throw new Exception(string.Format(Strings.CannotParseWithDelimiters, currentLineNumber)); 822throw new Exception(string.Format(Strings.CannotParseWithDelimiters, currentLineNumber)); 828throw new Exception(string.Format(Strings.LineExceedsMaxLineSize, currentLineNumber)); 837throw new Exception(string.Format(Strings.CannotParseWithDelimiters, currentLineNumber)); 939throw new Exception(string.Format(Strings.CannotParseWithFieldWidths, lineNumber));
Microsoft.Deployment.DotNet.Releases (6)
ReleaseVersion.cs (4)
761throw new FormatException(string.Format(ReleasesResources.InvalidVersion, versionCore)); 819throw new FormatException(string.Format(ReleasesResources.InvalidNumericIdentifier, input)); 861throw new FormatException(string.Format(ReleasesResources.InvalidPrerelease, prerelease)); 887throw new FormatException(string.Format(ReleasesResources.InvalidBuildMetadata, buildMetadata));
Utils.cs (2)
100throw new FileNotFoundException(string.Format(ReleasesResources.FileNotFound, fileName)); 139throw new FileNotFoundException(string.Format(ReleasesResources.FileNotFound, path));
Microsoft.Diagnostics.DataContractReader (1)
_generated\13\ContractDescriptorContext.g.cs (1)
97throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.Diagnostics.NETCore.Client (13)
DiagnosticsIpc\IpcTcpSocketEndPoint.cs (3)
76throw new ArgumentException(string.Format("Unsupported Uri schema, \"{0}\"", uri.Scheme)); 116throw new ArgumentException(string.Format("Could not parse {0} into host, port", endPoint)); 151throw new ArgumentException(string.Format("Could not resolve {0} into an IP address", host));
DiagnosticsIpc\IpcTransport.cs (6)
260RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? string.Format(_procRootPathFormat, pid) : null; 314address = string.Format(_defaultAddressFormatWindows, pid); 318string dsrouterAddress = Directory.GetFiles(searchDirectory, string.Format(_dsrouterAddressFormatWindows, pid)).FirstOrDefault(); 380lines = File.ReadAllLines(string.Format(_procStatusPathFormat, hostPid)); 442environData = File.ReadAllBytes(string.Format(_procEnvironPathFormat, hostPid)); 565string dsrouterAddress = string.Format(_dsrouterAddressFormatWindows, pid);
DiagnosticsServerRouter\DiagnosticsServerRouterFactory.cs (4)
22: base(string.Format("No new runtime endpoints connected, waited {0} ms", TimeoutMs)) 29: base(string.Format("No new back end streams available, waited {0} ms", TimeoutMs)) 336_tcpServerAddress = _tcpServerAddress.Replace(":0", string.Format(":{0}", ipEP.Port)); 428_tcpClientAddress = IpcTcpSocketEndPoint.NormalizeTcpIpEndPoint(string.IsNullOrEmpty(tcpClient) ? "127.0.0.1:" + string.Format("{0}", 56000 + (Process.GetCurrentProcess().Id % 1000)) : tcpClient);
Microsoft.DotNet.ApiCompat.Task (1)
src\sdk\src\Compatibility\ApiCompat\Microsoft.DotNet.ApiCompat.Shared\SuppressionFileHelper.cs (1)
45string.Format(CommonResources.WroteSuppressions, suppressionOutputFile));
Microsoft.DotNet.ApiCompatibility (5)
Mapping\ElementMapper.cs (1)
40throw new ArgumentOutOfRangeException(nameof(rightSetSize), string.Format(Resources.ShouldBeGreaterThanZero, nameof(rightSetSize)));
Rules\CannotAddOrRemoveVirtualKeyword.cs (2)
42string.Format(Resources.CannotAddSealedToInterfaceMember, right), 84string.Format(Resources.CannotAddVirtualToMember, right),
Runner\ApiCompatRunner.cs (2)
30string.Format(Resources.ApiCompatRunnerExecutingWorkItems, 134string.Format(Resources.AssemblyLoadError,
Microsoft.DotNet.ApiSymbolExtensions (10)
AssemblySymbolLoader.cs (10)
155_log.LogMessage(MessageImportance.Low, string.Format(Resources.LoadingAssemblies, string.Join(", ", paths))); 235_log.LogMessage(MessageImportance.Low, string.Format(Resources.LoadingAssembly, path)); 247_log.LogMessage(MessageImportance.Low, string.Format(Resources.LoadingAssemblyFromStream, name)); 256string rootAssemblyDisplayString = string.Format(Resources.RootAssemblyDisplayString, name); 307throw new FileNotFoundException(string.Format(Resources.ShouldProvideValidAssemblyName, directory), nameof(searchPaths)); 334_log.LogWarning(AssemblyNotFoundErrorCode, string.Format(Resources.MatchingAssemblyNotFound, assemblyInfo)); 374throw new FileNotFoundException(string.Format(Resources.ProvidedPathToLoadBinariesFromNotFound, path)); 388string rootAssemblyDisplayString = string.Format(Resources.RootAssemblyDisplayString, path); 404throw new ArgumentException(string.Format(Resources.ProvidedStreamDoesNotHaveMetadata, assemblyName)); 414_log.LogMessage(MessageImportance.Low, string.Format(Resources.AssemblyLoaded, assemblyName));
Microsoft.DotNet.Build.Tasks.Workloads (5)
EmbeddedTemplates.cs (2)
37throw new KeyNotFoundException(string.Format(Strings.TemplateNotFound, filename)); 56throw new IOException(string.Format(Strings.TemplateResourceNotFound, resourceName));
Swix\ComponentSwixProject.cs (1)
26throw new ArgumentException(string.Format(Strings.ComponentMustHaveAtLeastOneDependency, component.Name));
WorkloadPackageBase.cs (2)
267Log?.LogMessage(MessageImportance.Low, string.Format(Strings.WorkloadPackageDeleteExclusion, file)); 314throw new FormatException(string.Format(Strings.CannotExtractSdkVersionFromPackageId, packageId));
Microsoft.DotNet.Cli.Definitions (10)
_generated\3\GlobalJsonSerializerContext.g.cs (1)
85throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Commands\New\CommandDefinitionExtensions.cs (2)
83commandResult.AddError(string.Format(CommandDefinitionStrings.Commands_Validator_WrongTokens, string.Join(",", wrongTokens))); 110commandResult.AddError(string.Format(CommandDefinitionStrings.Commands_Validator_WrongTokens, string.Join(",", wrongTokens)));
Commands\Pack\PackCommandDefinition.cs (1)
87r.AddError(string.Format(CommandDefinitionStrings.InvalidVersion, value));
Commands\Test\TestCommandDefinition.cs (1)
64?? throw new InvalidOperationException(string.Format(CommandDefinitionStrings.CmdUnsupportedTestRunnerDescription, globalJsonRunnerName));
Commands\Test\TestCommandDefinition.MicrosoftTestingPlatform.cs (1)
280commandResult.AddError(string.Format(
Commands\Tool\ToolLocationOptions.cs (1)
50string.Format(
Commands\Workload\WorkloadSearchVersionsCommandDefinition.cs (1)
60result.AddError(string.Format(CommandDefinitionStrings.UnrecognizedCommandOrArgument, string.Join(' ', versionArguments)));
Common\CommonArguments.cs (1)
56throw new GracefulException(string.Format(CommandDefinitionStrings.InvalidVersion, versionString));
Common\CommonOptions.cs (1)
338argumentResult.AddError(string.Format(
Microsoft.DotNet.Cli.Telemetry (1)
_generated\21\TelemetryJsonContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.DotNet.Cli.Utils (7)
Command.cs (2)
55Reporter.Verbose.WriteLine(string.Format( 231throw new InvalidOperationException(string.Format(
CommandUnknownException.cs (2)
13InstructionMessage = string.Format( 21InstructionMessage = string.Format(
DebugHelper.cs (1)
29Console.WriteLine(string.Format(LocalizableStrings.ProcessId, processId));
Extensions\LockFileFormatExtensions.cs (1)
21string.Format(LocalizableStrings.FileNotFound, path),
PathUtility.cs (1)
359notExisting.Select(p => string.Format(pathDoesNotExistLocalizedFormatString, p))));
Microsoft.DotNet.CodeAnalysis (3)
Analyzers\AppContextDefaultsAnalyzer.cs (1)
40return string.Format("{0} {1}", diagnosticMessage, string.Format(HowToDisableWarning, diagnosticId));
Analyzers\PinvokeAnalyzer.cs (2)
117altMsg = String.Format(NotSupportedOnWin7, AllowedPinvokes[methodName] + "!" + methodName); 126altMsg = String.Format(AltMsgString, AllowedPinvokes[methodName] + "!" + methodName);
Microsoft.DotNet.Configurer (1)
CliFolderPathCalculator.cs (1)
51string.Format(
Microsoft.DotNet.GenFacades (1)
SourceGenerator.cs (1)
101sb.AppendLine(string.Format("extern alias {0};", alias));
Microsoft.DotNet.HotReload.WebAssembly.Browser (1)
_generated\9\WebAssemblyHotReloadJsonSerializerContext.g.cs (1)
92throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.DotNet.PackageValidation (7)
Package.cs (1)
132throw new FileNotFoundException(string.Format(Resources.NonExistentPackagePath, packagePath));
Validators\BaselinePackageValidator.cs (4)
50string.Format(Resources.MissingTargetFramework, 74string.Format(Resources.MissingTargetFramework, 125string.Format(Resources.BaselineTargetFrameworksIgnored, 139string.Format(Resources.BaselineTargetFrameworkIgnoredButPresentInCurrentPackage,
Validators\CompatibleTFMValidator.cs (2)
46string.Format(Resources.NoCompatibleCompileTimeAsset, 56string.Format(Resources.NoCompatibleRuntimeAsset,
Microsoft.DotNet.ProjectTools (22)
_generated\5\LaunchProfileJsonSerializerContext.g.cs (1)
84throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
LaunchSettings\LaunchSettings.cs (3)
111return LaunchProfileParseResult.Failure(string.Format(Resources.DuplicateCaseInsensitiveLaunchProfileNames, 117return LaunchProfileParseResult.Failure(string.Format(Resources.LaunchProfileDoesNotExist, profileName)); 160return LaunchProfileParseResult.Failure(string.Format(Resources.LaunchProfileHandlerCannotBeLocated, commandName));
src\sdk\src\Cli\Microsoft.DotNet.FileBasedPrograms\FileLevelDirectiveHelpers.cs (13)
323context.ReportError(string.Format(FileBasedProgramsResources.UnrecognizedDirective, context.DirectiveKind)); 336context.ReportError(string.Format(FileBasedProgramsResources.MissingDirectiveName, directiveKind)); 431context.ReportError(string.Format(FileBasedProgramsResources.PropertyDirectiveInvalidName, ex.Message)); 510context.ReportError(string.Format(FileBasedProgramsResources.MissingDirectiveName, context.DirectiveKind)); 570ReportError(string.Format(FileBasedProgramsResources.InvalidProjectDirective, error)); 575ReportError(string.Format(FileBasedProgramsResources.InvalidProjectDirective, string.Format(FileBasedProgramsResources.CouldNotFindProjectOrDirectory, resolvedProjectPath))); 622context.ReportError(string.Format(FileBasedProgramsResources.MissingDirectiveName, context.DirectiveKind)); 671string.Format(FileBasedProgramsResources.InvalidRefDirective, 672string.Format(FileBasedProgramsResources.CouldNotFindRefFile, resolvedFilePath))); 732context.ReportError(string.Format(FileBasedProgramsResources.MissingDirectiveName, directiveKind)); 846ReportError(string.Format(FileBasedProgramsResources.InvalidIncludeExcludeMappingEntry, pair)); 911string.Format(FileBasedProgramsResources.DuplicateDirective, typeAndName));
src\sdk\src\Cli\Microsoft.DotNet.FileBasedPrograms\ProjectLocator.cs (3)
33error = string.Format(FileBasedProgramsResources.CouldNotFindProjectOrDirectory, projectDirectory); 40error = string.Format(FileBasedProgramsResources.CouldNotFindAnyProjectInDirectory, projectDirectory); 46error = string.Format(FileBasedProgramsResources.MoreThanOneProjectInDirectory, projectDirectory);
src\sdk\src\Cli\Microsoft.DotNet.FileBasedPrograms\VirtualProjectBuilder.cs (2)
425reportError(EntryPointSourceFile.Text, EntryPointSourceFile.Path, default, string.Format(FileBasedProgramsResources.IncludedFileNotFound, filePath)); 583string.Format(FileBasedProgramsResources.ExperimentalFeatureDisabled, flagName));
Microsoft.DotNet.TemplateLocator (7)
_generated\11\InstallStateJsonSerializerContext.g.cs (1)
85throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\3\WorkloadSetJsonSerializerContext.g.cs (1)
85throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (3)
187throw new FileNotFoundException(string.Format(Strings.WorkloadVersionNotFound, _workloadSetVersionFromConstructor)); 278throw new InvalidOperationException(string.Format(Strings.WorkloadSetHasMissingManifests, _workloadSet.Version)); 334throw new InvalidOperationException(string.Format(Strings.WorkloadSetHasMissingManifests, _workloadSet.Version));
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadResolver.cs (2)
749throw new Exception(string.Format(Strings.ManifestDoesNotExist, manifestId)); 760throw new Exception(string.Format(Strings.ManifestDoesNotExist, manifestId));
Microsoft.Extensions.AI (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\OtelContext.g.cs (1)
85throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.Extensions.AI.Abstractions (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.g.cs (1)
86throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContextNoIndentation.g.cs (1)
86throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.Extensions.AI.Abstractions.Tests (4)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Context.g.cs (1)
85throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.g.cs (1)
82throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestJsonSerializerContext.g.cs (1)
84throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.g.cs (1)
82throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.Extensions.AI.Evaluation.Quality (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\SerializerContext.g.cs (1)
85throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.Extensions.AI.Evaluation.Reporting (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.g.cs (1)
95throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.g.cs (1)
95throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.Extensions.AI.OpenAI (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\OpenAIJsonContext.g.cs (1)
84throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.Extensions.AI.Stabilization.Tests (1)
Generated\361d1da7f942c932\AIContentSerializationRegressionContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.Extensions.AI.Tests (4)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\CustomAIContentJsonContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.g.cs (1)
82throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext2.g.cs (1)
85throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestJsonSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.Extensions.Caching.Memory (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Configuration (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Configuration.Abstractions (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Configuration.Binder (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Configuration.Binder.SourceGeneration (4)
ConfigurationBindingGenerator.Parser.cs (2)
697initExceptionMessage = string.Format(Emitter.ExceptionMessages.MultipleParameterizedConstructors, typeSymbol.GetFullName()); 709initExceptionMessage = string.Format(Emitter.ExceptionMessages.MissingPublicInstanceConstructor, typeSymbol.GetFullName());
Emitter\CoreBindingHelpers.cs (1)
1535_writer.WriteLine(@$"throw new NotSupportedException($""{string.Format(ExceptionMessages.TypeNotDetectedAsInput, "{type}")}"");");
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Configuration.CommandLine (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Configuration.FileExtensions (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Configuration.Ini (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Configuration.Json (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Configuration.UserSecrets (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Configuration.Xml (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.DependencyInjection (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.DependencyInjection.Abstractions (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.DependencyModel (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Diagnostics (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.FileProviders.Abstractions (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.FileProviders.Physical (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.FileSystemGlobbing (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Hosting (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Hosting.Abstractions (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Http (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Logging (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Logging.Abstractions (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Logging.Configuration (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Logging.Console (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Logging.Generators (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Options (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Options.SourceGeneration (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Extensions.Primitives (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Gen.BuildMetadata (1)
DiagDescriptorsBase.cs (1)
35helpLinkUri: string.Format(DiagnosticIds.UrlFormat, id));
Microsoft.Gen.ContextualOptions (1)
DiagDescriptorsBase.cs (1)
35helpLinkUri: string.Format(DiagnosticIds.UrlFormat, id));
Microsoft.Gen.Logging (1)
DiagDescriptorsBase.cs (1)
35helpLinkUri: string.Format(DiagnosticIds.UrlFormat, id));
Microsoft.Gen.MetadataExtractor (1)
DiagDescriptorsBase.cs (1)
35helpLinkUri: string.Format(DiagnosticIds.UrlFormat, id));
Microsoft.Gen.Metrics (1)
DiagDescriptorsBase.cs (1)
35helpLinkUri: string.Format(DiagnosticIds.UrlFormat, id));
Microsoft.Gen.MetricsReports (1)
DiagDescriptorsBase.cs (1)
35helpLinkUri: string.Format(DiagnosticIds.UrlFormat, id));
Microsoft.Interop.ComInterfaceGenerator (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Interop.JavaScript.JSImportGenerator (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Interop.LibraryImportGenerator (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Interop.SourceGeneration (3)
Marshalling\CharMarshallingGeneratorResolver.cs (1)
42NotSupportedDetails = string.Format(SR.MarshallingStringOrCharAsUndefinedNotSupported, _stringMarshallingAttribute)
Marshalling\NoMarshallingInfoErrorResolver.cs (1)
43{ SpecialTypeInfo.String, string.Format(SR.MarshallingStringOrCharAsUndefinedNotSupported, stringMarshallingAttribute) },
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Maui.Controls (5)
BindablePropertyConverter.cs (2)
41 string msg = string.Format("Can't resolve {0}", parts[0]); 68 string msg = string.Format("Can't resolve {0}", parts[0]);
BindingBase.cs (1)
151 value = string.Format(format, arg0);
FlyoutPage\FlyoutPage.cs (2)
287 throw new InvalidOperationException(string.Format("Can't change IsPresented when setting {0}", fp.FlyoutLayoutBehavior)); 293 throw new InvalidOperationException(string.Format("Can't change IsPresented when setting {0}", fp.FlyoutLayoutBehavior));
Microsoft.Maui.Controls.Xaml (1)
XamlLoader.cs (1)
52 throw new XamlParseException(string.Format("No embeddedresource found for {0}", callingType), new XmlLineInfo());
Microsoft.ML.AutoML (1)
ColumnInference\ColumnTypeInference.cs (1)
376return (hasHeader && !string.IsNullOrWhiteSpace(header)) ? header : string.Format("col{0}", column.ColumnId);
Microsoft.ML.Core (5)
CommandLine\CmdParser.cs (1)
2040tag = string.Format("[{0}]", tag);
Utilities\Contracts.cs (4)
340=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or empty", paramName))); 342=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or empty", paramName)), ctx); 356=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or white space", paramName))); 358=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or white space", paramName)), ctx);
Microsoft.ML.Core.Tests (4)
UnitTests\TestEntryPoints.cs (3)
2562loader = string.IsNullOrWhiteSpace(loader) ? "" : string.Format(",'CustomSchema': '{0}'", loader); 2564confusionMatrixPath = confusionMatrixPath != null ? string.Format(", 'ConfusionMatrix' : '{0}'", EscapePath(confusionMatrixPath)) : ""; 3317string.IsNullOrWhiteSpace(loader) ? "" : string.Format(",'CustomSchema': 'sparse+ {0}'", loader),
UnitTests\TestResourceDownload.cs (1)
121Fail(String.Format("Expected zero length error string. Received error: {0}", results.ErrorMessage));
Microsoft.ML.CpuMath (4)
src\Microsoft.ML.Core\Utilities\Contracts.cs (4)
340=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or empty", paramName))); 342=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or empty", paramName)), ctx); 356=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or white space", paramName))); 358=> Process(new ArgumentOutOfRangeException(paramName, string.Format("{0} cannot be null or white space", paramName)), ctx);
Microsoft.ML.Data (58)
Commands\EvaluateCommand.cs (1)
84return string.Format(_nameFormat, s);
Data\Conversion.cs (3)
952public void Convert(in TS src, ref TX dst) => dst = string.Format("{0:c}", src).AsMemory(); 953public void Convert(in DT src, ref TX dst) => dst = string.Format("{0:o}", src).AsMemory(); 954public void Convert(in DZ src, ref TX dst) => dst = string.Format("{0:o}", src).AsMemory();
Data\DataViewUtils.cs (3)
38string.Format("temp_{0:000}", i) : 63string.Format("temp_{0:000}", j) : 1400var suffix = isLong ? string.Format(",...(+{0})", vbuf.Length - previewValues) : "";
DataLoadSave\Binary\BinaryLoader.cs (1)
2211string deadDisc = deadMtoc.Length > 0 ? string.Format(" ({0} dead)", deadMtoc.Length) : "";
DataLoadSave\LegacyCompositeDataLoader.cs (4)
396string.Format(TransformDirTemplate, i), curView); 498string.Format(TransformDirTemplate, acceptedIds[index]), data); 562var dirName = string.Format(TransformDirTemplate, i); 573return string.Format("xf{0:00}", index);
DataLoadSave\TransformerChain.cs (2)
197var dirName = string.Format(TransformDirTemplate, i); 213var dirName = string.Format(TransformDirTemplate, i);
Deprecated\Instances\HeaderSchema.cs (1)
249return string.Format(DefaultFmt, index);
Evaluators\AnomalyDetectionEvaluator.cs (3)
751var kFormatName = string.Format(FoldDrAtKFormat, _k); 752var pFormatName = string.Format(FoldDrAtPFormat, _p); 753var numAnomName = string.Format(FoldDrAtNumAnomaliesFormat, numAnomalies);
Evaluators\EvaluatorBase.cs (3)
320warnings.Add(string.Format("Encountered {0} unlabeled instances during testing.", NumUnlabeledInstances)); 323warnings.Add(string.Format("Encountered {0} non-finite weights during testing. These weights have been replaced with 1.", NumBadWeights)); 327warnings.Add(string.Format("The predictor produced non-finite prediction values on {0} instances during testing. " +
Evaluators\EvaluatorUtils.cs (6)
360namesArray[j] = string.Format("({0})", j).AsMemory(); 1034editor.Values[j] = string.Format("Label_{0}", j).AsMemory(); 1039var tryNaming = string.Format(metricName, name.Value); 1552sb.AppendLine(string.Format(" ({0:N4})", numFolds == 1 ? 0 : 1627rowLabelFormat = string.Format("{{1,{0}}} ||", paddingLen); 1681format = string.Format("{{0,{0}:N4}} |", colWidth + 1);
Evaluators\MulticlassClassificationEvaluator.cs (8)
134isVector: true, namePattern: new Regex(string.Format(@"^{0}(?<class>.+)", LogLoss), RegexOptions.IgnoreCase), 135groupName: "class", nameFormat: string.Format("{0} (class {{0}})", PerClassLogLoss)); 520warnings.Add(string.Format( 526warnings.Add(string.Format( 537editor.Values[i] = string.Format("(class {0})", ClassNames[i]).AsMemory(); 1001input = new ColumnCopyingTransformer(Host, (string.Format(TopKAccuracyFormat, _outputTopKAcc), MulticlassClassificationEvaluator.TopKAccuracy)).Transform(input); 1024yield return new MetricColumn("TopKAccuracy", string.Format(TopKAccuracyFormat, _outputTopKAcc)); 1029namePattern: new Regex(string.Format(@"^{0}(?<class>.+)", MulticlassClassificationEvaluator.LogLoss), RegexOptions.IgnoreCase));
Evaluators\MultiOutputRegressionEvaluator.cs (10)
82isVector: true, namePattern: new Regex(string.Format(@"{0}_(?<label>\d+)\)", L1), RegexOptions.IgnoreCase), 83groupName: "label", nameFormat: string.Format("{0} (Label_{{0}}", PerLabelL1)); 85isVector: true, namePattern: new Regex(string.Format(@"{0}_(?<label>\d+)\)", L2), RegexOptions.IgnoreCase), 86groupName: "label", nameFormat: string.Format("{0} (Label_{{0}}", PerLabelL2)); 88isVector: true, namePattern: new Regex(string.Format(@"{0}_(?<label>\d+)\)", Rms), RegexOptions.IgnoreCase), 89groupName: "label", nameFormat: string.Format("{0} (Label_{{0}}", PerLabelRms)); 91isVector: true, namePattern: new Regex(string.Format(@"{0}_(?<label>\d+)\)", Loss), RegexOptions.IgnoreCase), 92groupName: "label", nameFormat: string.Format("{0} (Label_{{0}}", PerLabelLoss)); 367editor.Values[i] = string.Format("(Label_{0})", i).AsMemory(); 719labelNames[j] = string.Format("Label_{0}", j).AsMemory();
Evaluators\RankingEvaluator.cs (7)
148namePattern: new Regex(string.Format(@"^{0}@(?<at>\d+)", Ndcg), RegexOptions.IgnoreCase), 149groupName: "at", nameFormat: string.Format("{0} @{{0}}", Ndcg)); 151namePattern: new Regex(string.Format(@"^{0}@(?<at>\d+)", Dcg), RegexOptions.IgnoreCase), 152groupName: "at", nameFormat: string.Format("{0} @{{0}}", Dcg)); 154namePattern: new Regex(string.Format(@"^{0}@(?<at>\d+)", MaxDcg), RegexOptions.IgnoreCase), 155groupName: "at", nameFormat: string.Format("{0} @{{0}}", MaxDcg)); 546editor.Values[i] = string.Format("@{0}", i + 1).AsMemory();
Scorers\ScoreSchemaFactory.cs (1)
95bufferEditor.Values[i] = string.Format("Quantile-{0}", quantiles[i]).AsMemory();
Transforms\InvertHashUtils.cs (2)
458ctx.TryProcessSubModel(string.Format(dirFormat, iinfo), 497ctx.SaveSubModel(string.Format(dirFormat, iinfo),
Transforms\Normalizer.cs (3)
625var dir = string.Format("Normalizer_{0:000}", iinfo); 646var dir = string.Format("Normalizer_{0:000}", iinfo); 696var dir = string.Format("Normalizer_{0:000}", iinfo);
Microsoft.ML.Ensemble (6)
PipelineEnsemble.cs (2)
317var error = string.Format("Expected label to have exactly 2 classes, instead has {0}", classCount); 710var key = string.Format("Partition model {0} summary:", i);
Trainer\EnsembleModelParametersBase.cs (2)
68ctx.LoadModel<IPredictor, SignatureLoadModel>(Host, out IPredictor p, string.Format(SubPredictorFmt, i)); 111ctx.SaveModel(model.Predictor, string.Format(SubPredictorFmt, i));
Trainer\EnsembleTrainerBase.cs (2)
215ch.Info("{0}| Name of Model |", string.Join("", models[0].Metrics.Select(m => string.Format("| {0} |", m.Key)))); 218ch.Info("{0}{1}", string.Join("", model.Metrics.Select(m => string.Format("| {0} |", m.Value))), model.Predictor.GetType().Name);
Microsoft.ML.EntryPoints (1)
ImportTextData.cs (1)
42var loader = host.CreateLoader(string.Format("Text{{{0}}}", input.CustomSchema), new FileHandleSource(input.InputFile));
Microsoft.ML.FastTree (5)
Dataset\DatasetUtils.cs (1)
19return string.Format(DefaultTransformFormat, featureName);
FastTree.cs (2)
838st = OptimizationAlgorithm.GetScoreTracker(string.Format("test[{0}]", t), TestSets[t], initTestScores); 3323keyValues.Add(NodeKeys.Threshold, string.Format("<= {0}", _regTree.RawThreshold(nodeId)));
TreeEnsemble\InternalTreeEnsemble.cs (1)
458return !name.IsEmpty ? name.ToString() : string.Format("f{0}", ifeat);
TreeEnsembleFeaturizer.cs (1)
480editor.Values[t] = string.Format("Tree{0:000}", t).AsMemory();
Microsoft.ML.ImageAnalytics (1)
ImageLoader.cs (1)
114throw new ArgumentException(String.Format("Directory \"{0}\" does not exist.", imageFolder));
Microsoft.ML.PerformanceTests (9)
ImageClassificationBench.cs (1)
235throw new InvalidOperationException(string.Format("File {0} already exists.", pathname));
Numeric\Ranking.cs (5)
29throw new FileNotFoundException(string.Format(Errors.DatasetNotFound, _mslrWeb10kValidate)); 32throw new FileNotFoundException(string.Format(Errors.DatasetNotFound, _mslrWeb10kTrain)); 80throw new FileNotFoundException(string.Format(Errors.DatasetNotFound, _mslrWeb10kTest)); 83throw new FileNotFoundException(string.Format(Errors.DatasetNotFound, _mslrWeb10kValidate)); 86throw new FileNotFoundException(string.Format(Errors.DatasetNotFound, _mslrWeb10kTrain));
RffTransform.cs (1)
25throw new FileNotFoundException(string.Format(Errors.DatasetNotFound, _dataPathDigits));
Text\MultiClassClassification.cs (2)
26throw new FileNotFoundException(string.Format(Errors.DatasetNotFound, _dataPathWiki)); 103throw new FileNotFoundException(string.Format(Errors.DatasetNotFound, _dataPathWiki));
Microsoft.ML.Predictor.Tests (3)
CmdLine\CmdIndenterTest.cs (1)
33return string.Format("<couldn't read {0}>", resName);
CmdLine\CmdLine.cs (1)
330return string.Format("<couldn't read {0}>", resName);
TestPredictors.cs (1)
1676string eval = string.Format("eval=Binary{{pr={{{0}}}}}", prPath);
Microsoft.ML.StandardTrainers (17)
Optimizer\OptimizationMonitor.cs (6)
78message += string.Format(" GradCheck: {0,0:0.0000e0}", Check(state)); 173message = string.Format("{0:0.000e0}", crit); 253message = string.Format("{0,0:0.0000e0}", val); 328message = string.Format("{0,0:0.0000e0}", val); 382message = string.Format("{0,0:0.0000e0}", val); 392return string.Format("Norm of grad / value < {0,0:0.00e0}", _tol);
Standard\LogisticRegression\MulticlassLogisticRegression.cs (3)
843string.Format("{0}+(Bias)", GetLabelName(classNumber)), 909writer.WriteLine(string.Format("var scores = new float[{0}];", NumberOfClasses)); 1062return _labelNames == null ? string.Format(classNumberFormat, classNumber) : _labelNames[classNumber];
Standard\ModelStatistics.cs (4)
495return string.Format("{0} ***", probZ); 497return string.Format("{0} **", probZ); 499return string.Format("{0} *", probZ); 501return string.Format("{0} .", probZ);
Standard\MulticlassClassification\OneVersusAllTrainer.cs (2)
410ctx.LoadModel<TPredictor, SignatureLoadModel>(env, out predictors[i], string.Format(SubPredictorFmt, i)); 429ctx.SaveModel(preds[i], string.Format(SubPredictorFmt, i));
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (2)
308ctx.LoadModel<TDistPredictor, SignatureLoadModel>(Host, out _predictors[index++], string.Format(SubPredictorFmt, i)); 366ctx.SaveModel(_predictors[index + i], string.Format(SubPredictorFmt, i));
Microsoft.ML.Sweeper (2)
ConfigRunner.cs (2)
121return string.Format("calledFromUnitTestSuite{0}", _calledFromUnitTestSuite ? "+" : "-"); 122return string.Format("{{{0}}}", GetFilePath(runs[i], "out"));
Microsoft.ML.TestFramework (49)
BaseTestPredictorsMaml.cs (6)
174string str = string.Format("SavePredictorAs in={{{0}}}", modelPath.Path); 181str += string.Format(" sum={{{0}}}", summaryPath); 190str += string.Format(" ini={{{0}}}", iniPath); 247args[i] = string.Format("in={0}", args[i].Substring(4)); 249args[i] = string.Format("data={0}", args[i].Substring(5)); 333settings.Add(string.Format("xf=lookup{{col=Label data={{{0}}}}}", GetDataPath(dataset.labelFilename)));
DataPipe\TestDataPipe.cs (16)
48string.Format("xf=TermLookup{{col=FileLabel:RawLabel data={{{0}}}}}", mappingPathData), 68string.Format("xf=TermLookup{{col=FileLabel:RawLabel data={{{0}}}}}", mappingPathData), 88string.Format("xf=TermLookup{{col=FileLabel:RawLabel data={{{0}}}}}", mappingPathData), 108string.Format("xf=TermLookup{{key=- col=FileLabel:RawLabel data={{{0}}}}}", mappingPathData), 133string.Format("xf=TermLookup{{key=- col=FileLabelNum:RawLabel data={{{0}}}}}", mappingPathData), 134string.Format("xf=TermLookup{{col=FileLabelKey:RawLabel data={{{0}}}}}", mappingPathData), 158string.Format("xf=TermLookup{{col=FileLabel:RawLabel data={{{0}}}}}", mappingPathData), 354string.Format(textSettings, dictFile), 363string.Format(textSettings, dictFile), 374string.Format(textSettings, terms), 384string.Format(textSettings, terms), 394string.Format(textSettings, terms), 404string.Format(textSettings, terms), 940string.Format("xf=CustomStopWords{{data={0} col=T}}", stopwordsFile), 949string.Format("xf=CustomStopWords{{stopwords={0} col=T}}", string.Join(",", stopwordsList)), 1610Assert.Equal(ex.Message, string.Format("The specified documents are all empty in column '{0}'.", colName));
Learners.cs (1)
605Trainer = new SubComponent("MultiClassNeuralNetwork", string.Format("lr=0.1 accel=sse output={0}", numOutputs)),
TestCommandBase.cs (26)
268return InitPath(string.Format("model.fold{0:000}.zip", fold)); 386args.Add(string.Format("data={{{0}}}", dataPath)); 527return string.Format("data={{{0}}}", dataPath); 746TestCore("showschema", string.Format("steps+ in={{{0}}} meta+", modelPath)); 1022string extraArgs = string.Format("test={{{0}}} tr=ft{{t=1}} lab=Lab feat=Feat norm=Warn", testData); 1291string extraArgs = string.Format("test={{{0}}} tr=ftr{{t=1 numTrees=5 dt+}} lab=Lab feat=Feat norm=Warn", testData); 1367string loadArgs = string.Format("loader=text{{header+ col=F:Num:1-9}} xf=Load{{tag=norm {0}}}", trainModel.ArgStr("in")); 1416string extraTrainTest = string.Format("seed=2 norm=Warn test={{{0}}}", pathData); 1514string extraScore = string.Format("all=+ feat=Features {0}", scorePath.ArgStr("dout")); 1561string extraScore = string.Format("all=+ feat=Features {0}", scorePath.ArgStr("dout")); 1605string extraScore = string.Format("all=+ feat=Features {0}", scorePath.ArgStr("dout")); 1667string extraArgs = string.Format("test={{{0}}} tr=AP{{shuf-}} scorer=fcc{{top=3 bottom=3}} xf=Take{{c=5}} lab=Lab feat=Feat norm=Warn", testData); 1673extraArgs = string.Format("test={{{0}}} tr=AP{{shuf-}} scorer=fcc{{top=3 bottom=3 str+}} xf=Take{{c=5}} lab=Lab feat=Feat norm=Warn", testData); 1686+ string.Format(textTransform, "Title") 1687+ string.Format(textTransform, "Body") 1716string extraScore = string.Format("all=+ feat=Features {0}", scorePath.ArgStr("dout")); 1757string extraScore = string.Format("all=+ feat=Features scorer=QuantileRegression {0}", scorePath.ArgStr("dout")); 1850string extraScore = string.Format("all=+ feat=Features {0}", scorePath.ArgStr("dout")); 1897string extraScore = string.Format("all=+ feat=Features {0}", scorePath.ArgStr("dout")); 1943string extraArgs = string.Format("tr=FastRank{{nl=5 mil=5 lr=0.25 iter=1000 pruning=+ esr=PQ esmt=0 dt+}} test={{{0}}} valid={{{0}}}", pathValid); 1957var extraArgs = string.Format("tr=mcnn{{output=10 lr=0.1 iter=1000 esr=PQ esmt=0 accel=sse}} seed=13 valid={{{0}}}", pathValid); 1979string extraScore = string.Format("all=+ feat=Features {0}", scorePath.ArgStr("dout")); 2172TestCore("showdata", dataPath, string.Format("in={{{0}}}", modelPath.Path), ""); 2189TestCore("showdata", dataPath, string.Format("in={{{0}}}", modelPath.Path), ""); 2209TestCore("showdata", dataPath, string.Format("in={{{0}}}", modelPath.Path), ""); 2227TestCore("showdata", dataPath, string.Format("in={{{0}}}", modelPath.Path), "");
Microsoft.ML.Tests (3)
DatabaseLoaderTests.cs (2)
343String.Format(command, $@"""{TestDatasets.irisDb.trainFilename}"""), 349String.Format(command, TestDatasets.irisDbSQLite.trainFilename),
ExpressionLanguageTests\ExpressionLanguageTests.cs (1)
100return string.Format("<couldn't read {0}>", resName);
Microsoft.ML.TimeSeries (2)
STL\InnerStl.cs (1)
123throw Contracts.Except(string.Format("input time series length for InnerStl is below {0}", MinTimeSeriesLength));
STL\Loess.cs (1)
53throw Contracts.Except(string.Format("input time series length for Loess is below {0}", MinTimeSeriesLength));
Microsoft.ML.Tokenizers (1)
ModelSourceGenerationContext.g.cs (1)
75throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.ML.Transforms (18)
CompositeTransformer.cs (1)
53var modelName = string.Format("Model_{0:000}", i);
Dracula\Featurizer.cs (1)
124classNames[i] = string.Format("Class{0:000}", i);
Expression\LambdaParser.cs (1)
257return string.Format("<{0}>", tid);
Expression\LexCharUtils.cs (2)
246return string.Format(@"\u{0:X4}", u); 247return string.Format(@"\U{0:X8}", u);
Expression\Tokens.cs (2)
203return string.Format(@"'\u{0:X4}'", (int)Value); 206return string.Format("'{0}'", Value);
GroupTransform.cs (1)
354var errorMessage = string.Format("Could not find column '{0}'", names[i]);
LoadTransform.cs (1)
113var criteria = string.Format(
MissingValueHandlingTransformer.cs (1)
213new KeyValuePair<string, string>(string.Format("IsMissing.{0}", column.Source), tmpIsMissingColName),
PermutationFeatureImportance.cs (2)
116msgFilteredOutFeatures.Append(string.Format("... (printing out {0} features here).\n Use 'Index' column in the report for info on what features are not evaluated.", maxReportedZeroFeatures)); 256: string.Format("f{0}", index).AsMemory();
RandomFourierFeaturizing.cs (3)
262_transformInfos[i] = new TransformInfo(Host.Register(string.Format("column{0}", i)), columns[i], 405string.Format("MatrixGenerator{0}", i)); 464_transformInfos[i].Save(ctx, string.Format("MatrixGenerator{0}", i));
Text\LdaTransform.cs (1)
782ctx.SaveTextStream(String.Format(WordTopicModelFilename, columnName), writer =>
Text\TextFeaturizingEstimator.cs (1)
741var dirName = string.Format(TransformDirTemplate, i);
Text\WordBagTransform.cs (1)
722tmpColName = string.Format("_tmp{0:000}", tmp++);
Microsoft.NET.Build.Containers (5)
Exceptions\UnableToAccessRepositoryException.cs (1)
9: base(string.Format("Unable to access the registry '{0}'. Please confirm your credentials are correct and that you have access to this registry.", registry))
ImageIndexGenerator.cs (1)
44throw new NotSupportedException(string.Format(Strings.UnsupportedMediaType, manifestMediaType));
LocalDaemons\ArchiveFileRegistry.cs (1)
76return string.Format(Strings.ArchiveRegistry_PushInfo, ArchiveOutputPath);
LocalDaemons\ContainerRuntime.cs (1)
138=> string.Format(Strings.DockerCli_PushInfo, _runtime?.GetTelemetryValue().ToString());
LocalDaemons\DockerCli.cs (1)
684return string.Format(Strings.DockerCli_PushInfo, _command);
Microsoft.NET.Build.Tasks (19)
_generated\13\WorkloadSetJsonSerializerContext.g.cs (1)
85throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\21\InstallStateJsonSerializerContext.g.cs (1)
85throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\7\SdkVulnerabilitySummaryContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
CheckSdkVulnerabilities.cs (1)
82? $" {string.Format(Strings.SdkVersionUpdateRecommendation_Info, summary.LatestSdkVersion)}"
GenerateToolsSettingsFile.cs (1)
61string.Format(
LockFileCache.cs (2)
87string.Format(Strings.ErrorReadingAssetsFile, ex.Message), 120string.Format(Strings.ErrorReadingAssetsFile, message.Message));
ResolvePackageAssets.cs (1)
1290WriteItem(string.Format(Strings.UnsupportedRuntimeIdentifier, _task.EffectiveRuntimeIdentifier));
ResolveReadyToRunCompilers.cs (1)
437string clrJitFileName = string.Format(v5_clrJitFileNamePattern, GetTargetSpecForVersion5());
ResolveRuntimePackAssets.cs (1)
162throw new BuildErrorException(string.Format(Strings.RuntimeListNotFound, runtimeListPath));
ResolveTargetingPackAssets.cs (3)
167errors.Add(string.Format(Strings.UnknownFrameworkReference, frameworkReference.Name)); 175errors.Add(string.Format(Strings.TargetingPackNotRestored_TransitiveDisabled, frameworkReference.Name)); 179errors.Add(string.Format(Strings.TargetingPackNeedsRestore, frameworkReference.Name));
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\SdkDirectoryWorkloadManifestProvider.cs (3)
187throw new FileNotFoundException(string.Format(Strings.WorkloadVersionNotFound, _workloadSetVersionFromConstructor)); 278throw new InvalidOperationException(string.Format(Strings.WorkloadSetHasMissingManifests, _workloadSet.Version)); 334throw new InvalidOperationException(string.Format(Strings.WorkloadSetHasMissingManifests, _workloadSet.Version));
src\sdk\src\Resolvers\Microsoft.NET.Sdk.WorkloadManifestReader\WorkloadResolver.cs (2)
749throw new Exception(string.Format(Strings.ManifestDoesNotExist, manifestId)); 760throw new Exception(string.Format(Strings.ManifestDoesNotExist, manifestId));
TypeLibraryDictionaryBuilder.cs (1)
43errorsLocal.Add(string.Format(Strings.MissingTypeLibraryId, typeLibrary.ItemSpec));
Microsoft.NET.Sdk.Publish.Tasks (15)
Kudu\KuduVfsDeploy.cs (1)
85_logger.LogMessage(Build.Framework.MessageImportance.High, string.Format(Resources.KUDUDEPLOY_AddingFile, ConnectionInfo.SiteName + "/" + relUrl));
Kudu\KuduZipDeploy.cs (1)
35_logger.LogError(string.Format(Resources.KUDUDEPLOY_AzurePublishErrorReason, Resources.KUDUDEPLOY_DeployOutputPathEmpty));
Tasks\Kudu\KuduDeploy.cs (7)
121Log.LogError(string.Format(Resources.KUDUDEPLOY_AzurePublishErrorReason, Resources.KUDUDEPLOY_OperationTimeout)); 126Log.LogError(string.Format(Resources.KUDUDEPLOY_AzurePublishErrorReason, ae.Flatten().Message)); 145Log.LogError(string.Format(Resources.KUDUDEPLOY_AzurePublishErrorReason, Resources.KUDUDEPLOY_OperationTimeout)); 150Log.LogError(string.Format(Resources.KUDUDEPLOY_AzurePublishErrorReason, ae.Flatten().Message)); 168string zipFileFullPath = Path.Combine(Path.GetTempPath(), string.Format("Publish{0}.zip", new Random().Next(int.MaxValue))); 169Log.LogMessage(Framework.MessageImportance.High, string.Format(Resources.KUDUDEPLOY_CopyingToTempLocation, zipFileFullPath)); 177Log.LogError(string.Format(Resources.KUDUDEPLOY_AzurePublishErrorReason, e.Message));
Tasks\OneDeploy\DeploymentResponse.cs (1)
50? string.Format(Resources.DeploymentStatus, Status)
Tasks\OneDeploy\OneDeploy.cs (2)
104_taskLogger.LogError(string.Format(Resources.ONEDEPLOY_InvalidPublishUrl, url)); 131_taskLogger.LogMessage(string.Format(Resources.ONEDEPLOY_Uploaded, fileToPublishPath));
Tasks\OneDeploy\OneDeployStatusService.cs (1)
36_taskLogger?.LogError(string.Format(Resources.DeploymentStatus_InvalidPollingUrl, url));
Tasks\ZipDeploy\ZipDeploymentStatus.cs (1)
60_log.LogMessage(string.Format(Resources.ZIPDEPLOY_DeploymentStatus, Enum.GetName(typeof(DeployStatus), deployStatus)));
WebConfigTransform.cs (1)
254string projectGuidValue = string.Format("ProjectGuid: {0}", projectGuid);
Microsoft.NET.Sdk.StaticWebAssets.Tasks (3)
_generated\29\StaticWebAssetsJsonSerializerContext.g.cs (1)
83throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\42\DefineStaticWebAssetsSerializerContext.g.cs (1)
97throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\49\ImportMapSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.NET.Sdk.WorkloadManifestReader (7)
_generated\11\InstallStateJsonSerializerContext.g.cs (1)
85throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\3\WorkloadSetJsonSerializerContext.g.cs (1)
85throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
SdkDirectoryWorkloadManifestProvider.cs (3)
187throw new FileNotFoundException(string.Format(Strings.WorkloadVersionNotFound, _workloadSetVersionFromConstructor)); 278throw new InvalidOperationException(string.Format(Strings.WorkloadSetHasMissingManifests, _workloadSet.Version)); 334throw new InvalidOperationException(string.Format(Strings.WorkloadSetHasMissingManifests, _workloadSet.Version));
WorkloadResolver.cs (2)
749throw new Exception(string.Format(Strings.ManifestDoesNotExist, manifestId)); 760throw new Exception(string.Format(Strings.ManifestDoesNotExist, manifestId));
Microsoft.NET.StringTools (1)
WeakStringCacheInterner.cs (1)
156result.AppendLine(string.Format("##########Top Top Interned Strings: \n{0} ", string.Join("\n==============\n", topInternedStrings.ToArray())));
Microsoft.Private.Windows.Core (4)
System\Private\Windows\Ole\BinaryFormatUtilities.cs (1)
195throw new NotSupportedException(string.Format(SR.ClipboardOrDragDrop_UseTypedAPI, typeof(T).FullName));
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
534throw new NotSupportedException(string.Format(
System\Private\Windows\Ole\TypeBinder.cs (1)
98: throw new NotSupportedException(string.Format(
Windows\Win32\Graphics\GdiPlus\StatusExtensions.cs (1)
63return new ArgumentException(string.Format(SR.GdiplusFontFamilyNotFound, "?"));
Microsoft.SourceLink.GitWeb (2)
TranslateRepositoryUrls.cs (2)
29=> throw new NotSupportedException(string.Format(Resources.RepositoryUrlIsNotSupportedByProvider, "GIT")); 32=> throw new NotSupportedException(string.Format(Resources.RepositoryUrlIsNotSupportedByProvider, "HTTP"));
Microsoft.TemplateEngine.Cli (57)
ChoiceTemplateParameter.cs (2)
123argumentResult.AddError(string.Format(LocalizableStrings.ParseTemplateOption_Error_MissingDefaultValue, or.IdentifierToken?.Value)); 142argumentResult.AddError(string.Format(LocalizableStrings.ParseTemplateOption_Error_MissingDefaultIfNoOptionValue, or.IdentifierToken?.Value));
CliConsoleFormatter.cs (2)
41textWriter.WriteLine(string.Format(LocalizableStrings.GenericError, message)); 45textWriter.WriteLine(string.Format(LocalizableStrings.GenericWarning, message));
CliTemplateParameter.cs (10)
346argumentResult.AddError(string.Format(LocalizableStrings.ParseTemplateOption_Error_MissingDefaultValue, or.IdentifierToken?.Value)); 365argumentResult.AddError(string.Format(LocalizableStrings.ParseTemplateOption_Error_MissingDefaultIfNoOptionValue, or.IdentifierToken?.Value)); 397return string.Format(HelpStrings.Text_RequiredCondition, precedence.IsRequiredCondition); 399return string.Format(HelpStrings.Text_EnabledCondition, precedence.IsEnabledCondition); 472displayValue.AppendLine(string.Format(HelpStrings.RowHeader_Type, string.IsNullOrWhiteSpace(DataType) ? "choice" : DataType)); 490displayValue.AppendLine(string.Format(HelpStrings.RowHeader_Type, string.IsNullOrWhiteSpace(DataType) ? "string" : DataType)); 494displayValue.AppendLine(string.Format(HelpStrings.RowHeader_AllowMultiValue, AllowMultipleValues)); 499displayValue.AppendLine(string.Format(HelpStrings.RowHeader_DefaultValue, DefaultValue)); 511displayValue.AppendLine(string.Format(HelpStrings.RowHeader_DefaultIfOptionWithoutValue, DefaultIfOptionWithoutValue)); 518displayValue.AppendLine(string.Format(HelpStrings.RowHeader_DefaultIfOptionWithoutValue, DefaultIfOptionWithoutValue));
Commands\AliasAssignmentCoordinator.cs (1)
31errors.Add(string.Format(LocalizableStrings.AliasAssignmentCoordinator_Error_NameShouldNotHaveColon, parameter.Name));
Commands\create\InstantiateCommand.cs (2)
96string.Format(LocalizableStrings.InstantiateCommand_Info_NoMatchingTemplatesSubCommands, instantiateArgs.ShortName).Bold().Red()); 320reporter.WriteLine(string.Format(LocalizableStrings.AmbiguousTemplatesSamePackageHint, templatePackage).Bold().Red());
Commands\create\InstantiateCommand.NoMatchHandling.cs (2)
147reporter.WriteLine(string.Format(LocalizableStrings.Generic_Info_NoMatchingTemplates, string.Join(" ", tokens)).Bold().Red()); 198Reporter.Error.WriteLine(string.Format(LocalizableStrings.Generic_Info_NoMatchingTemplates, baseInputParameters).Bold().Red());
PostActionDispatcher.cs (2)
189Reporter.Output.WriteLine(string.Format(LocalizableStrings.PostActionCommand, $"{executable} {commandArgs}").Bold().Red()); 256stream.WriteLine(string.Format(LocalizableStrings.PostActionCommand, $"{executable} {commandArgs}").Bold().Red());
PostActionProcessors\AddJsonPropertyPostActionProcessor.cs (12)
88Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotConfigured, JsonFileNameArgument)); 94Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotBoolean, DetectRepoRoot)); 100Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotBoolean, IncludeAllDirectoriesInSearch)); 108Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotBoolean, IncludeAllParentDirectoriesInSearch)); 124Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotBoolean, AllowFileCreationArgument)); 141Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_MultipleJsonFiles, jsonFileName)); 168Reporter.Output.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Succeeded, jsonFileName)); 180Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_NullJson, fileContent)); 186Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotBoolean, AllowPathCreationArgument)); 194Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ParentPropertyPathInvalid, propertyPath)); 312Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotConfigured, NewJsonPropertyNameArgument)); 318Reporter.Error.WriteLine(string.Format(LocalizableStrings.PostAction_ModifyJson_Error_ArgumentNotConfigured, NewJsonPropertyValueArgument));
PostActionProcessors\InstructionDisplayPostActionProcessor.cs (1)
24Reporter.Output.WriteLine(string.Format(LocalizableStrings.PostActionCommand, $"{executable} {commandArgs}").Bold().Red());
TemplateInvoker.cs (1)
291string.Format(
TemplateListCoordinator.cs (1)
89string.Format(
TemplatePackageCoordinator.cs (6)
720string.Format( 825string.Format( 833string.Format( 840string.Format( 873throw new Exception(string.Format(LocalizableStrings.DetailsCommand_UnableToLoadResources, currentDirectory), ex); 900Reporter.Output.WriteLine(string.Format(LocalizableStrings.DetailsCommand_UnableToLoadResource, source));
TemplatePackageDisplay.cs (13)
139string.Format( 145string.Format( 151string.Format( 157string.Format( 166string.Format( 172string.Format( 182_reporterError.WriteLine(string.Format( 194_reporterError.WriteLine(string.Format( 214string.Format( 341string.Format( 349string.Format( 356string.Format( 363string.Format(
TemplateSearch\CliTemplateSearchCoordinator.cs (2)
69Reporter.Error.WriteLine(string.Format(LocalizableStrings.CliTemplateSearchCoordinator_Error_SearchFailure, result.ErrorMessage).Red().Bold()); 84string.Format(
Microsoft.TemplateEngine.Core (2)
Expressions\ScopeBuilder.cs (1)
56trie.AddToken(processor.Encoding.GetBytes(string.Format(processor.Config.VariableFormatString, variable.Key)));
Util\EncodingConfig.cs (1)
61string formattedKey = string.Format(config.VariableFormatString, item.Key);
Microsoft.TemplateEngine.Edge (52)
_generated\17\SettingsStoreJsonSerializerContext.g.cs (1)
83throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\43\TemplateCacheJsonSerializerContext.g.cs (1)
83throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\7\GlobalSettingsJsonSerializerContext.g.cs (1)
83throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
BuiltInManagedProvider\GlobalSettingsTemplatePackageProvider.cs (6)
140string.Format(LocalizableStrings.GlobalSettingsTemplatePackageProvider_InstallResult_Error_PackageCannotBeInstalled, installRequest.PackageIdentifier), 148string.Format(LocalizableStrings.GlobalSettingsTemplatePackageProvider_InstallResult_Error_MultipleInstallersCanBeUsed, installRequest.PackageIdentifier), 268return (InstallerErrorCode.AlreadyInstalled, string.Format(LocalizableStrings.GlobalSettingsTemplatePackageProvider_InstallResult_Error_PackageAlreadyInstalled, packageToBeUpdated.DisplayName)); 277: $"{packageToBeUpdated.Identifier} ({string.Format(LocalizableStrings.Generic_Version, packageToBeUpdated.Version)})", 280string.Format(LocalizableStrings.Generic_Version, version))); 293string.Format(
Constraints\ConstraintsExtensions.cs (9)
24return new[] { token.GetValue<string>() ?? throw new ConfigurationException(string.Format(LocalizableStrings.Constraint_Error_ArgumentHasEmptyString, args)) }; 33throw new ConfigurationException(string.Format(LocalizableStrings.Constraint_Error_ArgumentHasEmptyString, args)); 39throw new ConfigurationException(string.Format(LocalizableStrings.Constraint_Error_ArgumentHasEmptyString, args)); 61throw new ConfigurationException(string.Format(LocalizableStrings.Constraint_Error_InvalidJsonArray_Objects, args)); 107throw new ConfigurationException(string.Format(LocalizableStrings.Constraint_Error_InvalidVersion, versionString)); 127throw new ConfigurationException(string.Format(LocalizableStrings.Constraint_Error_InvalidJson, args), e); 130return token ?? throw new ConfigurationException(string.Format(LocalizableStrings.Constraint_Error_InvalidJson, args)); 137throw new ConfigurationException(string.Format( 146throw new ConfigurationException(string.Format(LocalizableStrings.Constraint_Error_ArrayHasNoObjects, args));
Constraints\SdkVersionConstraintFactory.cs (2)
104string.Format(LocalizableStrings.SdkConstraint_Error_MismatchedProviders, providers.Select(p => p.Id).ToCsvString())); 121throw new ConfigurationException(string.Format(LocalizableStrings.SdkConstraint_Error_InvalidVersion, version));
Constraints\WorkloadConstraintFactory.cs (2)
98string.Format(LocalizableStrings.WorkloadConstraint_Error_MismatchedProviders, providers.Select(p => p.Id).ToCsvString())); 116logger.LogWarning(string.Format(
Installers\Folder\FolderInstaller.cs (1)
67string.Format(LocalizableStrings.FolderInstaller_InstallResult_Error_FolderDoesNotExist, installRequest.PackageIdentifier),
Installers\NuGet\NugetApiPackageManager.cs (9)
94string.Format(LocalizableStrings.NuGetApiPackageManager_DownloadError_VulnerablePackage, source), 108_nugetLogger.LogError(string.Format(LocalizableStrings.NuGetApiPackageManager_Error_FailedToLoadSource, source.Source)); 116_nugetLogger.LogError(string.Format(LocalizableStrings.NuGetApiPackageManager_Error_FileAlreadyExists, filePath)); 154string.Format( 177string.Format( 241_nugetLogger.LogWarning(string.Format(LocalizableStrings.NuGetApiPackageManager_Warning_InsecureFeed, packagesString)); 417_nugetLogger.LogDebug(string.Format(LocalizableStrings.NuGetApiPackageManager_Error_FailedToReadPackage, source.Source)); 455_nugetLogger.LogError(string.Format(LocalizableStrings.NuGetApiPackageManager_Error_FailedToLoadSources, currentDirectory)); 485_nugetLogger.LogWarning(string.Format(LocalizableStrings.NuGetApiPackageManager_Warning_FailedToLoadSource, source));
Installers\NuGet\NuGetInstaller.cs (8)
129string.Format(LocalizableStrings.NuGetApiPackageManager_UpdateCheckError_VulnerablePackage, nugetPackage.Identifier), 152: string.Format(LocalizableStrings.NuGetInstaller_InstallResult_Error_InvalidSources, string.Join(", ", e.SourcesList)); 173string.Format(LocalizableStrings.NuGetInstaller_UpdateCheck_Error_VulnerablePackage, nugetPackage.Identifier), 280: string.Format(LocalizableStrings.NuGetInstaller_InstallResult_Error_InvalidSources, string.Join(", ", e.SourcesList)); 293string.Format(LocalizableStrings.NuGetInstaller_InstallResult_Error_InvalidPackage, e.PackageLocation), 301string.Format(LocalizableStrings.NuGetInstaller_InstallResult_Error_VulnerablePackage, e.PackageIdentifier), 407_logger.LogError(string.Format(LocalizableStrings.NuGetInstaller_Error_FailedToReadPackage, installRequest.PackageIdentifier)); 415_logger.LogError(string.Format(LocalizableStrings.NuGetInstaller_Error_FileAlreadyExists, targetPackageLocation));
Settings\Scanner.cs (1)
129throw new Exception(string.Format(LocalizableStrings.Scanner_Error_TemplatePackageLocationIsNotSupported, sourceLocation));
Settings\TemplatePackageManager.cs (1)
244throw new InvalidOperationException(string.Format(LocalizableStrings.TemplatePackageManager_Error_FailedToFindPackage, packageIdentifier));
Template\InputDataSetExtensions.cs (3)
82string.Format(LocalizableStrings.EvaluatedInputDataSet_Error_MismatchedConditions, string.Join(", ", offendingParameters))); 96throw new ArgumentException(string.Format(LocalizableStrings.EvaluatedInputParameterData_Error_ConditionsInvalid, inputParameterData.ParameterDefinition.Name)); 107string.Format(
Template\ParameterSetBuilder.cs (1)
284string.Format(
Template\TemplateCreator.cs (1)
224localizedErrorMessage: string.Format(LocalizableStrings.TemplateCreator_TemplateCreationResult_Error_CreationFailed, message),
TemplateConstraintManager.cs (2)
97return TemplateConstraintResult.CreateInitializationFailure(type, string.Format(LocalizableStrings.TemplateConstraintManager_Error_UnknownType, type)); 191constraintResults.Add(TemplateConstraintResult.CreateInitializationFailure(constraint.Type, string.Format(LocalizableStrings.TemplateConstraintManager_Error_UnknownType, constraint.Type)));
ValidationUtils.cs (3)
69string.Format(LocalizableStrings.Validation_Error_Header, templateDisplayName), 74string.Format(LocalizableStrings.Validation_Warning_Header, templateDisplayName), 79string.Format(LocalizableStrings.Validation_Info_Header, templateDisplayName),
Microsoft.TemplateEngine.Orchestrator.RunnableProjects (24)
_generated\1\JsonEncodeSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
ConfigModel\BaseValueSymbol.cs (1)
93throw new ArgumentException(string.Format(LocalizableStrings.Symbol_Error_IsRequiredNotABool, isRequiredToken));
ConfigModel\ParameterSymbol.cs (1)
261throw new ArgumentException(string.Format(LocalizableStrings.Symbol_Error_IsRequiredNotABoolOrString, isRequiredToken));
ConfigModel\PostActionModel.cs (1)
116string.Format(LocalizableStrings.Authoring_CONFIG0202_PostActionMustHaveActionId, postActionIndex)));
DirectoryBasedTemplate.cs (1)
180string.Format(
EvaluatorSelector.cs (1)
80_ => throw new TemplateAuthoringException(string.Format(LocalizableStrings.EvaluatorSelector_Exception_UnknownEvaluator, evaluatorName)),
MacroProcessor.cs (1)
88string.Format(
ParameterBasedVariableCollection.cs (1)
88string key = string.Format(format ?? "{0}", param.Name);
RunnableProjectGenerator.cs (2)
261?? throw new NotSupportedException(string.Format(LocalizableStrings.RunnableProjectGenerator_Exception_ConfigShouldBeFile, templateFileConfig.GetDisplayPath())); 267?? throw new NotSupportedException(string.Format(LocalizableStrings.RunnableProjectGenerator_Exception_LocaleConfigShouldBeFile, localeFileConfig.GetDisplayPath()));
Validation\MandatoryLocalizationValidationFactory.cs (1)
77localization.Value.AddValidationEntry(new ValidationEntry(IValidationEntry.SeverityLevel.Error, "LOC002", string.Format(LocalizableStrings.Authoring_InvalidPostActionLocalizationIndex, excessPostActionLocalizationIds)));
Validation\MandatoryValidationFactory.cs (13)
26vi => string.Format(LocalizableStrings.Authoring_MissingValue, "identity"), 32vi => string.Format(LocalizableStrings.Authoring_MissingValue, "name"), 38vi => string.Format(LocalizableStrings.Authoring_MissingValue, "shortName"), 60vi => string.Format(LocalizableStrings.Authoring_MissingValue, "sourceName"), 66vi => string.Format(LocalizableStrings.Authoring_MissingValue, "author"), 72vi => string.Format(LocalizableStrings.Authoring_MissingValue, "groupIdentity"), 78vi => string.Format(LocalizableStrings.Authoring_MissingValue, "generatorVersions"), 84vi => string.Format(LocalizableStrings.Authoring_MissingValue, "precedence"), 90vi => string.Format(LocalizableStrings.Authoring_MissingValue, "classifications"), 132AddValidationError(validationInfo, string.Format(LocalizableStrings.Authoring_SourceMustBeDirectory, source.Source)); 139AddValidationError(validationInfo, string.Format(LocalizableStrings.Authoring_SourceIsOutsideInstallSource, source.Source)); 143AddValidationError(validationInfo, string.Format(LocalizableStrings.Authoring_SourceDoesNotExist, source.Source)); 151AddValidationError(validationInfo, string.Format(LocalizableStrings.Authoring_SourceIsOutsideInstallSource, source.Source));
Microsoft.TemplateEngine.Utils (1)
DictionaryExtensions.cs (1)
69throw new ArgumentException(string.Format(LocalizableStrings.DictionaryExtensions_Error_KeyExists, pair.Key));
Microsoft.TemplateSearch.Common (2)
Providers\NuGetMetadataSearchProvider.cs (2)
102throw new Exception(string.Format(LocalizableStrings.BlobStoreSourceFileProvider_Exception_LocalCacheDoesNotExist, localOverridePath)); 119throw new Exception(string.Format(LocalizableStrings.BlobStoreSourceFileProvider_Exception_LocalCacheDoesNotExist, preferredMetadataLocation));
Microsoft.TestPlatform.CommunicationUtilities (1)
_generated\103\TestPlatformJsonContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Microsoft.VisualBasic.Core (1)
src\runtime\src\libraries\Common\src\System\SR.vb (1)
69Return String.Format(resourceFormat, p1)
Microsoft.Win32.Registry (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Win32.Registry.AccessControl (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Microsoft.Win32.SystemEvents (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
Mono.Cecil (4)
Mono.Cecil.Cil\Symbols.cs (1)
952 throw new SymbolsNotFoundException (string.Format ("No symbol found for file: {0}", fileName));
Mono.Cecil\AssemblyWriter.cs (1)
2276 return new ArgumentException (string.Format ("Member '{0}' is declared in another module and needs to be imported", member));
Mono.Cecil\BaseAssemblyResolver.cs (1)
54 : base (string.Format ("Failed to resolve assembly: '{0}'", reference), innerException)
Mono.Cecil\TypeResolver.cs (1)
176 throw new NotSupportedException (string.Format ("The type {0} cannot be resolved correctly.", typeReference.FullName));
Mono.Cecil.Mdb (1)
Mono.CompilerServices.SymbolWriter\MonoSymbolTable.cs (1)
514 return String.Format ("[AnonymousScope {0}]", ID);
NuGet.CommandLine.XPlat (5)
_generated\35\PackageSearchJsonContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
ListPackage\ListPackageConsoleRenderer.cs (4)
240return string.Format(Strings.ListPkg_ProjectUpdatesHeaderLog, projectName); 242return string.Format(Strings.ListPkg_ProjectDeprecationsHeaderLog, projectName); 244return string.Format(Strings.ListPkg_ProjectVulnerabilitiesHeaderLog, projectName); 249return string.Format(Strings.ListPkg_ProjectHeaderLog, projectName);
NuGet.Commands (1)
RestoreCommand\Utility\AuditUtility.cs (1)
251var messageText = string.Format(Strings.Error_VulnerabilityDataFetch, exception.Message);
NuGet.Credentials (1)
_generated\4\PluginCredentialResponseJsonContext.g.cs (1)
83throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
NuGet.PackageManagement (1)
Audit\AuditChecker.cs (1)
77var messageText = string.Format(Strings.Error_VulnerabilityDataFetch, exception.Message);
NuGet.Packaging (1)
_generated\3\NupkgMetadataSerializationContext.g.cs (1)
86throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
NuGet.ProjectModel (2)
_generated\11\CacheFileSourceGen.g.cs (1)
82throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\22\AssetsLogMessageSourceGen.g.cs (1)
82throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
NuGet.Protocol (5)
_generated\142\JsonContext.g.cs (1)
91throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\154\RepositorySignatureJsonContext.g.cs (1)
88throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\35\PackageSearchJsonContext.g.cs (1)
90throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\40\PluginCacheJsonContext.g.cs (1)
83throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
_generated\94\PluginJsonContext.g.cs (1)
83throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
PresentationBuildTasks (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
PresentationCore (6)
MS\Internal\FontFace\CompositeFontParser.cs (1)
344Fail(string.Format("No FontFamily element found in FontFamilyCollection that matches current OS or greater: {0}", OSVersionHelper.GetOsVersion().ToString()));
MS\Internal\Media\VisualTreeUtils.cs (2)
177Debug.Fail(String.Format("Unhandled HitTestResult type '{0}'", result.GetType().Name)); 281Debug.Fail(String.Format(
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
System\Windows\DataObjectExtensions.cs (1)
21throw new NotSupportedException(string.Format(
System\Windows\Input\Stylus\Common\DynamicRendererThreadManager.cs (1)
251Debug.WriteLine(String.Format("Dispatcher.CriticalInvokeShutdown() Failed. Error={0}", e.NativeErrorCode));
PresentationFramework (3)
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
System\Windows\Application.cs (1)
971throw new ArgumentException(string.Format("ThemeMode value {0} is invalid. Use None, System, Light or Dark", value));
System\Windows\Window.cs (1)
586throw new ArgumentException(string.Format("ThemeMode value {0} is invalid. Use None, System, Light or Dark", value));
PresentationUI (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
ReachFramework (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
Roslyn.Diagnostics.Analyzers (21)
src\roslyn\src\Dependencies\Collections\Internal\ThrowHelper.cs (3)
78throw new ArgumentException(string.Format(SR.Arg_BogusIComparer, comparer)); 132return new ArgumentException(string.Format(SR.Argument_AddingDuplicateWithKey, key)); 231return new KeyNotFoundException(string.Format(SR.Arg_KeyNotFoundWithKey, key));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (6)
127failureReason = string.Format(CompilerExtensionsResources.Missing_prefix_colon_0, Prefix); 133failureReason = string.Format(CompilerExtensionsResources.Missing_suffix_colon_0, Suffix); 154? string.Format(CompilerExtensionsResources.Prefix_0_is_not_expected, prefix) 226reason = string.Format(resourceId, string.Join(", ", violations)); 266reason = string.Format(firstResourceId, Substring(name, wordSpan)); 282var restString = string.Format(restResourceId, string.Join(", ", violations));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.RepeatMatcher.cs (1)
23=> string.Format("({0}*)", matcher);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\Matcher.SequenceMatcher.cs (1)
29=> string.Format("({0})", string.Join(",", (object[])matchers));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\FixAllHelper.cs (4)
19FixAllScope.Custom => string.Format(WorkspaceExtensionsResources.Fix_all_0, title), 22FixAllScope.Solution => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Solution, title), 23FixAllScope.ContainingMember => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_member, title), 24FixAllScope.ContainingType => string.Format(WorkspaceExtensionsResources.Fix_all_0_in_Containing_type, title),
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
39return semanticModel ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 63return syntaxTree ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name)); 80return root ?? throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.SyntaxTree_is_required_to_accomplish_the_task_but_is_not_supported_by_document_0, document.Name));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (2)
44throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Project_of_ID_0_is_required_to_accomplish_the_task_but_is_not_available_from_the_solution, projectId)); 128=> new InvalidOperationException(string.Format(WorkspaceExtensionsResources.The_solution_does_not_contain_the_specified_document, debugName ?? "Unknown"));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (1)
99throw new InvalidOperationException(string.Format(WorkspaceExtensionsResources.Compilation_is_required_to_accomplish_the_task_but_is_not_supported_by_project_0, project.Name));
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SymbolDisplayPartExtensions.cs (1)
23return new SymbolDisplayPart(SymbolDisplayPartKind.ErrorTypeName, null, string.Format("@{0}", text));
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\OperatorGenerator.cs (1)
85throw new ArgumentException(string.Format(WorkspaceExtensionsResources.Cannot_generate_code_for_unsupported_operator_0, method.Name), nameof(method));
Roslyn.Diagnostics.VisualBasic.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (1)
411Throw New NotSupportedException(String.Format("Accessibility '{0}' not supported.", accessibility))
rzc (4)
Json\Strings.cs (4)
24=> string.Format(Could_not_read_value_JSON_token_was_0, token); 27=> string.Format(Encountered_unexpected_JSON_property_0, propertyName); 30=> string.Format(Encountered_unexpected_JSON_token_0, token); 39=> string.Format(Expected_0_to_be_non_null, name);
ScenarioTests.Common.Tests (3)
ScenarioTestTypes.cs (3)
941throw new TimeoutException(string.Format("Not completed within the alloted time of {0}", ScenarioTestHelpers.TestTimeout)); 953throw new TimeoutException(string.Format("Not completed within the alloted time of {0}", ScenarioTestHelpers.TestTimeout)); 965throw new TimeoutException(string.Format("Not completed within the alloted time of {0}", ScenarioTestHelpers.TestTimeout));
sdk-tasks (1)
_generated\4\SdkTasksJsonSerializerContext.g.cs (1)
80throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Security.TransportSecurity.IntegrationTests (6)
Https\HttpsTests.4.1.0.cs (4)
99errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString())); 138errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString())); 177errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString())); 216errorBuilder.AppendLine(String.Format("Inner exception: {0}", innerException.ToString()));
Https\HttpsTests.4.1.1.cs (1)
111String.Format("Expected SecurityNegotiationException but received {0}",
Tcp\ClientCredentialTypeTests.4.1.1.cs (1)
110String.Format("Expected SecurityNegotiationException but received {0}",
Shared.Tests (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\Context.g.cs (1)
85throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestTypesContext.g.cs (1)
82throw new global::System.InvalidOperationException(string.Format("The converter '{0}' cannot return null or a JsonConverterFactory instance.", factory.GetType()));
System.CodeDom (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Collections (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Collections.Concurrent (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Collections.Immutable (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Collections.NonGeneric (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Collections.Specialized (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.ComponentModel.Annotations (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.ComponentModel.Composition (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.ComponentModel.Composition.Registration (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.ComponentModel.EventBasedAsync (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.ComponentModel.Primitives (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.ComponentModel.TypeConverter (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Composition.Convention (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Composition.Hosting (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Composition.Runtime (2)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System\Composition\Hosting\Core\CompositionContract.cs (1)
111result += string.Format(" {{ {0} }}",
System.Composition.TypedParts (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Configuration.ConfigurationManager (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Console (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Data.Common (3)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System\Data\Common\DataCommonEventSource.cs (2)
31Trace(string.Format(format, arg0)); 85internal long EnterScope<T1>(string format, T1 arg1) => Log.IsEnabled() ? EnterScope(string.Format(format, arg1)) : 0;
System.Data.Odbc (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Data.OleDb (2)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System\Data\Common\DataCommonEventSource.cs (1)
26Trace(string.Format(format, arg0));
System.Diagnostics.DiagnosticSource (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Diagnostics.EventLog (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Diagnostics.FileVersionInfo (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Diagnostics.PerformanceCounter (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Diagnostics.Process (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Diagnostics.TextWriterTraceListener (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Diagnostics.TraceSource (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.DirectoryServices (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.DirectoryServices.AccountManagement (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.DirectoryServices.Protocols (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Drawing.Common (1)
Special\SR.cs (1)
51: string.Format(resourceFormat, p1);
System.Drawing.Primitives (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Formats.Asn1 (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Formats.Cbor (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Formats.Nrbf (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Formats.Tar (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.Compression (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.Compression.Brotli (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.Compression.ZipFile (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.FileSystem.AccessControl (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.FileSystem.DriveInfo (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.FileSystem.Watcher (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.Hashing (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.IsolatedStorage (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.MemoryMappedFiles (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.Packaging (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.Pipelines (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.Pipes (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.IO.Ports (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Linq (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Linq.AsyncEnumerable (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Linq.Expressions (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Linq.Parallel (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Linq.Queryable (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Management (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Memory (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Memory.Data (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.Http (2)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
170case 1: return string.Format(s.Format, Format(s.GetArgument(0)));
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.Http.Json (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.Http.WinHttpHandler (2)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
170case 1: return string.Format(s.Format, Format(s.GetArgument(0)));
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.HttpListener (2)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
170case 1: return string.Format(s.Format, Format(s.GetArgument(0)));
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.Mail (2)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
170case 1: return string.Format(s.Format, Format(s.GetArgument(0)));
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.NameResolution (2)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
170case 1: return string.Format(s.Format, Format(s.GetArgument(0)));
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.NetworkInformation (3)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System\Net\NetworkInformation\LinuxIPInterfaceProperties.cs (2)
78StringParsingHelpers.ParseDhcpServerAddressesFromLeasesFile(internalCollection, string.Format(NetworkFiles.DHClientInterfaceLeasesFile, _linuxNetworkInterface.Name), _linuxNetworkInterface.Name); 79StringParsingHelpers.ParseDhcpServerAddressesFromLeasesFile(internalCollection, string.Format(NetworkFiles.DHClientSecondaryInterfaceLeasesFile, _linuxNetworkInterface.Name), _linuxNetworkInterface.Name);
System.Net.Ping (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.Primitives (2)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
170case 1: return string.Format(s.Format, Format(s.GetArgument(0)));
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.Quic (2)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
170case 1: return string.Format(s.Format, Format(s.GetArgument(0)));
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.Requests (2)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
170case 1: return string.Format(s.Format, Format(s.GetArgument(0)));
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.Security (2)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
170case 1: return string.Format(s.Format, Format(s.GetArgument(0)));
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.ServerSentEvents (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.Sockets (2)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
170case 1: return string.Format(s.Format, Format(s.GetArgument(0)));
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.WebClient (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.WebHeaderCollection (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.WebSockets (2)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
170case 1: return string.Format(s.Format, Format(s.GetArgument(0)));
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Net.WebSockets.Client (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Numerics.Tensors (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.ObjectModel (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Private.CoreLib (71)
src\runtime\src\coreclr\tools\Common\Internal\Metadata\NativeFormat\NativeFormatReaderGen.cs (63)
113public override string ToString() => string.Format("{0:X8}", _value); 194public override string ToString() => string.Format("{0:X8}", _value); 274public override string ToString() => string.Format("{0:X8}", _value); 354public override string ToString() => string.Format("{0:X8}", _value); 434public override string ToString() => string.Format("{0:X8}", _value); 514public override string ToString() => string.Format("{0:X8}", _value); 594public override string ToString() => string.Format("{0:X8}", _value); 674public override string ToString() => string.Format("{0:X8}", _value); 754public override string ToString() => string.Format("{0:X8}", _value); 834public override string ToString() => string.Format("{0:X8}", _value); 918public override string ToString() => string.Format("{0:X8}", _value); 1002public override string ToString() => string.Format("{0:X8}", _value); 1082public override string ToString() => string.Format("{0:X8}", _value); 1162public override string ToString() => string.Format("{0:X8}", _value); 1242public override string ToString() => string.Format("{0:X8}", _value); 1322public override string ToString() => string.Format("{0:X8}", _value); 1402public override string ToString() => string.Format("{0:X8}", _value); 1482public override string ToString() => string.Format("{0:X8}", _value); 1562public override string ToString() => string.Format("{0:X8}", _value); 1638public override string ToString() => string.Format("{0:X8}", _value); 1718public override string ToString() => string.Format("{0:X8}", _value); 1798public override string ToString() => string.Format("{0:X8}", _value); 1878public override string ToString() => string.Format("{0:X8}", _value); 1958public override string ToString() => string.Format("{0:X8}", _value); 2039public override string ToString() => string.Format("{0:X8}", _value); 2121public override string ToString() => string.Format("{0:X8}", _value); 2201public override string ToString() => string.Format("{0:X8}", _value); 2281public override string ToString() => string.Format("{0:X8}", _value); 2361public override string ToString() => string.Format("{0:X8}", _value); 2441public override string ToString() => string.Format("{0:X8}", _value); 2521public override string ToString() => string.Format("{0:X8}", _value); 2601public override string ToString() => string.Format("{0:X8}", _value); 2691public override string ToString() => string.Format("{0:X8}", _value); 2788public override string ToString() => string.Format("{0:X8}", _value); 2889public override string ToString() => string.Format("{0:X8}", _value); 2970public override string ToString() => string.Format("{0:X8}", _value); 3050public override string ToString() => string.Format("{0:X8}", _value); 3151public override string ToString() => string.Format("{0:X8}", _value); 3241public override string ToString() => string.Format("{0:X8}", _value); 3345public override string ToString() => string.Format("{0:X8}", _value); 3431public override string ToString() => string.Format("{0:X8}", _value); 3515public override string ToString() => string.Format("{0:X8}", _value); 3614public override string ToString() => string.Format("{0:X8}", _value); 3694public override string ToString() => string.Format("{0:X8}", _value); 3784public override string ToString() => string.Format("{0:X8}", _value); 3878public override string ToString() => string.Format("{0:X8}", _value); 3975public override string ToString() => string.Format("{0:X8}", _value); 4060public override string ToString() => string.Format("{0:X8}", _value); 4157public override string ToString() => string.Format("{0:X8}", _value); 4238public override string ToString() => string.Format("{0:X8}", _value); 4339public override string ToString() => string.Format("{0:X8}", _value); 4429public override string ToString() => string.Format("{0:X8}", _value); 4513public override string ToString() => string.Format("{0:X8}", _value); 4597public override string ToString() => string.Format("{0:X8}", _value); 4678public override string ToString() => string.Format("{0:X8}", _value); 4818public override string ToString() => string.Format("{0:X8}", _value); 4926public override string ToString() => string.Format("{0:X8}", _value); 5064public override string ToString() => string.Format("{0:X8}", _value); 5152public override string ToString() => string.Format("{0:X8}", _value); 5238public override string ToString() => string.Format("{0:X8}", _value); 5323public override string ToString() => string.Format("{0:X8}", _value); 5404public override string ToString() => string.Format("{0:X8}", _value); 5484public override string ToString() => string.Format("{0:X8}", _value);
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Security\CryptographicException.cs (1)
37: base(string.Format(format, insert))
System\Reflection\Runtime\CustomAttributes\RuntimeCustomAttributeData.cs (6)
46ctorArgs += string.Format(i == 0 ? "{0}" : ", {0}", ComputeTypedArgumentString(constructorArguments[i], typed: false)); 116return string.Format(typed ? "null" : "({0})null", argumentType.Name); 119return string.Format("\"{0}\"", value); 122return string.Format("'{0}'", value); 125return string.Format("typeof({0})", ((Type)value).FullName); 135result += string.Format(i == 0 ? "{0}" : ", {0}", ComputeTypedArgumentString(array[i], elementType != typeof(object)));
System.Private.DataContractSerialization (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Private.Reflection.Execution (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Private.TypeLoader (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Private.Uri (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Private.Windows.Core (10)
System\Private\Windows\Ole\BinaryFormatUtilities.cs (1)
195throw new NotSupportedException(string.Format(SR.ClipboardOrDragDrop_UseTypedAPI, typeof(T).FullName));
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
534throw new NotSupportedException(string.Format(
System\Private\Windows\Ole\TypeBinder.cs (1)
98: throw new NotSupportedException(string.Format(
Windows\Win32\Graphics\GdiPlus\StatusExtensions.cs (1)
63return new ArgumentException(string.Format(SR.GdiplusFontFamilyNotFound, "?"));
Windows\Win32\System\Variant\VARIANT.cs (6)
238throw new ArgumentException(string.Format(SR.COM2UnhandledVT, type)); 267throw new ArgumentException(string.Format(SR.COM2UnhandledVT, arrayType)); 420throw new ArgumentException(string.Format(SR.COM2UnhandledVT, vt)); 625throw new ArgumentException(string.Format(SR.COM2UnhandledVT, arrayType)); 676_ => throw new ArgumentException(string.Format(SR.COM2UnhandledVT, vt)), 871throw new ArgumentException(string.Format(SR.COM2UnhandledVT, vt));
System.Private.Xml (2)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System\Xml\XmlConvert.cs (1)
1551return new ArgumentException(string.Format(res, arg));
System.Private.Xml.Linq (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Reflection.Context (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Reflection.DispatchProxy (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Reflection.Emit (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Reflection.Metadata (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Reflection.MetadataLoadContext (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Reflection.TypeExtensions (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Resources.Extensions (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Resources.Writer (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Runtime.Caching (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Runtime.InteropServices (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Runtime.InteropServices.JavaScript (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Runtime.Numerics (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Runtime.Serialization.Formatters (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Runtime.Serialization.Primitives (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Runtime.Serialization.Schema (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Security.AccessControl (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Security.Claims (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Security.Cryptography (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Security.Cryptography.Cose (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Security.Cryptography.Pkcs (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Security.Cryptography.ProtectedData (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Security.Cryptography.Xml (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Security.Permissions (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Security.Principal.Windows (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.ServiceModel.Federation (1)
src\Common\src\System\SR.cs (1)
41return String.Format(resourceFormat, p1);
System.ServiceModel.Http (2)
src\Common\src\System\SR.cs (1)
41return String.Format(resourceFormat, p1);
System\ServiceModel\BasicHttpSecurity.cs (1)
24Fx.Assert(BasicHttpSecurityModeHelper.IsDefined(mode), string.Format("Invalid BasicHttpSecurityMode value: {0}.", mode.ToString()));
System.ServiceModel.Http.Tests (2)
ServiceModel\SecurityBindingElementTest.cs (2)
25Assert.True(securityBindingElement == null, string.Format("securityBindingElement should be null when BasicHttpSecurityMode is '{0}'", securityMode)); 27Assert.True(binding.CanBuildChannelFactory<IRequestChannel>(), string.Format("CanBuildChannelFactory should return true for BasicHttpSecurityMode:'{0}'", securityMode));
System.ServiceModel.NetFramingBase (1)
src\Common\src\System\SR.cs (1)
41return String.Format(resourceFormat, p1);
System.ServiceModel.NetNamedPipe (1)
src\Common\src\System\SR.cs (1)
41return String.Format(resourceFormat, p1);
System.ServiceModel.NetTcp (1)
src\Common\src\System\SR.cs (1)
41return String.Format(resourceFormat, p1);
System.ServiceModel.Primitives (7)
System\IdentityModel\Selectors\SecurityTokenRequirement.cs (1)
151throw Fx.Exception.Argument(propertyName, string.Format(SRP.SecurityTokenRequirementDoesNotContainProperty, propertyName));
System\ServiceModel\Channels\AddressingVersion.cs (1)
137return string.Format(_toStringFormat, Namespace);
System\ServiceModel\Channels\CommunicationObject.cs (2)
1001Contract.Assert(false, String.Format("Type '{0}' is required to override OnCloseAsync", GetType())); 1010Contract.Assert(false, String.Format("Type '{0}' is required to override OnOpenAsync", GetType()));
System\ServiceModel\EnvelopeVersion.cs (1)
124return string.Format(_toStringFormat, Namespace);
System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (1)
57throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument("authScheme", string.Format(SRP.HttpRequiresSingleAuthScheme, authScheme));
System\SRP.cs (1)
41return String.Format(resourceFormat, p1);
System.ServiceModel.Primitives.Tests (41)
Channels\CommunicationObjectTest.cs (27)
104String.Format("Expected final state to be 'Closed' but actual was '{0}", mco.State)); 189String.Format("CommunicationState after creation was '{0}' but expected 'Created'", 193String.Format("CommunicationState entering OnOpening was '{0}' but expected 'Opening'", 196String.Format("CommunicationState leaving OnOpening was '{0}' but expected 'Opening'", 200String.Format("CommunicationState entering OnOpen was '{0}' but expected 'Opening'", 203String.Format("CommunicationState leaving OnOpen was '{0}' but expected 'Opening'", 207String.Format("CommunicationState entering OnOpened was '{0}' but expected 'Opening'", 210String.Format("CommunicationState leaving OnOpened was '{0}' but expected 'Opened'", 214String.Format("CommunicationState entering OnClosing was '{0}' but expected 'Closing'", 217String.Format("CommunicationState leaving OnClosing was '{0}' but expected 'Closing'", 221String.Format("CommunicationState entering OnClose was '{0}' but expected 'Closing'", 224String.Format("CommunicationState leaving OnClose was '{0}' but expected 'Closing'", 228String.Format("CommunicationState entering OnClosed was '{0}' but expected 'Closing'", 231String.Format("CommunicationState leaving OnClosed was '{0}' but expected 'Closed'", 256String.Format("CommunicationState after creation was '{0}' but expected 'Created'", 260String.Format("CommunicationState entering OnOpening was '{0}' but expected 'Opening'", 263String.Format("CommunicationState leaving OnOpening was '{0}' but expected 'Opening'", 267String.Format("CommunicationState entering OnBeginOpen was '{0}' but expected 'Opening'", 270String.Format("CommunicationState leaving OnBeginOpen was '{0}' but expected 'Opening'", 274String.Format("CommunicationState entering OnOpened was '{0}' but expected 'Opening'", 277String.Format("CommunicationState leaving OnOpened was '{0}' but expected 'Opened'", 281String.Format("CommunicationState entering OnClosing was '{0}' but expected 'Closing'", 284String.Format("CommunicationState leaving OnClosing was '{0}' but expected 'Closing'", 288String.Format("CommunicationState entering OnBeginClose was '{0}' but expected 'Closing'", 291String.Format("CommunicationState leaving OnClose was '{0}' but expected 'Closing'", 295String.Format("CommunicationState entering OnClosed was '{0}' but expected 'Closing'", 298String.Format("CommunicationState leaving OnClosed was '{0}' but expected 'Closed'",
Channels\CustomBindingTest.cs (1)
35Assert.Fail(String.Format("Unexpected exception was caught: {0}", ex.ToString()));
Channels\CustomChannelTest.cs (6)
102String.Format("Expected factory's final state to be Closed but was '{0}'", factory.State)); 105String.Format("Expected channel's final state to be Closed but was '{0}'", ((ICommunicationObject)channel).State)); 199String.Format("Expected factory's final state to be Closed but was '{0}'", factory.State)); 202String.Format("Expected channel's final state to be Closed but was '{0}'", ((ICommunicationObject)channel).State)); 392String.Format("Expected factory's final state to be Closed but was '{0}'", factory.State)); 395String.Format("Expected channel's final state to be Closed but was '{0}'", ((ICommunicationObject)channel).State));
ServiceModel\MessageContractTest.4.4.0.cs (5)
214Assert.True(hasProperty, String.Format("Expected message property '{0}'", TestTypeConstants_4_4_0.MessageContract_Request_PropertyName)); 305Assert.True(hasHeader, String.Format("Expected header '{0}'", name)); 310errorBuilder.AppendLine(String.Format("---- Header[{0}] ----", i)); 311errorBuilder.AppendLine(String.Format("{0}", headerValues[i])); 328String.Format("The {0} element returned a null array", elementName));
ServiceModel\SynchronizedCollection.cs (2)
27Assert.True(coll.Contains(i), string.Format("coll Contains failed to find the value {0}.", i)); 73Assert.True(coll.Count == 0, string.Format("Clear operation failed!, expected: 0, actual {0}", coll.Count));
System.ServiceModel.Syndication (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.ServiceModel.UnixDomainSocket (1)
src\Common\src\System\SR.cs (1)
41return String.Format(resourceFormat, p1);
System.ServiceProcess.ServiceController (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Text.Encoding.CodePages (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Text.Encodings.Web (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Text.Json (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Text.Json.SourceGeneration (2)
JsonSourceGenerator.Emitter.cs (1)
1542string exceptionMessage = string.Format(ExceptionMessages.InvalidSerializablePropertyConfiguration, typeGenSpec.TypeRef.FullyQualifiedName);
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Text.RegularExpressions (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Text.RegularExpressions.Generator (2)
RegexGenerator.Emitter.cs (1)
5001select string.Format(format, i));
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Threading (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Threading.AccessControl (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Threading.Channels (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Threading.RateLimiting (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Threading.Tasks.Dataflow (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Threading.Tasks.Parallel (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Transactions.Local (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Windows.Controls.Ribbon (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
System.Windows.Extensions (1)
src\runtime\src\libraries\Common\src\System\SR.cs (1)
72return string.Format(resourceFormat, p1);
System.Windows.Forms (345)
System\Drawing\Design\UITypeEditor.cs (1)
70throw new NotSupportedException(string.Format(SR.ControlNotSupportedInTrimming, nameof(UITypeEditor)));
System\Resources\AssemblyNamesTypeResolutionService.cs (1)
156throw new ArgumentException(string.Format(SR.InvalidResXNoType, name));
System\Resources\ResXDataNode.cs (1)
618throw new TypeLoadException(string.Format(SR.TypeLoadExceptionShort, FileRefType));
System\Resources\ResXResourceReader.cs (3)
389throw new ArgumentException(string.Format(SR.InvalidResXFile, e.Message), e); 401throw new ArgumentException(string.Format(SR.InvalidResXFile, xmlEx.Message), xmlEx); 606throw new ArgumentException(string.Format(SR.InvalidResXResourceNoName, nodeInfo.ValueData));
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (1)
131throw new ArgumentException(string.Format(SR.AXDuplicateControl, GetNameForControl(control)), nameof(control));
System\Windows\Forms\ActiveX\AxHost.ConnectionPointCookie.cs (3)
39throw new InvalidCastException(string.Format(SR.AXNoSinkImplementation, eventInterface.Name)); 60throw new ArgumentException(string.Format(SR.AXNoEventInterface, eventInterface.Name)); 75throw new ArgumentException(string.Format(SR.AXNoConnectionPoint, eventInterface.Name));
System\Windows\Forms\ActiveX\AxHost.cs (41)
184throw new ThreadStateException(string.Format(SR.AXMTAThread, clsid)); 295add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseClick")); 303add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseDoubleClick")); 469add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackColorChanged")); 477add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackgroundImageChanged")); 485add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackgroundImageLayoutChanged")); 493add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BindingContextChanged")); 501add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "CursorChanged")); 512add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "EnabledChanged")); 520add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "FontChanged")); 528add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ForeColorChanged")); 536add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "RightToLeftChanged")); 544add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "TextChanged")); 555add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Click")); 563add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragDrop")); 571add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragEnter")); 579add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragOver")); 587add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragLeave")); 595add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "GiveFeedback")); 603add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "HelpRequested")); 611add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Paint")); 619add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "QueryContinueDrag")); 627add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "QueryAccessibilityHelp")); 638add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DoubleClick")); 646add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ImeModeChanged")); 657add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyDown")); 668add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyPress")); 679add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyUp")); 687add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Layout")); 698add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseDown")); 709add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseEnter")); 720add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseLeave")); 731add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseHover")); 742add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseMove")); 753add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseUp")); 764add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseWheel")); 772add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ChangeUICues")); 780add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "StyleChanged")); 1458throw new TargetInvocationException(string.Format(SR.AXNohWnd, GetType().Name), t); 1526throw new NotSupportedException(string.Format(SR.AXNohWnd, GetType().Name)); 1605throw new TargetInvocationException(string.Format(SR.AXNohWnd, GetType().Name), t);
System\Windows\Forms\ActiveX\AxHost.InvalidActiveXStateException.cs (3)
25ActiveXInvokeKind.MethodInvoke => string.Format(SR.AXInvalidMethodInvoke, _name), 26ActiveXInvokeKind.PropertyGet => string.Format(SR.AXInvalidPropertyGet, _name), 27ActiveXInvokeKind.PropertySet => string.Format(SR.AXInvalidPropertySet, _name),
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (4)
1041throw new NotSupportedException(string.Format(SR.ControlNotSupportedInTrimming, nameof(ActiveXImpl))); 1424throw new ArgumentException(string.Format(SR.AXNoConnectionPoint, eventInterface.Name)); 1441throw new NotSupportedException(string.Format(SR.ControlNotSupportedInTrimming, nameof(ActiveXImpl))); 1495throw new NotSupportedException(string.Format(SR.ControlNotSupportedInTrimming, nameof(ActiveXImpl)));
System\Windows\Forms\Application.cs (2)
1529throw new InvalidOperationException(string.Format(SR.Win32WindowAlreadyCreated, nameof(SetCompatibleTextRenderingDefault))); 1558throw new InvalidOperationException(string.Format(SR.Win32WindowAlreadyCreated, nameof(SetDefaultFont)));
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
823throw new NotSupportedException(string.Format(SR.COM2ReadonlyProperty, Name));
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (8)
289throw new ExternalException(string.Format(SR.TYPEINFOPROCESSORGetTypeAttrFailed, hr), (int)hr); 354throw new ExternalException(string.Format(SR.TYPEINFOPROCESSORGetRefTypeInfoFailed, hr), (int)hr); 368throw new ExternalException(string.Format(SR.TYPEINFOPROCESSORGetTypeAttrFailed, hr), (int)hr); 602throw new ExternalException(string.Format(SR.TYPEINFOPROCESSORGetTypeAttrFailed, hr), (int)hr); 699throw new ExternalException(string.Format(SR.TYPEINFOPROCESSORGetTypeAttrFailed, hr), (int)hr); 828throw new ExternalException(string.Format(SR.TYPEINFOPROCESSORGetTypeAttrFailed, hr), (int)hr); 898VT_USERDEFINED => throw new ArgumentException(string.Format(SR.COM2UnhandledVT, "VT_USERDEFINED")), 899_ => throw new ArgumentException(string.Format(SR.COM2UnhandledVT, ((int)vt).ToString(CultureInfo.InvariantCulture))),
System\Windows\Forms\Control.cs (4)
1567throw new Win32Exception(lastWin32Error, string.Format(SR.LoadDLLError, Libraries.Comctl32)); 2386throw new InvalidOperationException(string.Format(SR.IllegalCrossThreadCall, Name)); 5017throw new InvalidOperationException(string.Format(SR.ClosingWhileCreatingHandle, "Dispose")); 5119throw new InvalidOperationException(string.Format(SR.ClipboardOrDragDrop_CannotJsonSerializeDataObject, nameof(DoDragDrop)));
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (2)
248return (VARIANT)string.Format(SR.DataGridViewSortedAscendingAccessibleStatusFormat, owner.SortedColumn?.HeaderText); 250return (VARIANT)string.Format(SR.DataGridViewSortedDescendingAccessibleStatusFormat, owner.SortedColumn?.HeaderText);
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (9)
1012throw new ArgumentException(string.Format(SR.DataGridView_EmptyColor, "BackgroundColor")); 1014throw new ArgumentException(string.Format(SR.DataGridView_TransparentColor, "BackgroundColor")); 1240throw new ArgumentException(string.Format(SR.DataGridView_CustomCellBorderStyleInvalid, "CellBorderStyle")); 1457throw new ArgumentException(string.Format(SR.DataGridView_CustomCellBorderStyleInvalid, "ColumnHeadersBorderStyle")); 2648throw new ArgumentException(string.Format(SR.DataGridView_EmptyColor, nameof(GridColor))); 2650throw new ArgumentException(string.Format(SR.DataGridView_TransparentColor, nameof(GridColor))); 3254throw new ArgumentException(string.Format(SR.DataGridView_CustomCellBorderStyleInvalid, "RowHeadersBorderStyle")); 3759throw new InvalidOperationException(string.Format(SR.DataGridView_SelectionModeAndSortModeClash, (value).ToString())); 4970string.Format(
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (13)
87string.Format( 1695throw new ArgumentException(string.Format(SR.DataGridView_NeedColumnAutoSizingCriteria, "autoSizeColumnMode")); 1986throw new ArgumentException(string.Format(SR.DataGridView_NeedAutoSizingCriteria, "rowHeadersWidthSizeMode")); 2132throw new ArgumentException(string.Format(SR.DataGridView_NeedAutoSizingCriteria, "rowHeadersWidthSizeMode")); 2364throw new ArgumentException(string.Format(SR.DataGridView_NeedAutoSizingCriteria, "autoSizeRowsMode")); 6844throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 10778throw new InvalidOperationException(string.Format(SR.DataGridView_WeightSumCannotExceedLongMaxValue, ushort.MaxValue)); 10910throw new InvalidOperationException(string.Format(SR.DataGridView_WeightSumCannotExceedLongMaxValue, ushort.MaxValue)); 11159?? throw new InvalidOperationException(string.Format(SR.InvalidNullArgument, "e.Column")); 13528throw new InvalidOperationException(string.Format(SR.DataGridView_WeightSumCannotExceedLongMaxValue, ushort.MaxValue)); 14618: string.Format(SR.DataGridView_ErrorMessageText_WithException, e.Exception); 27455throw new ArgumentOutOfRangeException(nameof(width), width, string.Format(SR.DataGridView_SizeTooLarge, (UpperSize).ToString(CultureInfo.CurrentCulture))); 27460throw new ArgumentOutOfRangeException(nameof(height), height, string.Format(SR.DataGridView_SizeTooLarge, (UpperSize).ToString(CultureInfo.CurrentCulture)));
System\Windows\Forms\Controls\DataGridView\DataGridViewAdvancedBorderStyle.cs (7)
67throw new ArgumentException(string.Format(SR.DataGridView_AdvancedCellBorderStyleInvalid, "All")); 96throw new ArgumentException(string.Format(SR.DataGridView_AdvancedCellBorderStyleInvalid, "Bottom")); 141throw new ArgumentException(string.Format(SR.DataGridView_AdvancedCellBorderStyleInvalid, "Left")); 157throw new ArgumentException(string.Format(SR.DataGridView_AdvancedCellBorderStyleInvalid, "Left")); 197throw new ArgumentException(string.Format(SR.DataGridView_AdvancedCellBorderStyleInvalid, "Right")); 213throw new ArgumentException(string.Format(SR.DataGridView_AdvancedCellBorderStyleInvalid, "Right")); 243throw new ArgumentException(string.Format(SR.DataGridView_AdvancedCellBorderStyleInvalid, "Top"));
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (4)
351throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.DataGridViewBand_MinimumHeightSmallerThanOne, MinBandThickness)); 355throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.DataGridViewBand_MinimumWidthSmallerThanOne, MinBandThickness)); 407throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(ReadOnly))); 538throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(Selected)));
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonColumn.cs (1)
37throw new InvalidCastException(string.Format(SR.DataGridViewTypeColumn_WrongCellTemplateType, "System.Windows.Forms.DataGridViewButtonCell"));
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
2346throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedCell, "Size"));
System\Windows\Forms\Controls\DataGridView\DataGridViewCellCollection.cs (2)
125throw new ArgumentException(string.Format(SR.DataGridViewColumnCollection_ColumnNotFound, columnName), nameof(columnName)); 140throw new ArgumentException(string.Format(SR.DataGridViewColumnCollection_ColumnNotFound, columnName), nameof(columnName));
System\Windows\Forms\Controls\DataGridView\DataGridViewCellPaintingEventArgs.cs (1)
30throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewPaintPartsCombination, nameof(paintParts)), nameof(paintParts));
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (3)
957CheckState.Checked => string.Format(SR.DataGridViewCheckBoxCellCheckedStateDescription, cellName), 958CheckState.Unchecked => string.Format(SR.DataGridViewCheckBoxCellUncheckedStateDescription, cellName), 959_ => string.Format(SR.DataGridViewCheckBoxCellIndeterminateStateDescription, cellName),
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.DataGridViewCheckBoxCellAccessibleObject.cs (1)
155throw new InvalidOperationException(string.Format(SR.DataGridViewCellAccessibleObject_OwnerWrongType, Owner is null ? "null" : Owner.GetType().Name));
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (1)
38throw new InvalidCastException(string.Format(SR.DataGridViewTypeColumn_WrongCellTemplateType, "System.Windows.Forms.DataGridViewCheckBoxCell"));
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (2)
245throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.DataGridViewColumn_DisplayIndexTooLarge, int.MaxValue)); 892throw new ArgumentException(string.Format(SR.DataGridView_NeedColumnAutoSizingCriteria, "autoSizeColumnMode"));
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (12)
413throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 552throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 602throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 640throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 646throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter))); 680throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 686throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter))); 723throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 729throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter))); 796throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 802throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter))); 1028throw new ArgumentException(string.Format(SR.DataGridViewColumnCollection_ColumnNotFound, columnName), nameof(columnName));
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
77throw new InvalidOperationException(string.Format(SR.DataGridViewColumnHeaderCell_SortModeAndSortGlyphDirectionClash, (value).ToString()));
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (3)
323throw new ArgumentOutOfRangeException(nameof(DropDownWidth), value, string.Format(SR.DataGridViewComboBoxCell_DropDownWidthOutOfRange, 1)); 1359throw new ArgumentException(string.Format(SR.DataGridViewComboBoxCell_PropertyNotFound, displayMember)); 1390throw new ArgumentException(string.Format(SR.DataGridViewComboBoxCell_PropertyNotFound, valueMember));
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxColumn.cs (1)
75throw new InvalidCastException(string.Format(SR.DataGridViewTypeColumn_WrongCellTemplateType, "System.Windows.Forms.DataGridViewComboBoxCell"));
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (2)
121set => throw new InvalidOperationException(string.Format(SR.DataGridView_HeaderCellReadOnlyProperty, "ReadOnly")); 152set => throw new InvalidOperationException(string.Format(SR.DataGridView_HeaderCellReadOnlyProperty, "Selected"));
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (1)
45throw new InvalidCastException(string.Format(SR.DataGridViewTypeColumn_WrongCellTemplateType, "System.Windows.Forms.DataGridViewImageCell"));
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkColumn.cs (1)
85throw new InvalidCastException(string.Format(SR.DataGridViewTypeColumn_WrongCellTemplateType, "System.Windows.Forms.DataGridViewLinkCell"));
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (15)
98throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(DefaultCellStyle))); 112throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(Displayed))); 130throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(DividerHeight))); 183throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(Frozen))); 192throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(Frozen))); 220throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(Height))); 233throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(InheritedStyle))); 260throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(MinimumHeight))); 278throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(ReadOnly))); 295throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(Resizable))); 309throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(Selected))); 323throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(State))); 337throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertyGetOnSharedRow, nameof(Visible))); 346throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(Visible))); 1503throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewPaintPartsCombination, "paintParts"));
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
101return string.Format(SR.DataGridView_AccRowName, index.ToString(CultureInfo.CurrentCulture));
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (12)
883throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 933throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 939throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter))); 983throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 1042throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 1068throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 1074throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter))); 1093throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 1119throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 1125throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(excludeFilter))); 1144throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter))); 1240throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewElementStateCombination, nameof(includeFilter)));
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeightInfoNeededEventArgs.cs (1)
43throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.DataGridViewBand_MinimumHeightSmallerThanOne, DataGridViewBand.MinBandThickness));
System\Windows\Forms\Controls\DataGridView\DataGridViewRowPrePaintEventArgs.cs (1)
72throw new ArgumentException(string.Format(SR.DataGridView_InvalidDataGridViewPaintPartsCombination, nameof(value)), nameof(value));
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxColumn.cs (1)
28throw new InvalidCastException(string.Format(SR.DataGridViewTypeColumn_WrongCellTemplateType, "System.Windows.Forms.DataGridViewTextBoxCell"));
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (7)
186throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value))); 246throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value))); 269throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value))); 292throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value))); 315throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value))); 606string.Format(SR.DateTimePickerMaxDate, FormatDateTime(MaxDateTime))); 662string.Format(SR.DateTimePickerMinDate, FormatDateTime(MinimumDateTime)));
System\Windows\Forms\Controls\ListView\ColumnHeaderConverter.cs (1)
72throw new ArgumentException(string.Format(SR.NoDefaultConstructor, t.FullName));
System\Windows\Forms\Controls\ListView\ListView.cs (6)
739_defaultGroup ??= new ListViewGroup(string.Format(SR.ListViewGroupDefaultGroup, "1")) 3826throw new ArgumentException(string.Format(SR.OnlyOneControl, ch.Text), nameof(ch)); 4022throw new ArgumentException(string.Format(SR.OnlyOneControl, items[i].Text), nameof(items)); 4049throw new ArgumentException(string.Format(SR.OnlyOneControl, item.Text), nameof(items)); 4432? string.Format(SR.ListViewGroupCollapsedStateName, listViewGroup.Header) 4433: string.Format(SR.ListViewGroupExpandedStateName, listViewGroup.Header));
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (1)
39public ListViewGroup() : this(string.Format(SR.ListViewGroupDefaultHeader, s_nextHeader++))
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (1)
180throw new ArgumentException(string.Format(SR.OnlyOneControl, item.Text));
System\Windows\Forms\Controls\ListView\ListViewGroupItemCollection.cs (1)
68throw new ArgumentException(string.Format(SR.OnlyOneControl, item.Text), nameof(item));
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (2)
153throw new InvalidOperationException(string.Format(SR.ListViewItemAccessibilityObjectInvalidViewException, View.ToString())); 165throw new InvalidOperationException(string.Format(SR.ListViewItemAccessibilityObjectInvalidViewException, View.ToString()));
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemDetailsAccessibleObject.cs (2)
48throw new InvalidOperationException(string.Format(SR.ListViewItemAccessibilityObjectInvalidViewException, nameof(View.Details))); 75throw new InvalidOperationException(string.Format(SR.ListViewItemAccessibilityObjectInvalidViewException, nameof(View.Details)));
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemTileAccessibleObject.cs (2)
42throw new InvalidOperationException(string.Format(SR.ListViewItemAccessibilityObjectInvalidViewException, nameof(View.Tile))); 68throw new InvalidOperationException(string.Format(SR.ListViewItemAccessibilityObjectInvalidViewException, nameof(View.Tile)));
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemWithImageAccessibleObject.cs (2)
50throw new InvalidOperationException(string.Format(SR.ListViewItemAccessibilityObjectInvalidViewException, View.ToString())); 70throw new InvalidOperationException(string.Format(SR.ListViewItemAccessibilityObjectInvalidViewException, View.ToString()));
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarCellAccessibleObject.cs (1)
85return string.Format(SR.MonthCalendarWeekNumberDescription, weekNumber)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarRowAccessibleObject.cs (1)
136return string.Format(SR.MonthCalendarWeekNumberDescription, weekNumber);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarTodayLinkAccessibleObject.cs (1)
48=> string.Format(SR.MonthCalendarTodayButtonAccessibleName,
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarWeekNumberCellAccessibleObject.cs (1)
78public override string Name => string.Format(SR.MonthCalendarWeekNumberDescription, _weekNumber);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (4)
486throw new ArgumentException(string.Format(SR.MonthCalendarMaxSelCount, value.ToString("D")), nameof(value)); 910throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value)), nameof(value)); 931throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value)), nameof(value)); 952throw new ArgumentException(string.Format(SR.InvalidNullArgument, nameof(value)), nameof(value));
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
1738throw new ArgumentException(string.Format(SR.PropertyGridNoBitmap, tab.GetType().FullName)); 1743throw new ArgumentException(string.Format(SR.PropertyGridTabName, tab.GetType().FullName)); 3015string.Format(SR.PropertyGridPropertyValueSelectedFormat, changedItem.Value));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.HelpPaneAccessibleObject.cs (1)
63? string.Format(SR.PropertyGridHelpPaneAccessibleNameTemplate, target.AccessibilityObject.Name)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\MultiPropertyDescriptorGridEntry.cs (1)
275DesignerTransaction? transaction = host?.CreateTransaction(string.Format(SR.PropertyGridResetValue, PropertyName));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (3)
409SetPropertyValue(owner, value: null, reset: true, undoText: string.Format(SR.PropertyGridResetValue, PropertyName)); 570transaction = host?.CreateTransaction(undoText ?? string.Format(SR.PropertyGridSetValue, PropertyDescriptor.Name)); 847transaction = host.CreateTransaction(string.Format(
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
350throw new InvalidCastException(string.Format(SR.PropertyGridViewEditorCreatedInvalidObject, createType));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.PropertyGridViewAccessibleObject.cs (1)
91: string.Format(
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (3)
268throw new Win32Exception(lastWin32Error, string.Format(SR.LoadDLLError, Libraries.RichEdit41)); 1879throw new ArgumentOutOfRangeException(nameof(end), end, string.Format(SR.RichTextFindEndInvalid, end)); 1889throw new ArgumentException(string.Format(SR.RichTextFindEndInvalid, end));
System\Windows\Forms\Controls\TabControl\TabControl.ControlCollection.cs (1)
25throw new ArgumentException(string.Format(SR.TabControlInvalidTabPageType, value.GetType().Name));
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
493throw new ArgumentException(string.Format(SR.TabControlTabPageNotOnTabControl, value.GetType().FullName));
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (1)
52throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, string.Format(SR.TypedControlCollectionShouldBeOfType, nameof(ToolStrip))), control.GetType().Name);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowControlCollection.cs (2)
78throw new NotSupportedException(string.Format(SR.TypedControlCollectionShouldBeOfType, nameof(ToolStrip))); 210throw new NotSupportedException(string.Format(SR.TypedControlCollectionShouldBeOfType, nameof(ToolStrip)));
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (2)
282throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.TrackBarLargeChangeError, value)); 485throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.TrackBarSmallChangeError, value));
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (3)
55throw new ArgumentException(string.Format(SR.OnlyOneControl, value.Text), nameof(value)); 302throw new ArgumentException(string.Format(SR.OnlyOneControl, node.Text), nameof(node)); 438throw new ArgumentException(string.Format(SR.OnlyOneControl, node.Text), nameof(node));
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1287throw new ArgumentException(string.Format(SR.WebBrowserNavigateAbsoluteUri, "uri"));
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (43)
74throw new ThreadStateException(string.Format(SR.AXMTAThread, clsidString)); 940throw new TargetInvocationException(string.Format(SR.AXNohWnd, GetType().Name), t); 983throw new TargetInvocationException(string.Format(SR.AXNohWnd, GetType().Name), t); 1381add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackgroundImageLayoutChanged")); 1389add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Enter")); 1397add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Leave")); 1405add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseCaptureChanged")); 1413add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseClick")); 1421add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseDoubleClick")); 1429add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackColorChanged")); 1437add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BackgroundImageChanged")); 1445add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "BindingContextChanged")); 1453add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "CursorChanged")); 1461add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "EnabledChanged")); 1469add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "FontChanged")); 1477add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ForeColorChanged")); 1485add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "RightToLeftChanged")); 1493add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "TextChanged")); 1501add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Click")); 1509add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragDrop")); 1517add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragEnter")); 1525add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragOver")); 1533add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DragLeave")); 1541add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "GiveFeedback")); 1550add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "HelpRequested")); 1558add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Paint")); 1566add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "QueryContinueDrag")); 1574add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "QueryAccessibilityHelp")); 1582add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "DoubleClick")); 1590add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ImeModeChanged")); 1598add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyDown")); 1606add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyPress")); 1614add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "KeyUp")); 1622add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "Layout")); 1630add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseDown")); 1638add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseEnter")); 1646add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseLeave")); 1654add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseHover")); 1662add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseMove")); 1670add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseUp")); 1678add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "MouseWheel")); 1686add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "ChangeUICues")); 1694add => throw new NotSupportedException(string.Format(SR.AXAddInvalidEvent, "StyleChanged"));
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (1)
304throw new ArgumentException(string.Format(SR.AXDuplicateControl, GetNameForControl(ctl)), nameof(ctl));
System\Windows\Forms\DataBinding\Binding.BindToObject.cs (1)
223throw new ArgumentException(string.Format(SR.ListBindingBindField, dataField), "dataMember");
System\Windows\Forms\DataBinding\Binding.cs (2)
528throw new ArgumentException(string.Format(SR.ListBindingBindProperty, PropertyName), nameof(PropertyName)); 533throw new ArgumentException(string.Format(SR.ListBindingBindPropertyReadOnly, PropertyName), nameof(PropertyName));
System\Windows\Forms\DataBinding\BindingContext.cs (2)
267?? throw new ArgumentException(string.Format(SR.RelatedListManagerChild, dataField)); 307throw new ArgumentException(string.Format(SR.DataBindingCycle, binding.PropertyName), nameof(propBinding));
System\Windows\Forms\DataBinding\BindingSource.cs (3)
651?? throw new ArgumentException(string.Format(SR.DataSourceDataMemberPropNotFound, propertyName)); 1570throw new InvalidOperationException(string.Format( 1609throw new InvalidOperationException(string.Format(
System\Windows\Forms\DataBinding\CurrencyManager.cs (3)
188throw new ArgumentException(string.Format(SR.ListManagerSetDataSource, tempList.GetType().FullName), nameof(dataSource)); 258throw new IndexOutOfRangeException(string.Format(SR.ListManagerNoValue, index.ToString(CultureInfo.CurrentCulture))); 267throw new IndexOutOfRangeException(string.Format(SR.ListManagerNoValue, index.ToString(CultureInfo.CurrentCulture)));
System\Windows\Forms\DataBinding\ListBindingHelper.cs (2)
49?? throw new ArgumentException(string.Format(SR.DataSourceDataMemberPropNotFound, dataMember)); 187listAccessors2[0] = dmProp ?? throw new ArgumentException(string.Format(SR.DataSourceDataMemberPropNotFound, dataMember));
System\Windows\Forms\DataBinding\RelatedCurrencyManager.cs (1)
38throw new ArgumentException(string.Format(SR.RelatedListManagerChild, dataField));
System\Windows\Forms\DataBinding\RelatedPropertyManager.cs (1)
27throw new ArgumentException(string.Format(SR.RelatedListManagerChild, dataField));
System\Windows\Forms\Design\ComponentEditorForm.ComponentEditorPageSite.cs (1)
43throw new TargetInvocationException(string.Format(SR.ExceptionCreatingCompEditorControl, e), e.InnerException);
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
226caption = string.Format(SR.ComponentEditorFormProperties, site.Name);
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (2)
692string.Format(SR.FileDialogFileNotFound, fileName), 730throw new ThreadStateException(string.Format(SR.DebuggingExceptionOnly, SR.ThreadMustBeSTA));
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (1)
450throw new ThreadStateException(string.Format(SR.DebuggingExceptionOnly, SR.ThreadMustBeSTA));
System\Windows\Forms\Dialogs\CommonDialogs\OpenFileDialog.cs (1)
124throw new InvalidOperationException(string.Format(SR.FileDialogInvalidFileName, FileName));
System\Windows\Forms\Dialogs\CommonDialogs\SaveFileDialog.cs (3)
89string.Format(SR.FileDialogCreatePrompt, fileName), 101string.Format(SR.FileDialogOverwritePrompt, fileName), 150throw new InvalidOperationException(string.Format(SR.FileDialogInvalidFileName, FileName));
System\Windows\Forms\Dialogs\MessageBox.cs (1)
470throw new Win32Exception(lastWin32Error, string.Format(SR.LoadDLLError, Libraries.Shell32));
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (5)
217throw new InvalidOperationException(string.Format(SR.IllegalCrossThreadCall, nameof(TaskDialog))); 553throw new InvalidOperationException(string.Format(SR.TaskDialogInstanceAlreadyShown, nameof(TaskDialog))); 615throw new InvalidOperationException(string.Format( 1217throw new InvalidOperationException(string.Format( 1641throw new InvalidOperationException(string.Format(
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogPage.cs (1)
699throw new InvalidOperationException(string.Format(
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (2)
159messageText = string.Format(messageFormat, Trim(messageText)); 243Text = string.Format(SR.ExDlgCaption2, activeForm.Text);
System\Windows\Forms\Form.cs (12)
3248throw new InvalidOperationException(string.Format(SR.ClosingWhileCreatingHandle, "Close")); 5479throw new InvalidOperationException(string.Format(SR.OwnsSelfOrOwner, nameof(Show))); 5484throw new InvalidOperationException(string.Format(SR.ShowDialogOnVisible, nameof(Show))); 5489throw new InvalidOperationException(string.Format(SR.ShowDialogOnDisabled, nameof(Show))); 5494throw new InvalidOperationException(string.Format(SR.ShowDialogOnNonTopLevel, nameof(Show))); 5525throw new ArgumentException(string.Format(SR.OwnsSelfOrOwner, nameof(Show)), nameof(owner)); 5700throw new ArgumentException(string.Format(SR.OwnsSelfOrOwner, nameof(ShowDialog)), nameof(owner)); 5705throw new InvalidOperationException(string.Format(SR.ShowDialogOnVisible, nameof(ShowDialog))); 5710throw new InvalidOperationException(string.Format(SR.ShowDialogOnDisabled, nameof(ShowDialog))); 5715throw new InvalidOperationException(string.Format(SR.ShowDialogOnNonTopLevel, nameof(ShowDialog))); 5720throw new InvalidOperationException(string.Format(SR.ShowDialogOnModal, nameof(ShowDialog))); 5779throw new ArgumentException(string.Format(SR.OwnsSelfOrOwner, nameof(ShowDialog)), nameof(owner));
System\Windows\Forms\Help\Help.cs (1)
199Uri? file = Resolve(url) ?? throw new ArgumentException(string.Format(SR.HelpInvalidURL, url), nameof(url));
System\Windows\Forms\ImageIndexConverter.cs (1)
97throw new NotSupportedException(string.Format(SR.ControlNotSupportedInTrimming, nameof(ImageIndexConverter)));
System\Windows\Forms\Input\Cursor.cs (3)
41throw new Win32Exception(string.Format(SR.FailedToLoadCursor, Marshal.GetLastWin32Error())); 61throw new ArgumentException(string.Format(SR.InvalidGDIHandle, (typeof(Cursor)).Name), nameof(handle)); 430throw new Win32Exception(string.Format(SR.FailedToLoadCursor, Marshal.GetLastWin32Error()));
System\Windows\Forms\Input\InputLanguageChangedEventArgs.cs (1)
20?? throw new ArgumentException(string.Format(SR.InputLanguageCultureNotFound, culture), nameof(culture));
System\Windows\Forms\Input\InputLanguageChangingEventArgs.cs (1)
21?? throw new ArgumentException(string.Format(SR.InputLanguageCultureNotFound, culture), nameof(culture));
System\Windows\Forms\Input\KeysConverter.cs (1)
91throw new InvalidOperationException(string.Format(SR.ResourceValueNotFound, resourceName));
System\Windows\Forms\Internal\TypedControlCollection.cs (1)
48throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, string.Format(SR.TypedControlCollectionShouldBeOfType, _typeOfControl.Name)), value.GetType().Name);
System\Windows\Forms\Layout\LayoutEngine.cs (1)
14throw new NotSupportedException(string.Format(SR.LayoutEngineUnsupportedType, obj.GetType()));
System\Windows\Forms\MDI\MDIWindowDialog.cs (1)
88throw new NotSupportedException(string.Format(SR.ControlNotSupportedInTrimming, nameof(MdiWindowDialog)));
System\Windows\Forms\OLE\DataObjectExtensions.cs (1)
17throw new NotSupportedException(string.Format(
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutStyleCollection.cs (1)
143throw new ArgumentException(string.Format(SR.OnlyOneControl, style.GetType().Name), nameof(style));
System\Windows\Forms\Printing\PrintDialog.cs (6)
275throw new ArgumentException(string.Format(SR.PDpageOutOfRange, "FromPage")); 281throw new ArgumentException(string.Format(SR.PDpageOutOfRange, "ToPage")); 286throw new ArgumentException(string.Format(SR.PDpageOutOfRange, "FromPage")); 389throw new ArgumentException(string.Format(SR.PDpageOutOfRange, "FromPage")); 395throw new ArgumentException(string.Format(SR.PDpageOutOfRange, "ToPage")); 400throw new ArgumentException(string.Format(SR.PDpageOutOfRange, "FromPage"));
System\Windows\Forms\Rendering\GdiCache.cs (1)
73throw new InvalidOperationException(string.Format(SR.InvalidHdcType, type));
System\Windows\Forms\SendKeys\SendKeys.cs (6)
406throw new ArgumentException(string.Format(SR.InvalidSendKeysString, keys)); 516throw new ArgumentException(string.Format(SR.InvalidSendKeysKeyword, keys[(i + 1)..j])); 526throw new ArgumentException(string.Format(SR.InvalidSendKeysString, keys)); 537throw new ArgumentException(string.Format(SR.InvalidSendKeysString, keys)); 548throw new ArgumentException(string.Format(SR.InvalidSendKeysString, keys)); 590throw new ArgumentException(string.Format(SR.InvalidSendKeysString, keys));
System\Windows\Forms\ToolTip\ToolTip.cs (1)
246throw new ArgumentException(string.Format(SR.ToolTipEmptyColor, nameof(ForeColor)), nameof(value));
System.Windows.Forms.Analyzers (1)
System\Windows\Forms\Analyzers\Diagnostics\DiagnosticDescriptorHelper.cs (1)
26string.Format(DiagnosticIDs.UrlFormat, id.ToLowerInvariant()),
System.Windows.Forms.Analyzers.CSharp (1)
System\Windows\Forms\CSharp\Generators\ApplicationConfiguration\ProjectFileReader.FontConverter.cs (1)
131_ => throw new ArgumentException(string.Format(SR.InvalidArgumentValueFontConverter, units), nameof(units)),
System.Windows.Forms.Design (133)
System\ComponentModel\Design\BinaryEditor.BinaryUI.cs (1)
121RTLAwareMessageBox.Show(null, string.Format(SR.BinaryEditorFileError, x.Message),
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (4)
59Text = string.Format(SR.CollectionEditorCaption, GetCollectionItemTypeNameForCaption(CollectionItemType)); 878_propertiesLabel.Text = string.Format(SR.CollectionEditorProperties, GetDisplayText((ListItem?)_listBox.SelectedItem)); 911throw new InvalidOperationException(string.Format(SR.CollectionEditorCantRemoveItem, GetDisplayText(item))); 1069_propertiesLabel.Text = string.Format(SR.CollectionEditorProperties, GetDisplayText((ListItem)_listBox.SelectedItem));
System\ComponentModel\Design\CollectionEditor.cs (1)
244transaction = host?.CreateTransaction(string.Format(SR.CollectionEditorUndoBatchDesc, CollectionItemType.Name));
System\ComponentModel\Design\ComponentDesigner.cs (1)
291t = host.CreateTransaction(string.Format(SR.ComponentDesignerAddEvent, defaultEvent.Name));
System\ComponentModel\Design\DesignerActionMethodItem.cs (1)
120throw new InvalidOperationException(string.Format(SR.DesignerActionPanel_CouldNotFindMethod, MemberName));
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
46ActionPanel.ShowError(string.Format(SR.DesignerActionPanel_ErrorActivatingDropDown, ex.Message));
System\ComponentModel\Design\DesignerActionUI.cs (3)
340string.Format(SR.DesignerActionPanel_DefaultPanelTitle, behaviorWithPanelToRegen.RelatedComponent.GetType().Name), 708_designerActionHost.AccessibleName = string.Format(SR.DesignerActionPanel_DefaultPanelTitle, relatedComponent.GetType().Name); 709panel.AccessibleName = string.Format(SR.DesignerActionPanel_DefaultPanelTitle, relatedComponent.GetType().Name);
System\ComponentModel\Design\DesignerHost.cs (5)
248throw new InvalidOperationException(string.Format(SR.DesignerHostNoTopLevelDesigner, component.GetType().FullName)) 348e = new InvalidOperationException(string.Format(SR.DesignSurfaceFatalError, e), e); 957throw new InvalidOperationException(string.Format(SR.DesignerHostFailedComponentCreate, componentType.Name)) 996throw new InvalidOperationException(string.Format(SR.DesignerHostCantDestroyInheritedComponent, name)) 1010using (t = ((IDesignerHost)this).CreateTransaction(string.Format(SR.DesignerHostDestroyComponentTransaction, name)))
System\ComponentModel\Design\DesignerHost.Site.cs (1)
241throw new InvalidOperationException(string.Format(SR.DesignerHostDuplicateName, value))
System\ComponentModel\Design\DesignSurfaceServiceContainer.cs (1)
46throw new InvalidOperationException(string.Format(SR.DesignSurfaceServiceIsFixed, serviceType.Name));
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (2)
136throw new InvalidOperationException(string.Format(SR.EventBindingServiceEventReadOnly, Name)) 182throw new InvalidOperationException(string.Format(SR.EventBindingServiceMissingService, nameof(IDictionaryService)))
System\ComponentModel\Design\ExceptionCollection.cs (1)
22throw new ArgumentException(string.Format(SR.ExceptionCollectionInvalidArgument, nameof(Exception)), nameof(exceptions));
System\ComponentModel\Design\ExtenderProviderService.cs (1)
36throw new ArgumentException(string.Format(SR.ExtenderProviderServiceDuplicateProvider, provider), nameof(provider));
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (1)
372throw new InvalidOperationException(string.Format(SR.BasicDesignerLoaderMissingService, typeof(T).Name))
System\ComponentModel\Design\Serialization\CodeDomComponentSerializationService.CodeDomSerializationStore.ComponentListCodeDomSerializer.cs (3)
299manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerTypeNotFound, typeName), manager)); 309string.Format(SR.SerializerNoSerializerForComponent, type.FullName), manager)); 395manager.ReportError(new CodeDomSerializerException(string.Format(SR.CodeDomComponentSerializationServiceDeserializationError, name), manager));
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (5)
282throw new InvalidOperationException(string.Format(SR.CodeDomDesignerLoaderSerializerTypeNotFirstType, typeDeclaration.Name)); 300throw new InvalidOperationException(string.Format(SR.CodeDomDesignerLoaderSerializerTypeNotFirstType, typeDeclaration.Name)); 353ex = new InvalidOperationException(string.Format(SR.CodeDomDesignerLoaderNoRootSerializerWithFailures, builder)) 1209Exception ex = new ArgumentException(string.Format(SR.CodeDomDesignerLoaderInvalidIdentifier, name)) 1252Exception ex = new ArgumentException(string.Format(SR.CodeDomDesignerLoaderDupComponentName, name))
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.cs (1)
76?? throw new NotSupportedException(string.Format(SR.LocalizationProviderMissingService, nameof(IExtenderProviderService)));
System\ComponentModel\Design\Serialization\CodeDomSerializer.cs (1)
254throw new NotSupportedException(string.Format(SR.SerializerMemberTypeNotSerializable, member.GetType().FullName));
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (14)
131Error(manager, string.Format(SR.TypeNotFoundInTargetFramework, instance.GetType().FullName), SR.SerializerUndeclaredName); 156Error(manager, string.Format(SR.TypeNotFoundInTargetFramework, type.FullName), SR.SerializerUndeclaredName); 317Error(manager, string.Format(SR.TypeNotFoundInTargetFramework, type.FullName), SR.SerializerUndeclaredName); 765Error(manager, string.Format(SR.SerializerTypeNotFound, objectCreateEx.CreateType.BaseType), SR.SerializerTypeNotFound); 775Error(manager, string.Format(SR.SerializerUndeclaredName, argumentReferenceEx.ParameterName), SR.SerializerUndeclaredName); 796Error(manager, string.Format(SR.SerializerUndeclaredName, fieldReferenceEx.FieldName), SR.SerializerUndeclaredName); 830Error(manager, string.Format(SR.SerializerUndeclaredName, fieldReferenceEx.FieldName), SR.SerializerUndeclaredName); 837Error(manager, string.Format(SR.SerializerFieldTargetEvalFailed, fieldReferenceEx.FieldName), SR.SerializerFieldTargetEvalFailed); 924Error(manager, string.Format(SR.SerializerUndeclaredName, variableReferenceEx.VariableName), SR.SerializerUndeclaredName); 1009Error(manager, string.Format(SR.SerializerTypeNotFound, arrayCreateEx.CreateType.BaseType), SR.SerializerTypeNotFound); 1150Error(manager, string.Format(SR.SerializerTypeNotFound, type), SR.SerializerTypeNotFound); 2414manager.ReportError(string.Format(SR.SerializerLostStatements, valueName)); 2420manager.ReportError(string.Format(SR.SerializerNoSerializerForComponent, value is null ? "(null)" : value.GetType().FullName)); 2761manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerUndeclaredName, variableReferenceEx.VariableName), manager));
System\ComponentModel\Design\Serialization\CollectionCodeDomSerializer.cs (1)
392manager.ReportError(string.Format(SR.SerializerInvalidArrayRank, array.Rank.ToString(CultureInfo.InvariantCulture)));
System\ComponentModel\Design\Serialization\DesignerSerializationManager.cs (2)
751Exception ex = new SerializationException(string.Format(SR.SerializationManagerDuplicateComponentDecl, name)) 931throw new ArgumentException(string.Format(SR.SerializationManagerNameInUse, name), nameof(name));
System\ComponentModel\Design\Serialization\PropertyMemberCodeDomSerializer.cs (1)
217manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerNoSerializerForComponent, property.PropertyType.FullName), manager));
System\ComponentModel\Design\Serialization\ResourceCodeDomSerializer.SerializationResourceManager.cs (1)
262? new SerializationException(string.Format(SR.SerializerResourceExceptionInvariant, message), e)
System\ComponentModel\Design\Serialization\TypeCodeDomSerializer.cs (4)
71Error(manager, string.Format(SR.SerializerTypeNotFound, baseTypeName), SR.SerializerTypeNotFound); 76Error(manager, string.Format(SR.SerializerTypeAbstract, baseType.FullName), SR.SerializerTypeAbstract); 280manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerTypeNotFound, typeName), manager)); 296manager.ReportError(new CodeDomSerializerException(string.Format(SR.SerializerNoSerializerForComponent, type.FullName), manager));
System\ComponentModel\Design\ToolStripContainerActionList.cs (1)
144DesignerTransaction? changeParent = _designerHost.CreateTransaction(string.Format(SR._0_reparent_controls_transaction, nameof(ToolStripContainer)));
System\ComponentModel\Design\UndoEngine.cs (4)
288Exception ex = new InvalidOperationException(string.Format(SR.UndoEngineMissingService, serviceType.Name)) 338name = string.Format(SR.UndoEngineComponentAdd1, GetName(e.Component, true)); 382name = string.Format(SR.UndoEngineComponentChange1, GetName(e.Component, true)); 430name = string.Format(SR.UndoEngineComponentRemove1, GetName(e.Component, true));
System\Resources\Tools\StronglyTypedResourceBuilder.cs (4)
339throw new ArgumentException(string.Format(SR.InvalidIdentifier, className)); 654commentString = string.Format(SR.StringPropertyTruncatedComment, commentString[..DocCommentLengthThreshold]); 767text = string.Format(SR.StringPropertyComment, valueAsString); 775text = string.Format(SR.NonStringPropertyComment, typeName);
System\Windows\Forms\Design\BaseContextMenuStrip.cs (1)
283Text = string.Format(SR.ToolStripSelectMenuItem, compName);
System\Windows\Forms\Design\Behavior\DesignerActionBehavior.cs (1)
64dap.UpdateTasks(lists, [], string.Format(SR.DesignerActionPanel_DefaultPanelTitle, relatedComponent.GetType().Name), null);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (2)
371transDesc = string.Format(performCopy ? SR.BehaviorServiceCopyControl : SR.BehaviorServiceMoveControl, name); 375transDesc = string.Format(performCopy ? SR.BehaviorServiceCopyControls : SR.BehaviorServiceMoveControls, _dragComponents.Length);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (2)
245locString = string.Format(SR.BehaviorServiceResizeControl, name); 249locString = string.Format(SR.BehaviorServiceResizeControls, _resizeComponents.Length);
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (2)
203return string.Format( 208return string.Format(
System\Windows\Forms\Design\CommandSet.CommandSetItem.cs (1)
185_uiService?.ShowError(e, string.Format(SR.CommandSetError, e.Message));
System\Windows\Forms\Design\CommandSet.cs (12)
778? host.CreateTransaction(string.Format(SR.DragDropMoveComponents, SelectionService.SelectionCount)) 779: host.CreateTransaction(string.Format(SR.DragDropMoveComponent, comp.Site?.Name)); 984trans = host?.CreateTransaction(string.Format(SR.CommandSetAlignByPrimary, comps.Count)); 1132trans = host.CreateTransaction(string.Format(SR.CommandSetAlignToGrid, selectedComponents.Count)); 1256? string.Format(SR.WindowsFormsCommandCenterX, selectedComponents.Count) 1257: string.Format(SR.WindowsFormsCommandCenterY, selectedComponents.Count); 1468trans = host.CreateTransaction(string.Format(SR.CommandSetCutMultiple, cutCount)); 1590string desc = string.Format(SR.CommandSetDelete, comps.Count); 2315trans = host?.CreateTransaction(string.Format(SR.CommandSetSize, selectedObjects.Length)); 2394trans = host.CreateTransaction(string.Format(SR.CommandSetSizeToGrid, selectedObjects.Length)); 2478trans = host.CreateTransaction(string.Format(SR.CommandSetPaste, 0)); 2531trans = host.CreateTransaction(string.Format(SR.CommandSetFormatSpacing, selectedObjects.Length));
System\Windows\Forms\Design\ComponentTray.cs (1)
2484trans = host.CreateTransaction(string.Format(SR.WindowsFormsAddEvent, defaultEvent.Name));
System\Windows\Forms\Design\ControlCommandSet.cs (5)
597trans = host.CreateTransaction(string.Format(SR.DragDropSizeComponents, selSvc.SelectionCount)); 601trans = host.CreateTransaction(string.Format(SR.DragDropSizeComponent, comp.Site.Name)); 859trans = host.CreateTransaction(string.Format(SR.CommandSetLockControls, components.Count)); 992batchString = string.Format(SR.CommandSetBringToFront, selectedComponents.Length); 996batchString = string.Format(SR.CommandSetSendToBack, selectedComponents.Length);
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (3)
872errorString = string.Format(SR.DataGridViewDuplicateColumnName, name); 880errorString = string.Format(SR.DesignerHostDuplicateName, name); 889errorString = string.Format(SR.CodeDomDesignerLoaderInvalidIdentifier, name);
System\Windows\Forms\Design\DataGridViewDesigner.DataGridViewChooseDataSourceActionList.cs (1)
50DesignerTransaction? transaction = host?.CreateTransaction(string.Format(SR.DataGridViewChooseDataSourceTransactionString, dataGridView.Name));
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1277DesignerTransaction? trans = _designerHost.CreateTransaction(string.Format(SR.DesignerBatchCreateTool, uniqueSiteName));
System\Windows\Forms\Design\DocumentDesigner.AxToolboxItem.cs (3)
249?? throw new ArgumentException(string.Format(SR.AXNotRegistered, controlKey)); 317throw new ArgumentException(string.Format(SR.AXNotRegistered, controlKey)); 335throw new ArgumentException(string.Format(SR.AXNotRegistered, controlKey));
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (2)
346return string.Format(performCopy ? SR.BehaviorServiceCopyControl : SR.BehaviorServiceMoveControl, name); 349return string.Format(performCopy ? SR.BehaviorServiceCopyControls : SR.BehaviorServiceMoveControls, _dragControls.Count);
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (1)
231trans = host.CreateTransaction(string.Format(SR.DragDropMoveComponents, _components.Length));
System\Windows\Forms\Design\OleDragDropHandler.cs (2)
155trans = host?.CreateTransaction(string.Format(SR.DesignerBatchCreateTool, tool)); 524trans = host.CreateTransaction(string.Format(SR.DragDropDragComponents, components.Length));
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
1276ReParentControls(Control, selectedControls, string.Format(SR.ParentControlDesignerLassoShortcutRedo, Control.Site.Name), host);
System\Windows\Forms\Design\SelectionUIService.cs (7)
254transactionName = string.Format(SR.DragDropMoveComponents, objects.Length); 271transactionName = string.Format(SR.DragDropMoveComponent, name); 278transactionName = string.Format(SR.DragDropSizeComponents, objects.Length); 295transactionName = string.Format(SR.DragDropSizeComponent, name); 300transactionName = string.Format(SR.DragDropDragComponents, objects.Length); 1117trans = _host.CreateTransaction(string.Format(SR.DragDropMoveComponents, components.Length)); 1123trans = _host.CreateTransaction(string.Format(SR.DragDropMoveComponent, comp.Site!.Name));
System\Windows\Forms\Design\TabControlDesigner.cs (2)
123throw new ArgumentException(string.Format(SR.TabControlInvalidTabPageType, tool.DisplayName)); 233t = host.CreateTransaction(string.Format(SR.TabControlAddTab, Component.Site.Name));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (8)
66throw new ArgumentException(string.Format(SR.TableLayoutPanelDesignerInvalidColumnRowCount, "RowCount")); 82throw new ArgumentException(string.Format(SR.TableLayoutPanelDesignerInvalidColumnRowCount, "ColumnCount")); 505trans = host.CreateTransaction(string.Format(SR.BehaviorServiceCopyControl, control.Site.Name)); 552trans = host.CreateTransaction(string.Format(SR.BehaviorServiceMoveControl, control.Site.Name)); 1625string.Format(isRow 1740using DesignerTransaction t = host.CreateTransaction(string.Format( 1863using DesignerTransaction t = host.CreateTransaction(string.Format( 1960using DesignerTransaction t = host.CreateTransaction(string.Format(SR.TableLayoutPanelDesignerChangeSizeTypeUndoUnit, Table.Site.Name));
System\Windows\Forms\Design\ToolStripDesigner.cs (3)
527DesignerTransaction outerTransaction = _host.CreateTransaction(string.Format(SR.ToolStripAddingItem, t.Name)); 1867transDesc = string.Format(copy ? SR.BehaviorServiceCopyControl : SR.BehaviorServiceMoveControl, name); 1871transDesc = string.Format(copy ? SR.BehaviorServiceCopyControls : SR.BehaviorServiceMoveControls, dragComponents.Count);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (2)
666transDesc = string.Format(copy ? SR.BehaviorServiceCopyControl : SR.BehaviorServiceMoveControl, name); 670transDesc = string.Format(copy ? SR.BehaviorServiceCopyControls : SR.BehaviorServiceMoveControls, dragComponents.Count);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
2654transDesc = string.Format(copy ? SR.BehaviorServiceCopyControl : SR.BehaviorServiceMoveControl, name); 2658transDesc = string.Format(copy ? SR.BehaviorServiceCopyControls : SR.BehaviorServiceMoveControls, dragComponents.Count);
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (2)
451_label2.Text = string.Format(SR.CollectionEditorProperties, _treeView1.SelectedNode.Text); 488_label2.Text = string.Format(SR.CollectionEditorProperties, node.Name.ToString());
System.Windows.Forms.Primitives (4)
System\ServiceExtensions.cs (1)
88?? throw new InvalidOperationException(string.Format(SR.General_MissingService, typeof(TInterface).FullName))
System\Windows\Forms\Internals\ScaleHelper.DpiAwarenessScope.cs (3)
64throw new Win32Exception(Marshal.GetLastWin32Error(), string.Format(SR.Win32SetThreadsDpiHostingBehaviorFailed, behavior)); 79throw new Win32Exception(Marshal.GetLastWin32Error(), string.Format(SR.Win32SetThreadsDpiHostingBehaviorFailed, _originalDpiHostingBehavior)); 85throw new Win32Exception(Marshal.GetLastWin32Error(), string.Format(SR.Win32SetThreadsDpiContextFailed, _originalDpiAwarenessContext));
System.Windows.Input.Manipulations (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
System.Xaml (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
UIAutomationClient (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
UIAutomationClientSideProviders (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
UIAutomationProvider (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
UIAutomationTypes (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);
UnitTests.Common (10)
TestHelpers.cs (10)
106errorBuilder.AppendLine(String.Format("Unexpected exception was caught: {0}", ex.ToString())); 121string prefix = String.Format(" Contract type: {0}", expectedType); 379errorBuilder.AppendLine(String.Format("AddBindingParameters {1}", errorMessage)); 383errorBuilder.AppendLine(String.Format("A parameter passed into the AddBindingParameters method was null/nThe null parameter is: {0}", typeof(OperationDescription).ToString())); 387errorBuilder.AppendLine(String.Format("A parameter passed into the AddBindingParameters method was null/nThe null parameter is: {0}", typeof(BindingParameterCollection).ToString())); 398errorBuilder.AppendLine(String.Format("ApplyClientBehavior {1}", errorMessage)); 402errorBuilder.AppendLine(String.Format("A parameter passed into the ApplyClientBehavior method was null/nThe null parameter is: {0}", typeof(OperationDescription).ToString())); 406errorBuilder.AppendLine(String.Format("A parameter passed into the ApplyClientBehavior method was null/nThe null parameter is: {0}", typeof(ClientOperation).ToString())); 423errorBuilder.AppendLine(String.Format("Validate {1}", errorMessage)); 428errorBuilder.AppendLine(String.Format("The parameter passed into the Validate method was null/nThe null parameter is: {0}", typeof(OperationDescription).ToString()));
WindowsFormsIntegration (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Common\src\System\SR.cs (1)
85return string.Format(resourceFormat, p1);