CQRS.NET  2.2
A lightweight enterprise framework to write CQRS, event-sourced 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