public sealed class NumericSequenceFormatter : IFormatProvider,
ICustomFormatter
Public NotInheritable Class NumericSequenceFormatter
Implements IFormatProvider, ICustomFormatter
Dim instance As NumericSequenceFormatter
public ref class NumericSequenceFormatter sealed : IFormatProvider,
ICustomFormatter
[<SealedAttribute>]
type NumericSequenceFormatter =
class
interface IFormatProvider
interface ICustomFormatter
end
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
Dim arr As Integer() = {1, 10, 100, 1000}
Console.WriteLine(String.Format(New NumericSequenceFormatter(), "Comma separated...........: {0:C}", arr))
Console.WriteLine(String.Format(New NumericSequenceFormatter(), "Comma separated and padded: {0:CP}", arr))
Console.WriteLine()
Console.WriteLine(String.Format(New NumericSequenceFormatter(), "White-Space separated...........: {0:W}", arr))
Console.WriteLine(String.Format(New NumericSequenceFormatter(), "White-Space separated and padded: {0:WP}", arr))
Console.WriteLine()
Console.WriteLine(String.Format(New NumericSequenceFormatter(), "Tab separated...........: {0:T}", arr))
Console.WriteLine(String.Format(New NumericSequenceFormatter(), "Tab-separated and padded: {0:TP}", arr))
Console.WriteLine()
Console.WriteLine(String.Format(New NumericSequenceFormatter(), "Multi-line...........: {0:M}", arr))
Console.WriteLine(String.Format(New NumericSequenceFormatter(), "Multi-line and padded: {0:MP}", arr))
Console.WriteLine()
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
NumericSequenceFormatter | Initializes a new instance of the NumericSequenceFormatter class. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Format | Converts the value of a specified object to an equivalent string representation using specified format and culture-specific formatting information. |
GetFormat | Returns an object that provides formatting services for the specified type. |
GetHashCode | Serves as the default hash function. (Inherited from Object) |
GetType | Gets the Type of the current instance. (Inherited from Object) |
ToString | Returns a string that represents the current object. (Inherited from Object) |
CanConvertTo |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
CanConvertToT |
Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions) |
ConvertToT |
Converts an object to the specified target type.
If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions) |
IsDisposable |
Determines whether the specified object is a disposable type
(i.e., it implements IDisposable interface).
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
Speak |
Speaks the string representation of the source object by using the
operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions) |
ThrowIfNullTException |
Throws the specified exception if the source object is null.
(Defined by ObjectExtensions) |