CQRS.NET  4.0
A lightweight enterprise Function as a Service (FaaS) framework to write function based serverless and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.

◆ CastArgument< TBase, TDerived >()

static Action<TBase> Cqrs.Infrastructure.DelegateAdjuster.CastArgument< TBase, TDerived > ( Expression< Action< TDerived >>  source)
static

If TDerived equals TBase then source is compiled using Expression<TDelegate>.Compile() Otherwise source is converted to type TDerived from TBase

Template Parameters
TBaseThe source Type.
TDerivedThe target Type.
Parameters
sourceThe delegate to adjust.
Type Constraints
TDerived :TBase