Invariants class

namespace: Serenity   assemblySerenity.Net.Core

Invariant culture related constants and formats.

public static class Invariants

Public Members

name description
static readonly DateTimeFormat Date time format information for invariant culture
static readonly NumberFormat Number format information for invariant culture
static IDString(…) Converts an ID value, to its string representation.
static IsIntegerType(…) Determines whether type of the value is an integer type (Int16, Int32, Int64). Avoid using this function as it is obsolete.
static ToInvariant(…) Converts value to string using invariant culture. (4 methods)
static TryParseID(…) Tries to converts an ID's string representation to its numerical ID value (Int64).Unlike String), null, empty string and all other invalid strings results in Int64 value (not an exception).
static TryParseID32(…) Tries to converts an ID's string representation to its numerical ID value (Int64).Unlike String), null, empty string and all other invalid strings results in Int64 value (not an exception).

See Also