ExceptUtilIgnoreAllExceptionsTr(FuncTr) Method

Ignore all exceptions and return null instead.

Definition

Namespace: Karamba.Utilities
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
public static Tr IgnoreAllExceptions<Tr>(
	Func<Tr> func
)
where Tr : class

Parameters

func  FuncTr
the function to execute.

Type Parameters

Tr
type of result.

Return Value

Tr
the value or null.

Remarks

Ensure that func can return null.

See Also