StandardFormat Struct
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.
Represents a standard format string without using an actual string.
public value class StandardFormat : IEquatable<System::Buffers::StandardFormat>
public readonly struct StandardFormat : IEquatable<System.Buffers.StandardFormat>
type StandardFormat = struct
Public Structure StandardFormat
Implements IEquatable(Of StandardFormat)
- Inheritance
- Implements
A StandardFormat
object consists of a single character standard format specifier (such as 'G', 'D', or 'X') and an optional precision specifier. The precision specifier can range from 0 to 9, or it can be the special StandardFormat.NoPrecision value.
Standard |
Initializes a new instance of the StandardFormat structure. |
Max |
Defines the maximum valid precision value. |
No |
Indicates that a format doesn't use a precision or that the precision is unspecified. |
Has |
Gets a value that indicates whether a format has a defined precision. |
Is |
Gets a value that indicates whether the current instance is a default format. |
Precision |
Gets the precision component of the format. |
Symbol |
Gets the character component of the format. |
Equals(Object) |
Returns a value that indicates whether the specified object is a StandardFormat object that is equal to the current instance. |
Equals(Standard |
Returns a value that indicates whether the specified StandardFormat is equal to the current instance. |
Get |
Returns the hash code for this instance. |
Parse(Read |
Converts a |
Parse(String) |
Converts a classic .NET standard format string to a StandardFormat instance. |
To |
Returns the string representation of this format. |
Try |
Attempts to convert a |
Equality(Standard |
Returns a value that indicates whether two StandardFormat instances are equal. |
Implicit(Char to Standard |
Converts a character to a StandardFormat instance using NoPrecision precision. |
Inequality(Standard |
Determines whether two StandardFormat instances are unequal. |
Product | Versions |
---|---|
.NET | Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided), 2.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: