示例#1
0
 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));
 }
示例#2
0
 internal static bool GetCachedSwitchValue(string switchName, ref int switchValue)
 {
     return(switchValue >= 0 && (switchValue > 0 || AppContextSwitches.GetCachedSwitchValueInternal(switchName, ref switchValue)));
 }