the second error would become a valid method call.
On the Win32 platform, interface references are typically managed
through reference-counting, which depends on
the
_AddRef
and
_Release
methods inherited from IInterface. These methods, and reference counting in general,
are not applicable on the .NET platform, which is a garbage collected environment. Using the default implementation
of reference counting, when an object is referenced only through interfaces, there is no need to destroy it manually;
the object is automatically destroyed when the last reference to it goes out of scope. Some classes implement
interfaces to bypass this
default lifetime management, and some hybrid objects use reference counting only when
the object does not have an owner.
Global interface-type variables can be initialized only to nil.
To determine whether an interface-type expression references an object, pass it to the standard function Assigned.
Dostları ilə paylaş: