C# 0 The Complete Reference


PART I C h a p t e r   1



Download 4,07 Mb.
Pdf ko'rish
bet43/1096
Sana23.01.2022
Hajmi4,07 Mb.
#402171
1   ...   39   40   41   42   43   44   45   46   ...   1096
Bog'liq
C-Sharp 3 The Complete Reference Herbert Schildt


PART I

C h a p t e r   1 :  

T h e   C r e a t i o n   o f   C #  

7

PART IPART I



C# includes features that directly support the constituents of components, such as 

properties, methods, and events. However, C#’s ability to work in a secure, mixed-language 

environment is perhaps its most important component-oriented feature.

The Evolution of C#

Since its original 1.0 release, C# has been evolving at a rapid pace. Not long after C# 1.0, 

Microsoft released version 1.1. It contained many minor tweaks but added no major 

features. However, the situation was much different with the release of C# 2.0.

C# 2.0 was a watershed event in the lifecycle of C# because it added many new features, 

such as generics, partial types, and anonymous methods, that fundamentally expanded 

the scope, power, and range of the language. Version 2.0 firmly put C# at the forefront of 

computer language development. It also demonstrated Microsoft’s long-term commitment 

to the language.

The next major release of C# was 3.0, and this is the version of C# described by this book. 

Because of the many new features added by C# 2.0, one might have expected the development 

of C# to slow a bit, just to let programmers catch up, but this was not the case. With the release 

of C# 3.0, Microsoft once again put C# on the cutting edge of language design, this time 

adding a set of innovative features that redefined the programming landscape. Here is 

a list of what 3.0 has added to the language:

• Anonymous types

Auto-implemented properties

• Extension methods

•  Implicitly typed variables

• Lambda expressions

• Language-integrated query (LINQ)

•  Object and collection initializers

• Partial methods

Although all of these features are important and have significant impact on the language, 

the two that are the most exciting are language-integrated query (LINQ) and lambda 

expressions. LINQ enables you to write database-style queries using C# programming 

elements. However, the LINQ syntax is not limited to only databases. It can also be used 

with arrays and collections. Thus, LINQ offers a new way to approach several common 

programming tasks. Lambda expressions are often used in LINQ expressions, but can also be 

used elsewhere. They implement a functional-style syntax that uses the lambda operator 



=>

.

Together, LINQ and lambda expressions add an entirely new dimension to C# programming. 



Throughout the course of this book, you will see how these features are revolutionizing the 

way that C# code is written.




Download 4,07 Mb.

Do'stlaringiz bilan baham:
1   ...   39   40   41   42   43   44   45   46   ...   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