C# 0 The Complete Reference



Download 4,07 Mb.
Pdf ko'rish
bet819/1096
Sana23.01.2022
Hajmi4,07 Mb.
#402171
1   ...   815   816   817   818   819   820   821   822   ...   1096
Bog'liq
C-Sharp 3 The Complete Reference Herbert Schildt

N

OTE

N

OTE

Formatting is described in detail in Chapter 22.

www.freepdf-books.com




22

Strings and Formatting

T

his chapter examines the 



String

 class, which underlies C#’s 



string

 type. As all 

programmers know, string handling is a part of almost any program. For this reason, 

the


String

 class defines an extensive set of methods, properties, and fields that give 

you detailed control over the construction and manipulation of strings. Closely related to 

string handling is the formatting of data into its human-readable form. Using the formatting 

subsystem, you can format the C# numeric types, date and time, and enumerations.

Strings in C#

An overview of C#’s string handling was presented in Chapter 7, and that discussion is not 

repeated here. However, it is worthwhile to review how strings are implemented in C# before 

examining the 



String

 class.


In all computer languages, a 

string

 is a sequence of characters, but precisely how such a 

sequence is implemented varies from language to language. In some computer languages, 

such as C++, strings are arrays of characters, but this is not the case with C#. Instead, C# 

strings are objects of the built-in 


Download 4,07 Mb.

Do'stlaringiz bilan baham:
1   ...   815   816   817   818   819   820   821   822   ...   1096




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish