-
Notifications
You must be signed in to change notification settings - Fork 783
Mark fields as readonly as suggested by ReSharper. #728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mark fields as readonly as suggested by ReSharper. #728
Conversation
| { | ||
| #pragma warning disable IDE1006 // Naming Styles: 3rd party code is known to reflect for this specific field name | ||
| private static IQueryLanguageEx s_impl = QueryServices.GetQueryImpl<IQueryLanguageEx>(new QueryLanguageEx()); | ||
| private static readonly IQueryLanguageEx s_impl = QueryServices.GetQueryImpl<IQueryLanguageEx>(new QueryLanguageEx()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a "hack" entry point. Remember why we couldn't inline the IQueryLanguage? Because RxSpy and others use this type of fields to inject their instrumentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, I though they did it through the PlatformEnlightenmentProvider. That should still be possible though.
We should try to get in touch with the RxSpy folks though soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| { | ||
| #pragma warning disable IDE1006 // Naming Styles: 3rd party code is known to reflect for this specific field name | ||
| private static IQueryLanguage s_impl = QueryServices.GetQueryImpl<IQueryLanguage>(new QueryLanguage()); | ||
| private static readonly IQueryLanguage s_impl = QueryServices.GetQueryImpl<IQueryLanguage>(new QueryLanguage()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a "hack" entry point. Remember why we couldn't inline the IQueryLanguage? Because RxSpy and others use this type of fields to inject their instrumentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll revise that in a minute.
|
This has been revised. |
No description provided.