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
Looking over the docs for this I noticed that we now also have Path.Join in modern .NET. Is there any scenarios where we should be suggesting that instead, perhaps as a separate rule?
If the values you are joining are all strings, then I don't think it matters. But if you are getting one or more of the elements from a substring (or one of the Path.GetXXX() methods that have span overloads), then Path.Join would be preferable.
eg.
I encountered a couple of places where someone nested
Path.Combine
and thought we should probably have a rule that guides people to inline them.so:
becomes:
The text was updated successfully, but these errors were encountered: