ExceptUtilIgnoreAllExceptionsTr(FuncTr) Method
Ignore all exceptions and return null instead.
Namespace: Karamba.UtilitiesAssembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
public static Tr IgnoreAllExceptions<Tr>(
Func<Tr> func
)
where Tr : class
Public Shared Function IgnoreAllExceptions(Of Tr As Class) (
func As Func(Of Tr)
) As Tr
public:
generic<typename Tr>
where Tr : ref class
static Tr IgnoreAllExceptions(
Func<Tr>^ func
)
static member IgnoreAllExceptions :
func : Func<'Tr> -> 'Tr when 'Tr : not struct
- func FuncTr
- the function to execute.
- Tr
- type of result.
Trthe value or null.
Ensure that func can return null.