C# 0 The Complete Reference



Download 4,07 Mb.
Pdf ko'rish
bet581/1096
Sana23.01.2022
Hajmi4,07 Mb.
#402171
1   ...   577   578   579   580   581   582   583   584   ...   1096
Bog'liq
C-Sharp 3 The Complete Reference Herbert Schildt

System.Reflection

 namespace. Thus, you will normally include the following in 

programs that use reflection:

using System.Reflection;



The Reflection Core: System.Type

System.Type

 is at the core of the reflection subsystem because it encapsulates a type. It 

contains many properties and methods that you will use to obtain information about a type 

at runtime. 



Type

 is derived from an abstract class called 



System.Reflection.MemberInfo

.

MemberInfo

 defines the following read-only properties:

Property


Description

Type DeclaringType

Obtains the type of the class or inter face in which the 

member is declared.

MemberTypes MemberType

Obtains the kind of the member. This value indicates if the 

member is a field, method, proper ty, event, or constructor.

int MetadataToken

Obtains a value associated with a specific metadata.

Module Module

Obtains a 

Module


 object that represents the module (an 

executable file) in which the reflected type resides.

string Name

The name of the type.

Type ReflectedType

The type of the object being reflected.

Notice that the return type of 


Download 4,07 Mb.

Do'stlaringiz bilan baham:
1   ...   577   578   579   580   581   582   583   584   ...   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