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
Agreed. We can special case this specific member to work in this fashion. Do you know of other apis that have the same semantics? (i.e. they expose a Foo(int start) method that is equiv to Foo(int start, Length)?
It would be cool if when could express "simplifications", via attributes so we could apply transformations without knowing internals of the method. The compiler apply these transforms at compile-time, a bit like constant-folding (turned to 11).
Version Used:
IDE0057 handles morecomplicated cases of Substring, but not the basic cases.
Steps to Reproduce:
Expected Behavior:
A analyzer message, asking me to change above to:
Actual Behavior:
Nothing
The text was updated successfully, but these errors were encountered: