C# Language Specification



Download 0,75 Mb.
bet522/524
Sana06.01.2022
Hajmi0,75 Mb.
#324842
1   ...   516   517   518   519   520   521   522   523   524
Bog'liq
CSharp Language Specification

Interfaces


interface-declaration:
attributesopt interface-modifiersopt partialopt interface
identifier variant-type-parameter-listopt interface-baseopt
type-parameter-constraints-clausesopt interface-body ;opt


interface-modifiers:
interface-modifier
interface-modifiers interface-modifier


interface-modifier:
new
public
protected
internal
private


variant-type-parameter-list:
< variant-type-parameters >


variant-type-parameters:
attributesopt variance-annotationopt type-parameter
variant-type-parameters , attributesopt variance-annotationopt type-parameter


variance-annotation:
in
out

interface-base:
: interface-type-list


interface-body:
{ interface-member-declarationsopt }


interface-member-declarations:
interface-member-declaration
interface-member-declarations interface-member-declaration


interface-member-declaration:
interface-method-declaration
interface-property-declaration
interface-event-declaration
interface-indexer-declaration


interface-method-declaration:
attributesopt newopt return-type identifier type-parameter-list
( formal-parameter-listopt ) type-parameter-constraints-clausesopt ;


interface-property-declaration:
attributesopt newopt type identifier { interface-accessors }


interface-accessors:
attributesopt get ;
attributesopt set ;
attributesopt get ; attributesopt set ;
attributesopt set ; attributesopt get ;


interface-event-declaration:
attributesopt newopt event type identifier ;


interface-indexer-declaration:
attributesopt newopt type this [ formal-parameter-list ] { interface-accessors }

  1. Enums


enum-declaration:
attributesopt enum-modifiersopt enum identifier enum-baseopt enum-body ;opt


enum-base:
: integral-type


enum-body:
{ enum-member-declarationsopt }
{ enum-member-declarations , }


enum-modifiers:
enum-modifier
enum-modifiers enum-modifier


enum-modifier:
new
public
protected
internal
private


enum-member-declarations:
enum-member-declaration
enum-member-declarations , enum-member-declaration


enum-member-declaration:
attributesopt identifier
attributesopt identifier = constant-expression


  1. Download 0,75 Mb.

    Do'stlaringiz bilan baham:
1   ...   516   517   518   519   520   521   522   523   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