-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
Milestone
Description
This is a top-level issue to track supporting ref structs within generics. For additional details refer to dotnet/csharplang#7608 and the older dotnet/csharplang#1148.
- Finish support for
reffields -reffield support in .NET runtimes #63768 - Get design approval from all stakeholders
- Enable CoreCLR Support
- Support ByRefLike types as Generic parameters #67783
- Support may equivalence - see Type test for ref struct is incorrect roslyn#63085
- .NET API for "is-type" scenarios - [API Proposal]: Methods to support ByRefLike types in "is-type" IL sequences #105435
- [Mono] Enable support for IsByRefLike types in generics #94415
- Support
gpAcceptByRefLikemetadata generic param attribute - JIT+AOT boxing elision support; generic sharing support
- Interp boxing elision support
- Support
- Update ECMA-335 - Update docs for ByRefLike with generics for work in .NET 10 #103318
- Add Test cases and Functional Validation
- R2R Support
- Allow
ref structsto implement interfaces- CoreCLR - Disallow
ref structsto use DIM implementations - CoreCLR NativeAOT - ByRef generics and ByRef implementing interfaces #98070 - Mono - Disallow
ref structsto use DIM implementations
- CoreCLR - Disallow
- Update
System.Activator.CreateInstance<T>()to include theallows ref structconstraint.- This will need to be done in all runtimes. -
Activator.CreateInstancesupports ByRefLike types #102636
- This will need to be done in all runtimes. -
- Cecil/trimmer support for ref structs within generics
am11, aromaa, jvbsl, susch19, tactical-drone and 16 moreacalyPathogenDavid, hypeartist and ltrzesniewski