8 references to FormatPrimitive
Microsoft.AspNetCore.App.Analyzers (5)
src\aspnetcore\src\Shared\RoslynUtils\SymbolExtensions.cs (5)
249return $"({enumType.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat)}){SymbolDisplay.FormatPrimitive(defaultValue!, false, false)}"; 259return $"({underlyingEnumType.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat)}){SymbolDisplay.FormatPrimitive(defaultValue!, false, false)}"; 271float f => $"{SymbolDisplay.FormatPrimitive(f, false, false)}F", 275decimal d => $"{SymbolDisplay.FormatPrimitive(d, false, false)}M", 276_ => SymbolDisplay.FormatPrimitive(defaultValue, false, false)!,
Microsoft.CodeAnalysis.CSharp (2)
SymbolDisplay\SymbolDisplayVisitor_Constants.cs (1)
45var valueString = SymbolDisplay.FormatPrimitive(value, quoteStrings: true, useHexadecimalNumbers: false);
Symbols\TypedConstantExtensions.cs (1)
43var result = SymbolDisplay.FormatPrimitive(constant.ValueInternal, quoteStrings: true, useHexadecimalNumbers: false);
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\TagHelpers\Producers\ComponentTagHelperProducer.cs (1)
483withAttributes.Append(SymbolDisplay.FormatPrimitive(arg.Value!, quoteStrings: true, useHexadecimalNumbers: true));