4 ms·
Anonymous types are nominal types (like all others in .NET). They are just auto-generated and auto-named. Duck Typing at runtime is possible and to a degree ch
by oaiey 3y ago
Anonymous types are nominal types (like all others in .NET). They are just auto-generated and auto-named.
Duck Typing at runtime is possible and to a degree checkable and compile-time.
- CharlieDigital 3y agoI get that; that's why I qualified it as a "functional perspective" because even though the underlying implementation is an auto-generated, auto-named type, the functional usage of it is a structural type (with limitations).