Delphi Language Guide Delphi for Microsoft Win32 Delphi for the Microsoft. Net framework


Additional Visibility Specifiers for .NET



Yüklə 0,84 Mb.
Pdf görüntüsü
səhifə154/294
tarix02.01.2022
ölçüsü0,84 Mb.
#41395
1   ...   150   151   152   153   154   155   156   157   ...   294
DelphiLanguageGuide

Additional Visibility Specifiers for .NET
In addition to private and protected visibility specifiers, the Delphi for .NET compiler supports additional visibility
settings that comply with the .NET Common Language Specification (CLS). These are, strict private, and strict
protected visibility.
Class members with strict private visibility are accessible only within the class in which they are declared. They are
not visible to procedures or functions declared within the same unit.
Class members with strict protected visibility are visible within the class in which they are declared, and within any
descendant class, regardless of where it is declared.
Delphi's traditional private visibility specifier maps to the CLR's 
assembly
 visibility. Delphi's protected visibility
specifier maps to the CLR's 
assembly
 or 
family
 visibility.
Note:
The word strict is treated as a directive within the context of a class declaration. Within a class declaration
you cannot declare a member named 'strict', but it is acceptable for use outside of a class declaration.

Yüklə 0,84 Mb.

Dostları ilə paylaş:
1   ...   150   151   152   153   154   155   156   157   ...   294




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin