Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
モノラルサービスで実行時に実行されているガベージコレクターを検出したいと思います。これは可能ですか?
はい、可能です:
public static bool IsRunningWithSGen () { return System.GC.MaxGeneration > 0; }
ベームの代替案:
public static bool IsRunningWithBoehm () { return System.GC.MaxGeneration == 0; }