C# Класс Serenity.Invariants

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
DateTimeFormat System.Globalization.DateTimeFormatInfo
NumberFormat System.Globalization.NumberFormatInfo

Открытые методы

Метод Описание
IDString ( this id ) : string

Converts an ID value, to its string representation.

IsIntegerType ( object value ) : bool
ToInvariant ( this value ) : string
TryParseID ( this str ) : Int64?

Tries to converts an ID's string representation to its numerical ID value (Int64).

Unlike Int64.Parse(string), null, empty string and all other invalid strings results in System.Int64 value (not an exception).

TryParseID32 ( this str ) : Int32?

Tries to converts an ID's string representation to its numerical ID value (Int64).

Unlike Int64.Parse(string), null, empty string and all other invalid strings results in System.Int64 value (not an exception).

Приватные методы

Метод Описание
Invariants ( ) : System

Statik DataHelper contructor'ı. Varsayılan bağlantı string'i ve bağlantı kültürü parametlerini initialize eder.

Описание методов

IDString() публичный статический Метод

Converts an ID value, to its string representation.
public static IDString ( this id ) : string
id this /// ID value.
Результат string

IsIntegerType() публичный статический Метод

public static IsIntegerType ( object value ) : bool
value object
Результат bool

ToInvariant() публичный статический Метод

public static ToInvariant ( this value ) : string
value this
Результат string

TryParseID() публичный статический Метод

Tries to converts an ID's string representation to its numerical ID value (Int64).

Unlike Int64.Parse(string), null, empty string and all other invalid strings results in System.Int64 value (not an exception).

public static TryParseID ( this str ) : Int64?
str this /// String representation of an ID.
Результат Int64?

TryParseID32() публичный статический Метод

Tries to converts an ID's string representation to its numerical ID value (Int64).

Unlike Int64.Parse(string), null, empty string and all other invalid strings results in System.Int64 value (not an exception).

public static TryParseID32 ( this str ) : Int32?
str this /// String representation of an ID.
Результат Int32?

Описание свойств

DateTimeFormat публичное статическое свойство

Date time format information for invariant culture
public static DateTimeFormatInfo,System.Globalization DateTimeFormat
Результат System.Globalization.DateTimeFormatInfo

NumberFormat публичное статическое свойство

Number format information for invariant culture
public static NumberFormatInfo,System.Globalization NumberFormat
Результат System.Globalization.NumberFormatInfo