M
muler
Hi all,
Can someone please elaborate on (or annotate) this text excerpt I found
while reading "The C# Programming Language", by Anders Hejlsberg, Scott
Wiltamuth, Peter Golde:
Section 7.1
A property access:
Every property access has an associated type, namely the type of the
property. Furthermore, a property access may have an associated
instance expression. {up to this it is clear}. When an accessor (the
get or set block) of an instance property access is invoked, the result
of evaluating the instance expression becomes the instance represented
by this. {this last statement is not clear - my understanding is: the
result is a value with type the type of the property.}
Thanks in advance.
Can someone please elaborate on (or annotate) this text excerpt I found
while reading "The C# Programming Language", by Anders Hejlsberg, Scott
Wiltamuth, Peter Golde:
Section 7.1
A property access:
Every property access has an associated type, namely the type of the
property. Furthermore, a property access may have an associated
instance expression. {up to this it is clear}. When an accessor (the
get or set block) of an instance property access is invoked, the result
of evaluating the instance expression becomes the instance represented
by this. {this last statement is not clear - my understanding is: the
result is a value with type the type of the property.}
Thanks in advance.