nullGuarded

Creates a PreProcessorFilter, which doesn't pass null as an input to filter.

Parameters

TSource

The type PreProcessorFilter filter accepts

TFilter

The type filter accepts

TResult

the type filter returns

transform

The transform to pass to PreProcessorFilter.transform

nullResult

The result to pass to NullGuardFilter.nullResult

filter

The sub-filter to evaluate