Description
I installed Roslynator and it found many references of RCS1242: Do not pass non-read-only struct by read-only reference
https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1242.md
I was wondering if this is a legitimate issue:
| // <SecurityKernel Critical="True" Ring="0"> |
| // <UsesUnsafeCode Name="Parameter filterData of type: Void*" /> |
| // <UsesUnsafeCode Name="Parameter callbackContext of type: Void*" /> |
| // </SecurityKernel> |
| privateunsafevoidEtwEnableCallBack( |
| inSystem.GuidsourceId, |
| intcontrolCode, |
| bytesetLevel, |
| longanyKeyword, |
| longallKeyword, |
| Interop.Advapi32.EVENT_FILTER_DESCRIPTOR*filterData, |
| void*callbackContext |
| ) |
| { |
| unsafeEventProvider.WriteEventErrorCodeIEventProvider.EventWriteTransfer( |
| longregistrationHandle, |
| inEventDescriptoreventDescriptor, |
| IntPtreventHandle, |
| Guid*activityId, |
| Guid*relatedActivityId, |
| intuserDataCount, |
| EventProvider.EventData*userData) |
Description
I installed Roslynator and it found many references of
RCS1242: Do not pass non-read-only struct by read-only referencehttps://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1242.md
I was wondering if this is a legitimate issue:
runtime/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventProvider.cs
Lines 230 to 243 in a2df156
runtime/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventProvider.cs
Lines 1287 to 1294 in a2df156