This print for content only-size & color not accurate 7" X 9-1/4" / casebound / malloy



Download 21,46 Mb.
Pdf ko'rish
bet912/1830
Sana28.09.2021
Hajmi21,46 Mb.
#188411
1   ...   908   909   910   911   912   913   914   915   ...   1830
Bog'liq
[book] [en] Pro C# 2008 and the NET 3.5 Platform Fourth Edition



Source Code

The LinqOverArrayUsingEnumerable project can be found under the Chapter 14 subdirectory.



Investigating the C# LINQ Query Operators

C# defines a good number of query operators out of the box. Table 14-3 documents some of the

more commonly used query operators.



Note

The .NET Framework 3.5 SDK documentation provides full details regarding each of the C# LINQ opera-

tors. Look up the topic “LINQ General Programming Guide” for more information.

Table 14-3.

Various LINQ Query Operators

Query Operators

Meaning in Life

from, in


Used to define the backbone for any LINQ expression, which

allows you to extract a subset of data from a fitting container.

where

Used to define a restriction for which items to extract from a



container.

select


Used to select a sequence from the container.

join, on, equals, into

Performs joins based on specified key. Remember, these “joins”

do not need to have anything to do with data in a relational

database.

orderby, ascending, descending

Allows the resulting subset to be ordered in ascending or

descending order.

group, by

Yields a subset with data grouped by a specified value.

In addition to the partial list of operators shown in Table 14-3, the Enumerable type provides a

set of methods that do not have a direct C# query operator shorthand notation, but are instead

exposed as extension methods. These generic methods can be called to transform a result set in var-

ious manners (Reverse<>(), ToArray<>(), ToList<>(), etc.). Some are used to extract singletons

from a result set, others perform various set operations (Distinct<>(), Union<>(), Intersect<>(),

etc.), and still others aggregate results (Count<>(), Sum<>(), Min<>(), Max<>(), etc.).

C H A P T E R   1 4  

A N   I N T R O D U C T I O N  TO   L I N Q



463

8849CH14.qxd  9/26/07  12:30 PM  Page 463





Download 21,46 Mb.

Do'stlaringiz bilan baham:
1   ...   908   909   910   911   912   913   914   915   ...   1830




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