Table of Contents 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Notes DownloadECMA-334 C# Language Specification


14 Expressions
14.4 Function members
14.4.3 Function member invocation
14.4.3.1 Invocations on boxed instances
Paragraph 11 A function member implemented in a value-type can be invoked through a boxed instance of that value-type in the following situations: - 2 When the function member is an override of a method inherited from type object and is invoked through an instance expression of type object.
- 3 When the function member is an implementation of an interface function member and is invoked through an instance expression of an interface-type.
- 4 When the function member is invoked through a delegate.
Paragraph 21 In these situations, the boxed instance is considered to contain a variable of the value-type, and this variable becomes the variable referenced by this within the function member invocation. [Note: In particular, this means that when a function member is invoked on a boxed instance, it is possible for the function member to modify the value contained in the boxed instance. end note] |
Jagger Software Ltd |
Company # 4070126 |
VAT # 762 5213 42 |

