File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1- // ReSharper disable once CheckNamespace
1+ // this gives us the `required` keyword for fields
2+ // if you remove this, the code wont compile
3+ // i still have no clue why is this a thing
4+
5+ // ReSharper disable once CheckNamespace
26namespace System . Runtime . CompilerServices
37{
4- // Required by the compiler for C# 11 'required' keyword
58 [ AttributeUsage ( AttributeTargets . All , Inherited = false ) ]
69 public sealed class RequiredMemberAttribute : Attribute { }
710
Original file line number Diff line number Diff line change 1- // I don't know why or how it works, but it works.
1+ // this gives us the `init` keyword for properties
2+ // if you remove this, the code wont compile
3+ // i still have no clue why is this a thing
4+
25// ReSharper disable once CheckNamespace
36namespace System . Runtime . CompilerServices
47{
You can’t perform that action at this time.
0 commit comments