Results 3 issues of Diego Frata

Currently the generator will break with any types defined in C# top-level statement.

bug
help wanted

Another idea is to remove the runtime dependency, especially for those who don't use custom Comparers. They can be delivered explicitly (with `global::` full typepaths to avoid possible collisions). _Originally...

enhancement

## Description Resolves #4608 by ignoring exceptions thrown during Dispose. Also changes the call to Console.WriteLine to Debug.WriteLine as these messages are not desirable in a release build of a...

bug
PR: needs changes