Static Members
Generic types can have static members. Static members cannot be bound to an open constructed type. Static members belong to the type where the member is defined. However, for a generic type, the type where the member is defined is an open constructed type, and static members of a generic type belong to the closed constructed type. There can be more than one closed constructed type for a generic type, each one having its own set of static members from the same generic type. Static members are accessible using the closed constructed type notation. Static constructors, which are called implicitly, initialize the static fields in the context of the current closed constructed type.
This is the constructed type notation for accessing a ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access