You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
Debug.Assert(SniContext.Snix_Read==stateObj.SniContext,string.Format((IFormatProvider)null,"The SniContext should be Snix_Read but it actually is {0}",stateObj.SniContext));
Produces
HAA0601 Value type to reference type conversion causes boxing at call site (here), and unboxing at the callee-site. Consider using generics if applicable
The text was updated successfully, but these errors were encountered:
If we want to generalize it, anything marked with attribute [System.Diagnostics.Conditional("DEBUG")] should be ignored.
To solve this, my feeling is that it is needed to check every type of allocation, check if any of its parent syntax nodes is a InvocationExpression (or cannot possible have a parent who is) and then check its attributes or against a known list (e.g. "System.Diagnostics.Debug.Assert").
As they are removed in release mode.
e.g. from
SqlDataReader
Produces
The text was updated successfully, but these errors were encountered: