C# Language Specification


Evaluation of anonymous function expressions



Download 0,75 Mb.
bet273/524
Sana06.01.2022
Hajmi0,75 Mb.
#324842
1   ...   269   270   271   272   273   274   275   276   ...   524
Bog'liq
CSharp Language Specification

Evaluation of anonymous function expressions


An anonymous function F must always be converted to a delegate type D or an expression tree type E, either directly or through the execution of a delegate creation expression new D(F). This conversion determines the result of the anonymous function, as described in §6.5.
    1. Query expressions


Query expressions provide a language integrated syntax for queries that is similar to relational and hierarchical query languages such as SQL and XQuery.

query-expression:
from-clause query-body


from-clause:
from typeopt identifier in expression


query-body:
query-body-clausesopt select-or-group-clause query-continuationopt


query-body-clauses:
query-body-clause
query-body-clauses query-body-clause


query-body-clause:
from-clause
let-clause
where-clause
join-clause
join-into-clause
orderby-clause


let-clause:
let identifier = expression


where-clause:
where boolean-expression


join-clause:
join typeopt identifier in expression on expression equals expression


join-into-clause:
join typeopt identifier in expression on expression equals expression into identifier


orderby-clause:
orderby orderings


orderings:
ordering
orderings , ordering


ordering:
expression ordering-directionopt


ordering-direction:
ascending
descending


select-or-group-clause:
select-clause
group-clause


select-clause:
select expression


group-clause:
group expression by expression


query-continuation:
into identifier query-body

A query expression begins with a from clause and ends with either a select or group clause. The initial from clause can be followed by zero or more from, let, where, join or orderby clauses. Each from clause is a generator introducing a range variable which ranges over the elements of a sequence. Each let clause introduces a range variable representing a value computed by means of previous range variables. Each where clause is a filter that excludes items from the result. Each join clause compares specified keys of the source sequence with keys of another sequence, yielding matching pairs. Each orderby clause reorders items according to specified criteria.The final select or group clause specifies the shape of the result in terms of the range variables. Finally, an into clause can be used to “splice” queries by treating the results of one query as a generator in a subsequent query.



      1. Download 0,75 Mb.

        Do'stlaringiz bilan baham:
1   ...   269   270   271   272   273   274   275   276   ...   524




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