SymbolDisplay.FormatPrimitive(Object, Boolean, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a string representation of an object of primitive type.
public:
static System::String ^ FormatPrimitive(System::Object ^ obj, bool quoteStrings, bool useHexadecimalNumbers);
public static string FormatPrimitive (object obj, bool quoteStrings, bool useHexadecimalNumbers);
static member FormatPrimitive : obj * bool * bool -> string
Public Function FormatPrimitive (obj As Object, quoteStrings As Boolean, useHexadecimalNumbers As Boolean) As String
Parameters
- obj
- Object
A value to display as a string.
- quoteStrings
- Boolean
Whether or not to quote string literals.
- useHexadecimalNumbers
- Boolean
Whether or not to display integral literals in hexadecimal.
Returns
A string representation of an object of primitive type (or null if the type is not supported).
Remarks
Handles Boolean, String, Char, SByteByte, Int16, UInt16, Int32, UInt32, Int64, UInt64, Double, Single, Decimal, DateTime, and Nothing
.
Applies to
Comentarios
https://aka.ms/ContentUserFeedback.
Próximamente: A lo largo de 2024 iremos eliminando gradualmente GitHub Issues como mecanismo de comentarios sobre el contenido y lo sustituiremos por un nuevo sistema de comentarios. Para más información, vea:Enviar y ver comentarios de