Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: bool OnExceptionIgnore<TException>(Action)

  • Declared in: RT.Util.Ut

Declaration

public static bool OnExceptionIgnore<TException>(
    Action action
)

Summary

Evaluates the specified code and returns its result. If the code throws TException, catches and suppresses it. Doesn't catch any other exceptions.

Generic type parameters

TException
  • Must derive from: System.Exception.
This type parameter is not documented.

Parameters

Actionaction The code to be executed.

Returns

True if action returned without exceptions, false if TException was caught and suppressed.