110 references to AppendFormat
dotnet-svcutil-lib (8)
FrameworkFork\Microsoft.Xml\Xml\Cache\XPathNodeInfoAtom.cs (1)
495bldr.AppendFormat("{0,4}: ", i);
FrameworkFork\Microsoft.Xml\Xml\schema\ContentValidator.cs (1)
1647bb.AppendFormat(" {0:000} ", transitionTable[i][j]);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (4)
723_sb.AppendFormat("<{0}", name); 756_sb.AppendFormat("</{0}>", ElementName); 788_sb.AppendFormat("</{0}>", ElementName); 836_sb.AppendFormat("</{0}>", elementName);
FrameworkFork\System.ServiceModel\System\ServiceModel\ExceptionDetail.cs (2)
84sb.AppendFormat(" ----> {0}", this.InnerException.ToStringHelper(true)); 93sb.AppendFormat("\n {0}\n", SRServiceModel.SFxExceptionDetailEndOfInner);
Infrastructure.Common (2)
CertificateManager.cs (2)
119exceptionString.AppendFormat("{0}This is usually due to permissions issues if writing to the LocalMachine location", Environment.NewLine); 120exceptionString.AppendFormat("{0}Try running the test with elevated or superuser permissions.", Environment.NewLine);
Microsoft.Build (2)
BackEnd\Components\Scheduler\Scheduler.cs (1)
2414utilitzationPercentages.AppendFormat("{0,-5:###.0} ", utilizationPercent * 100);
ConversionUtilities.cs (1)
68sb.AppendFormat("{0:X2}", b);
Microsoft.Build.Framework (1)
Telemetry\ActivityExtensions.cs (1)
97sb.AppendFormat("{0:x2}", b);
Microsoft.Build.UnitTests.Shared (1)
ObjectModelHelpers.cs (1)
1712sb.AppendFormat("<ProjectReference Include=\"{0}.proj\" />", projectReference);
Microsoft.CodeAnalysis (5)
TreeDumper.cs (5)
88_sb.AppendFormat(": {0}", DumperString(node.Value)); 153_sb.AppendFormat("<{0} />", node.Text); 160_sb.AppendFormat("<{0}>", node.Text); 165_sb.AppendFormat("{0}", DumperString(node.Value)); 181_sb.AppendFormat("</{0}>", node.Text);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringEscapeEncoder.cs (1)
46builder.AppendFormat("{0:X2}", (int)text[index]);
Microsoft.CodeAnalysis.CSharp (11)
Binder\Semantics\Conversions\UserDefinedConversionResult.cs (1)
84sb.AppendFormat("Summary: {0}\n", Kind);
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (8)
364sb.AppendFormat("Inferring method type parameters <{0}>\n", string.Join(", ", _methodTypeParameters)); 379sb.AppendFormat("Argument types ({0})\n", string.Join(", ", from a in _arguments select a.Type)); 387sb.AppendFormat("Dependencies are {0}\n", _dependenciesDirty ? "out of date" : "up to date"); 415sb.AppendFormat("Method type parameter {0}: ", _methodTypeParameters[i].Name); 425sb.AppendFormat("FIXED to {0} ", fixedType); 428sb.AppendFormat("upper bounds: ({0}) ", (_upperBounds[i] == null) ? "" : string.Join(", ", _upperBounds[i])); 429sb.AppendFormat("lower bounds: ({0}) ", (_lowerBounds[i] == null) ? "" : string.Join(", ", _lowerBounds[i])); 430sb.AppendFormat("exact bounds: ({0}) ", (_exactBounds[i] == null) ? "" : string.Join(", ", _exactBounds[i]));
Symbols\Synthesized\GeneratedNames.cs (1)
569sb.AppendFormat("{0:X2}", b);
Symbols\Synthesized\RefKindVector.cs (1)
99builder.AppendFormat("{0:x8}", word);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenDynamicTests.cs (1)
139sb.AppendFormat("public partial class Binder {{ public static {0} {{ return null; }} }}", src);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\SemanticErrorTests.cs (6)
11288builder.AppendFormat(" = {0}", initialValue.Value); 23665builder.AppendFormat("int {0}1;\n", longE); 23666builder.AppendFormat("event System.Action {0}2;\n", longE); 23667builder.AppendFormat("public void {0}3() {{ }}\n", longE); 23668builder.AppendFormat("public void goo(int {0}4) {{ }}\n", longE); 23669builder.AppendFormat("public string {0}5 {{ get; set; }}\n", longE);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
LexicalAndXml\DocumentationCommentLexerTestBase.cs (3)
89builder.AppendFormat(", \"{0}\"", token.Text); 93builder.AppendFormat(", \"{0}\"", token.ValueText); 97builder.AppendFormat(", SyntaxKind.{0}", token.ContextualKind);
Syntax\SyntaxFactoryTests.cs (1)
410builder.AppendFormat("&#{0};", (int)ch);
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
Metadata\WinMdDumpTest.cs (1)
401result.AppendFormat(".param [{0}]", i);
Microsoft.CodeAnalysis.Test.Utilities (1)
Platform\Custom\MetadataSignatureHelper.cs (1)
80sb.AppendFormat("\"{0}\"", value.ToString());
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\SynthesizedSymbols\GeneratedNames.vb (1)
247builder.Builder.AppendFormat("{0:X}", b)
Symbols\TypeSubstitution.vb (1)
533builder.AppendFormat("{0} : ", TargetGenericDefinition)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
ExpressionTrees\CodeGenExprLambda.vb (1)
1354builder.AppendFormat("End {0}", Keyword)
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringEscapeEncoder.cs (1)
46builder.AppendFormat("{0:X2}", (int)text[index]);
Microsoft.ML.Data (20)
Data\Conversion.cs (3)
934public void Convert(in TS src, ref SB dst) { ClearDst(ref dst); dst.AppendFormat("{0:c}", src); } 935public void Convert(in DT src, ref SB dst) { ClearDst(ref dst); dst.AppendFormat("{0:o}", src); } 936public void Convert(in DZ src, ref SB dst) { ClearDst(ref dst); dst.AppendFormat("{0:o}", src); }
DataLoadSave\Text\TextSaver.cs (4)
469sb.AppendFormat("sep={0}", SeparatorCharToString(_sepChar)); 861sb.AppendFormat("\"{0:c}\"", src); 871sb.AppendFormat("\"{0:o}\"", src); 881sb.AppendFormat("\"{0:o}\"", src);
Evaluators\AnomalyDetectionEvaluator.cs (1)
692sb.AppendFormat("{0} Top-scored Results", _topScored);
Evaluators\EvaluatorUtils.cs (9)
1645sb.AppendFormat("{0}Confusion table", prefix); 1651sb.AppendFormat(" {0}||", pad); 1655sb.AppendFormat("PREDICTED {0}||", pad); 1660sb.AppendFormat("TRUTH {0}||", pad); 1672sb.AppendFormat(format2, confusionTable[i][j]); 1673sb.AppendFormat(" {0,5:F4}", confusionMatrix.PerClassRecall[i]); 1676sb.AppendFormat(" {0}||", pad); 1680sb.AppendFormat("Precision {0}||", pad); 1683sb.AppendFormat(format, confusionMatrix.PerClassPrecision[i]);
Evaluators\MultiOutputRegressionEvaluator.cs (3)
723sb.AppendFormat("{0,12} ", " "); 725sb.AppendFormat(" {0,20}", labelNames[i]); 758sb.AppendFormat(" {0,20:G20}", metric.Value);
Microsoft.ML.FastTree (18)
FastTreeRanking.cs (3)
354lineBuilder.AppendFormat("Eval:\tnet.{0:D8}.ini", Ensemble.NumTrees - 1); 358lineBuilder.AppendFormat("\t{0:0.0000}", r.FinalValue); 467headerBuilder.AppendFormat(
FastTreeRegression.cs (2)
377lineBuilder.AppendFormat("Eval:\tnet.{0:D8}.ini", Ensemble.NumTrees - 1); 381lineBuilder.AppendFormat("\t{0:0.0000}", r.FinalValue);
FastTreeTweedie.cs (2)
313lineBuilder.AppendFormat("Eval:\tnet.{0:D8}.ini", Ensemble.NumTrees - 1); 317lineBuilder.AppendFormat("\t{0:0.0000}", r.FinalValue);
TreeEnsemble\InternalRegressionTree.cs (6)
1182sbEvaluator.AppendFormat("\n[Evaluator:{0}]\n", evaluatorCounter); 1183sbEvaluator.AppendFormat("EvaluatorType=DecisionTree\nNumInternalNodes={0}\n", numNonLeaves); 1203sbInput.AppendFormat("\n[Input:{0}]\n", featureToId.Count + 1); 1268sbEvaluator.AppendFormat("\n[Evaluator:{0}]\n", evaluatorCounter); 1269sbEvaluator.AppendFormat("EvaluatorType=DecisionTree\nNumInternalNodes={0}\n", numNonLeaves); 1283sbInput.AppendFormat("\n[Input:{0}]\n", featureToId.Count + 1);
TreeEnsemble\InternalTreeEnsemble.cs (5)
127sbInput.AppendFormat("\n[Input:1]\n{0}\n", _firstInputInitializationContent); 157sb.AppendFormat("\tE:{0}", w + 1); 171sb.AppendFormat("{0}", _trees[0].Weight); 183sb.AppendFormat("\nBias={0}", Bias); 201sb.AppendFormat("\n\n[Comments]\nC:0=Regression Tree Ensemble\nC:1=Generated using FastTree\nC:2=Created on {0}\n", DateTime.UtcNow.ToString("MM/dd/yyyy H:mm:ss tt"));
Microsoft.ML.Predictor.Tests (2)
CmdLine\CmdLine.cs (2)
225sb.AppendFormat(" text='{0}'", text); 283sb.AppendFormat("[{0}]", pair.Key);
Microsoft.ML.Sweeper (1)
SweepResultEvaluator.cs (1)
50sb.AppendFormat("Metrics for {0}:", evalInfo.UserName);
Microsoft.ML.Tests (1)
ExpressionLanguageTests\ExpressionLanguageTests.cs (1)
606sb.AppendFormat("{0:X4} ", (short)a.Span[ich]);
Microsoft.ML.Transforms (1)
Text\TokenizingByCharacters.cs (1)
347bldr.AppendFormat("\\u{0:4X}", (int)c);
Microsoft.VisualBasic.Forms.Tests (1)
System\Windows\Forms\AssemblyPublicKeyIsAsExpectedTest.vb (1)
21sb.AppendFormat("{0:x2}", [byte])
PresentationCore (2)
System\Windows\Media\GlyphsSerializer.cs (2)
298sb.AppendFormat("{0:x1}", accumulatedValue); 304sb.AppendFormat("{0:x1}", accumulatedValue);
Roslyn.Test.PdbUtilities (1)
Shared\StringUtilities.cs (1)
37sb.AppendFormat("\\u{0:X4}", (int)c);
Security.TransportSecurity.IntegrationTests (12)
Tcp\ClientCredentialTypeCertificateCanonicalNameTests.4.1.0.cs (12)
62errorBuilder.AppendFormat("The call to '{0}' should have failed but succeeded. ", localhostEndpointUri.Host); 64errorBuilder.AppendFormat("Check the certificate returned by the endpoint at '{0}' ", localhostEndpointUri); 83errorBuilder.AppendFormat("The call to '{0}' should have been successful but failed with a MessageSecurityException. ", localhostEndpointUri.Host); 85errorBuilder.AppendFormat("When connecting to host '{0}', the expectation is that the DNSClaim will be for the same hostname. ", localhostEndpointUri.Host); 138errorBuilder.AppendFormat("The call to '{0}' should have failed but succeeded. ", domainNameEndpointUri.Host); 140errorBuilder.AppendFormat("Check the certificate returned by the endpoint at '{0}' ", domainNameEndpointUri); 159errorBuilder.AppendFormat("The call to '{0}' should have been successful but failed with a MessageSecurityException. ", domainNameEndpointUri.Host); 161errorBuilder.AppendFormat("When connecting to host '{0}', the expectation is that the DNSClaim will be for the same hostname. ", domainNameEndpointUri.Host); 224errorBuilder.AppendFormat("The call to '{0}' should have failed but succeeded. ", fqdnEndpointUri.Host); 226errorBuilder.AppendFormat("Check the certificate returned by the endpoint at '{0}' ", fqdnEndpointUri); 243errorBuilder.AppendFormat("The call to '{0}' should have been successful but failed with a MessageSecurityException. ", fqdnEndpointUri.Host); 245errorBuilder.AppendFormat("When connecting to host '{0}', the expectation is that the DNSClaim will be for the same hostname. ", fqdnEndpointUri.Host);
System.Composition.Hosting (3)
System\Composition\Hosting\Core\CompositionDependency.cs (1)
151message.AppendFormat(SR.Dependency_ExportNotFound, Contract);
System\Composition\Hosting\Core\ExportDescriptorRegistryUpdate.cs (2)
97message.AppendFormat(SR.ExportDescriptor_UnsupportedCycle, dependency.Target.Origin); 129result.AppendFormat(SR.ExportDescriptor_DependencyErrorContract, import.Contract);