internal static bool GetCachedSwitchValue(string switchName, ref int switchValue) { if (switchValue < 0) { return(false); } if (switchValue > 0) { return(true); } return(AppContextSwitches.GetCachedSwitchValueInternal(switchName, ref switchValue)); }
internal static bool GetCachedSwitchValue(string switchName, ref int switchValue) { return(switchValue >= 0 && (switchValue > 0 || AppContextSwitches.GetCachedSwitchValueInternal(switchName, ref switchValue))); }