dotnet / dotnet/csharpstandard

12.3.4 Type visibility and dynamic binding

Open
#98 9 comments 0 reactions 0 assignees View on GitHub
status: gnarly type: clarity
Dominant language
C#
Stars
815
Forks
99
Avg merge
1d 14h
Merged PRs (30d)
16

Description

Again, this depends on issue ECMA-TC49-TG2/spec#248.

First bullet in 13.3.4:

> A constituent expression of compile-time type `dynamic` is considered to have the type of the actual value that the expression evaluates to at runtime

IIRC, it's a bit more complicated than that, because the calling code may not have access to that type, so dynamic binding to even public members of that type can't happen. Do we need to go into details of that? I understand it went through various iterations within MS, but I'm not sure whether the result is deemed implementation-specific or something that can be nailed down.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.