Mark the struct with the [RequireFieldsInit]
attribute.
The compiler now requires you to initialize all fields
in the object's initializer
-
Notifications
You must be signed in to change notification settings - Fork 0
C# 11 "Required Members" for Unity
License
codewriter-packages/RequireFieldsInit-Analyzer
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
C# 11 "Required Members" for Unity