private static bool IsComponentEnabled(AutomaticLinkConfiguration.Components component) { if (AutomaticLinkConfiguration.enableAutomaticLinking == null) { AutomaticLinkConfiguration.enableAutomaticLinking = new AutomaticLinkConfiguration.Components?((AutomaticLinkConfiguration.Components)Util.GetRegistryValueOrDefault(AutomaticLinkConfiguration.RegistryKeysLocation, AutomaticLinkConfiguration.EnableAutomaticLinkingValueName, 5, AutomaticLinkConfiguration.Tracer)); } return((AutomaticLinkConfiguration.enableAutomaticLinking & component) != (AutomaticLinkConfiguration.Components) 0); }
internal static void Disable(AutomaticLinkConfiguration.Components components) { AutomaticLinkConfiguration.enableAutomaticLinking &= ~components; }