Code inspection: Do not store SpinLock in readonly fieldLast modified: 11 February 2024Category: Potential Code Quality IssuesID: SpinLockInReadonlyFieldEditorConfig: resharper_spin_lock_in_readonly_field_highlighting=[error|warning|suggestion|hint|none]Default severity: WarningLanguage: C#Requires SWA: NotipYou can suppress this inspection to ignore specific issues, change its severity level to make the issues less or more noticeable, or disable it altogether.This inspection reports SpinLock struct instances stored in readonly fields. For more information, refer toStackOverflow: SpinLock and readonly fieldsEric Lippert's blog: Mutating readonly structs