Code inspection: Do not store SpinLock in readonly fieldLast modified: 11 February 2024 Category: Potential Code Quality Issues ID: SpinLockInReadonlyField EditorConfig: resharper_spin_lock_in_readonly_field_highlighting Default severity: Warning Language: 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