C# Class Serenity.Invariants

Mostra file Open project: volkanceylan/Serenity

Public Properties

Property Type Description
DateTimeFormat System.Globalization.DateTimeFormatInfo
NumberFormat System.Globalization.NumberFormatInfo

Public Methods

Method Description
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).

Private Methods

Method Description
Invariants ( ) : System

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

Method Details

IDString() public static method

Converts an ID value, to its string representation.
public static IDString ( this id ) : string
id this /// ID value.
return string

IsIntegerType() public static method

public static IsIntegerType ( object value ) : bool
value object
return bool

ToInvariant() public static method

public static ToInvariant ( this value ) : string
value this
return string

TryParseID() public static method

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.
return Int64?

TryParseID32() public static method

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.
return Int32?

Property Details

DateTimeFormat public_oe static_oe property

Date time format information for invariant culture
public static DateTimeFormatInfo,System.Globalization DateTimeFormat
return System.Globalization.DateTimeFormatInfo

NumberFormat public_oe static_oe property

Number format information for invariant culture
public static NumberFormatInfo,System.Globalization NumberFormat
return System.Globalization.NumberFormatInfo