Make private

Make public members private

Workflow

Process code

Create a DGML file using a tool for reading the source code, for example

DeepEnds ReadDotNet extract=callgraph output=C:\project\callgraph.dgml C:\project\source.sln

Make private

Given that the source is backed up run the tool to change the source code, for example,

DeepEnds ReportPrivatise makePrivate=C:\project C:\project\callgraph.dgml

Build

Attempt the normal build process.

Fix build

Revert those changes which are causing the build to fail due to the detection of false positives. Note that the interface exported by your binaries may have changed causing third-party applications to fail to build.