I\'m building a class library that will have some public & private methods. I want to be able to unit test the private methods (mostly while developing, but also it coul
You could also declare it as public or internal (with InternalsVisibleToAttribute) while building in debug-Mode:
///
/// This Method is private.
///
#if DEBUG
public
#else
private
#endif
static string MyPrivateMethod()
{
return "false";
}
It bloats the code, but it will be private in a release build.