Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 4.35 KB

Assorted.Utils.Serialization.ConvertExtensions.md

File metadata and controls

46 lines (34 loc) · 4.35 KB

ConvertExtensions Class

Namespace: Assorted.Utils.Serialization
Assembly: Assorted.Utils (Assorted.Utils.dll) version 1.1.0.0
Inheritance: object ConvertExtensions

Extends primitive data types by adding the ToStandardString() method to them. The method returns the string representation of the extended objects in culture independent format.

Syntax

public static class ConvertExtensions

Methods

Method Description
ToStandardString(this bool) Returns the standard string representation of the specified logical value.
ToStandardString(this byte) Returns the standard string representation of the specified integer value.
ToStandardString(this DateTime) Returns the standard string representation of the specified System.DateTime value.
ToStandardString(this DateTimeOffset) Returns the standard string representation of the specified System.DateTimeOffset value.
ToStandardString(this decimal) Returns the standard string representation of the specified decimal value.
ToStandardString(this double) Returns the standard string representation of the specified floating point value.
ToStandardString(this Enum) Returns the standard string representation of the underlying numeric value of the specified enumeration value.
ToStandardString(this float) Returns the standard string representation of the specified floating point value.
ToStandardString(this int) Returns the standard string representation of the specified integer value.
ToStandardString(this long) Returns the standard string representation of the specified integer value.
ToStandardString(this object) Returns the standard string representation of the specified System.Object.
ToStandardString(this sbyte) Returns the standard string representation of the specified integer value.
ToStandardString(this short) Returns the standard string representation of the specified integer value.
ToStandardString(this uint) Returns the standard string representation of the specified integer value.
ToStandardString(this ulong) Returns the standard string representation of the specified integer value.
ToStandardString(this ushort) Returns the standard string representation of the specified integer value.

Thread Safety

Any public static member of this type is thread-safe, but instance members are not guaranteed to be thread-safe.

See Also


This document is generated by DG.