.


:




:

































 

 

 

 


, , . .




, , C# , iFormatProvider NumberStyles.

I Format Provide , NumberStyles System.Globalization. 22.

.

 

Byte

 

SByte

 

I n 116

 

Uintl6

 

Int32

 

UInt32

 

Int64

 

Uint64

 

. . 21.2 Int32. , , .

, const.

MaxValue

MinValue

, .

: IComparable, IComparable<T>, IConvertible, IFormattable

IEquatable<T>, . , Int32 int.

 

 

 

Public int

 

 

CompareTo(object value)

 

value. , ; , ; , , ,

 

Public int CompareTo(int

 

 

value)

 

value. , ; , ; , , ,

 

Public override bool

 

true,

 

Equals(object obj)

 

obj

 

Public bool Equals(int

 

true,

 

obj)

 

obj

 

Public override int

 

-

 

GetHashCode()

 

Public TypeCode

 

TypeCode

 

GetTypeCode()

 

. , Int32 TypeCode. Int32

 

Public static int

 

,

 

Parse(string s)

 

s. , ,

 

Public static int

 

,

 

Parse(string s,

 

s,

 

IformatProvider

 

,

 

provi der)

 

provider. , ,

 

Public static int

 

,

 

Parse(string s,

 

s,

 

NumberStyles styles)

 

, styles. , ,

 

 

 

Public static int

 

,

 

Parse(string s,

 

s, ,

 

NumberStyles styles,

 

styles,

 

IformatProvider

 

,

 

provi der)

 

provider. , ,

 

Public override

 

String

 

 

ToString()

 

 

Public string

 

 

ToString(string

 

format)

 

, , format

 

Public string

 

 

ToString(IformatProvider

 

,

 

provi der)

 

provider

 

Public string

 

 

ToString(string

 

format,

 

, ,

 

IformatProvider

 

format,

 

provider)

 

, provider

 

Public static bool

 

 

TryParse(string

 

s, out

 

, s,

 

int result)

 

. result true, false, Parse (),

 

Public static bool

 

 

TryParse(string

 

s,

 

, s,

 

NumberStyles styles,

 

,

 

IformatProvider

 

styles,

 

provider, out int

 

,

 

result)

 

provider. result true, false, Parse (),

 

 

: Double Single. Single float. . 21.3, . 21.4. Double double.

. 21.5, . 21.6. , Parse () ToStringO , , .

21.3. , Single

 

 

 

Public int

 

 

CompareTo(object value)

 

value. , ; , , , , ,

 

Public int

 

 

CompareTo(float value)

 

value. , ; , , , , ,

 

Public override bool

 

true,

 

Equals(object obj)

 

obj

 

Public bool Equals(float

 

true,

 

obj)

 

obj

 

Public override int

 

-

 

GetHashCode()

 

Public TypeCode

 

TypeCode

 

GetTypeCode()

 

Single, .. TypeCode. Single

 

Public static bool

 

true,

 

Islnfinity(float f)

 

f . false

 

Public static bool

 

true, f

 

IsNaN(float f)

 

. false

 

Public static bool

 

true,

 

IsPositivelnfinity(float

 

f .

 

f)

 

false

 

Public static bool

 

true, f

 

IsNegativelnfinity(float

 

.

 

f)

 

false

 

Public static float

 

,

 

Parse(string s)

 

s. float,

 

Public static float

 

,

 

Parse(string s,

 

s,

 

IformatProvider

 

,

 

provider)

 

provider. float,

 

 

 

Public static float

 

,

 

Parse(string s,

 

s,

 

NumberStyles styles)

 

, styles. float,

 

Public static float

 

,

 

Parse(string s,

 

s,

 

NumberStyles styles,

 

,

 

IformatProvider

 

provider,

 

provi der)

 

, styles. float,

 

Public override string

 

 

ToString ()

 

 

Public string

 

 

ToString(string format)

 

, , ' format

 

Public string

 

 

ToString(IformatProvider

 

,

 

provi der)

 

provider

 

Public string

 

 

ToString(string format,

 

, ,

 

IformatProvider

 

format,

 

provider)

 

, provider

 

Public static bool

 

,

 

TryParse(string s, out

 

s, float.

 

float result)

 

result true, false, Parse (),

 

Public static bool

 

 

TryParse(string s,

 

, s,

 

NumberStyles styles,

 

float, ,

 

IformatProvider

 

format,

 

provider, out float

 

,

 

result)

 

provider, a, , styles.

 

result true, false, Parse (),

 

 

 





:


: 2016-12-03; !; : 406 |


:

:

, ,
==> ...

1764 - | 1738 -


© 2015-2024 lektsii.org - -

: 0.161 .