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


Interface Assignment Compatibility



Yüklə 0,84 Mb.
Pdf görüntüsü
səhifə234/294
tarix02.01.2022
ölçüsü0,84 Mb.
#41395
1   ...   230   231   232   233   234   235   236   237   ...   294
DelphiLanguageGuide

Interface Assignment Compatibility
Variables of a given class type are assignment-compatible with any interface type implemented by the class.
Variables of an interface type are assignment-compatible with any ancestor interface type. The value nil can be
assigned to any interface-type variable.
An interface-type expression can be assigned to a variant. If the interface is of type 
IDispatch
 or a descendant,
the variant receives the type code 
varDispatch
. Otherwise, the variant receives the type code 
varUnknown
.
A variant whose type code is 
varEmpty

varUnknown
, or 
varDispatch
 can be assigned to an 
IInterface
variable. A variant whose type code is varEmpty or varDispatch can be assigned to an 
IDispatch
 variable.

Yüklə 0,84 Mb.

Dostları ilə paylaş:
1   ...   230   231   232   233   234   235   236   237   ...   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