mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-23 03:39:35 -10:00
Same treatment as in https://github.com/dotnet/corefx/pull/5238, but for System.Net.NameResolution. The call sites to GlobalLog methods often do a lot of allocation and other work, even in release builds and even when logging is disabled; this commit guards those call sites behind checks for whether logging is enabled. Commit migrated from https://github.com/dotnet/corefx/commit/2dcc601e4fec2a0bd15860521bd70012224a2be6