From 04ad4274e14bca9909547db053edffd6151ff4b1 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Wed, 18 Nov 2020 13:37:25 +0000 Subject: [PATCH] Use read-only auto-implemented property (#44677) * Use read-only auto-implemented property in src\libraries\Common Use read-only auto-implemented property (RCS1170) https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1170.md * Revert changes except to ComEventsMethod --- .../src/System/Runtime/InteropServices/ComEventsMethod.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/Common/src/System/Runtime/InteropServices/ComEventsMethod.cs b/src/libraries/Common/src/System/Runtime/InteropServices/ComEventsMethod.cs index 22281c58e3169..766c120d51607 100644 --- a/src/libraries/Common/src/System/Runtime/InteropServices/ComEventsMethod.cs +++ b/src/libraries/Common/src/System/Runtime/InteropServices/ComEventsMethod.cs @@ -38,7 +38,7 @@ public DelegateWrapper(Delegate d, bool wrapArgs) public Delegate Delegate { get; set; } - public bool WrapArgs { get; private set; } + public bool WrapArgs { get; } public object? Invoke(object[] args) {