NSubstitute icon indicating copy to clipboard operation
NSubstitute copied to clipboard

Change internal classes to internal

Open 304NotModified opened this issue 9 months ago • 1 comments

Proposed for 6.0.

From #551:

  • Make the ReflectionExtensions helper internal and remove OrNull suffix as we use nullability for that.
  • Do not expose internal classes from Core namespace, but instead expose interfaces.

304NotModified avatar Mar 09 '25 11:03 304NotModified

Part 1 is here: https://github.com/nsubstitute/NSubstitute/pull/869

Some core types are still public because they are used in public interfaces and change for them could be a bigger breaking change then proposed in this PR.

but in any case we can create part 2 with refactoring for other types

@304NotModified could you please investigate this?

Romfos avatar Mar 09 '25 12:03 Romfos