BoxesNLines.IKnowBetterTestClassLibrary
1.0.0
dotnet add package BoxesNLines.IKnowBetterTestClassLibrary --version 1.0.0
NuGet\Install-Package BoxesNLines.IKnowBetterTestClassLibrary -Version 1.0.0
<PackageReference Include="BoxesNLines.IKnowBetterTestClassLibrary" Version="1.0.0" />
<PackageVersion Include="BoxesNLines.IKnowBetterTestClassLibrary" Version="1.0.0" />
<PackageReference Include="BoxesNLines.IKnowBetterTestClassLibrary" />
paket add BoxesNLines.IKnowBetterTestClassLibrary --version 1.0.0
#r "nuget: BoxesNLines.IKnowBetterTestClassLibrary, 1.0.0"
#:package BoxesNLines.IKnowBetterTestClassLibrary@1.0.0
#addin nuget:?package=BoxesNLines.IKnowBetterTestClassLibrary&version=1.0.0
#tool nuget:?package=BoxesNLines.IKnowBetterTestClassLibrary&version=1.0.0
This is the class library package used by the IKnowBetter demo - it's only intended to be used for testing and demo purposes.
You can see an example of this in the IKnowBetterDemo project.
To use this to demo IKnowBetter, you should:
- Add this package to your project
- Verify that the members of this library are inaccessible, e.g.
PrivateClassis not accessible to your code - Add the
BoxesNLines.IKnowBetterpackage to your project - Add an
IKnowBetter.jsoncfile to the root of your project with configuration like:
[
{
"IKnowBetter": "UnsealClass", // UnsealClass/MakeClassPublic/MakeMethodPublic/FullyUnlockClass
"Assembly": "IKnowBetterTestClassLibrary", // Typically the same name as the DLL
"Class":"IKnowBetterTestClassLibrary.SealedClass" // Use the fully-qualified name of the class
},
{
"IKnowBetter": "MakeClassPublic",
"Assembly": "IKnowBetterTestClassLibrary",
"Class":"IKnowBetterTestClassLibrary.PrivateClass"
},
{
"IKnowBetter": "MakeClassPublic",
"Assembly": "IKnowBetterTestClassLibrary",
"Class":"IKnowBetterTestClassLibrary.InternalClass" // MakeClassPublic works on internal classes as well as private!
},
{
"IKnowBetter": "FullyUnlockClass",
"Assembly": "IKnowBetterTestClassLibrary",
"Class":"IKnowBetterTestClassLibrary.LockedClass"
},
{
"IKnowBetter": "MakeMethodPublic",
"Assembly": "IKnowBetterTestClassLibrary",
"Class":"IKnowBetterTestClassLibrary.ClassWithPrivateMethod",
"Method": "GetString"
}
]
- Build your project
Classes that were previously inaccessible should now be accessible and your code should build successfully even if you are accessing them.
Your IDE may continue to complain because it has cached the original protection levels.
- Drop your IDE's caches
After dropping the IDE's cache, it should recognise the new protection levels and stop complaining!
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 117 | 3/19/2026 |