<Rule Id="CA2100" Action="None" /> <!-- Review SQL queries for security vulnerabilities -->
<Rule Id="CA2101" Action="None" /> <!-- Specify marshaling for P/Invoke string arguments -->
<Rule Id="CA2119" Action="None" /> <!-- Seal methods that satisfy private interfaces -->
- <Rule Id="CA2200" Action="None" /> <!-- Rethrowing caught exception changes stack information -->
<Rule Id="CA2207" Action="None" /> <!-- Initialize value type static fields inline -->
<Rule Id="CA2208" Action="None" /> <!-- Instantiate exception arguments correctly -->
<Rule Id="CA2211" Action="None" /> <!-- Non-constant fields should not be visible -->
{
value = site.Target(site, obj);
}
- catch (DynamicBindingFailedException exp)
+ catch (DynamicBindingFailedException)
{
if (ignoreException)
value = null;
else
- throw exp;
+ throw;
}
- catch (MissingMemberException exp)
+ catch (MissingMemberException)
{
if (ignoreException)
value = SR.GetValueonWriteOnlyProperty;
else
- throw exp;
+ throw;
}
return value;
}
if (coEx == CheckoutException.Canceled) {
return;
}
- throw coEx;
+ throw;
}
changeService.OnComponentChanging(component, this);
}
if (coEx == CheckoutException.Canceled) {
return;
}
- throw coEx;
+ throw;
}
changeService.OnComponentChanging(component, this);
}
{
return;
}
- throw coEx;
+ throw;
}
}
{
return;
}
- throw coEx;
+ throw;
}
}
{
return;
}
- throw coEx;
+ throw;
}
}
{
return;
}
- throw coEx;
+ throw;
}
}
}
else
{
- throw t;
+ throw;
}
}
}
// deferred until after the row has been completely added.
if (action != DataRowAction.Add)
{
- throw exc;
+ throw;
}
else
{
s = (string)Buffer.MarshalToManaged(0, ODBC32.SQL_C.WCHAR, ODBC32.SQL_NTS);
_dataCache[i] = decimal.Parse(s, System.Globalization.CultureInfo.InvariantCulture);
}
- catch (OverflowException e)
+ catch (OverflowException)
{
_dataCache[i] = s;
- throw e;
+ throw;
}
}
}
|| _timeout.MillisecondsRemaining < transientRetryIntervalInMilliSeconds
|| !IsTransientError(sqlex))
{
- throw sqlex;
+ throw;
}
else
{
}
else
{
- throw e;
+ throw;
}
}
// We don't want to call library.Close() here because that would cause us to unload all of the perflibs.
if (e is System.Runtime.InteropServices.COMException)
throw ExceptionHelper.GetExceptionFromCOMException((System.Runtime.InteropServices.COMException)e);
else
- throw e;
+ throw;
}
}
if (e is System.Runtime.InteropServices.COMException)
throw ExceptionHelper.GetExceptionFromCOMException((System.Runtime.InteropServices.COMException)e);
else
- throw e;
+ throw;
}
}
}
}
- throw e;
+ throw;
}
if (result is UnsafeNativeMethods.IAds)
}
}
- throw e;
+ throw;
}
return result;
}
}
- throw e;
+ throw;
}
}