public static IReflectedPrimitive <TView> Event <TView>(this IReflectedPrimitive <TView> primitive, Expression <Func <TView, string> > eventNameExpression, Action action) where TView : class { Reflect <TView> .ReflectionHelpers.Event(primitive.Attributes, eventNameExpression, action); return(primitive); }
public static ContentView <TElement> ContentView <TElement>(IReflectedPrimitive <TElement> content) where TElement : ContentView => new ContentView <TElement>(content);
public static IReflectedPrimitive <TView> With <TView, TProp>(this IReflectedPrimitive <TView> primitive, Expression <Func <TView, TProp> > propertySetExpression, TProp value) { Reflect <TView> .ReflectionHelpers.Set(primitive.Attributes, propertySetExpression, value); return(primitive); }
public static IReflectedPrimitive <TView> Call <TView, TParam1, TParam2>(this IReflectedPrimitive <TView> primitive, Expression <Action <TView, TParam1, TParam2> > propertyCallExpression, TParam1 value1, TParam2 value2) { Reflect <TView> .ReflectionHelpers.Call(primitive.Attributes, propertyCallExpression, value1, value2); return(primitive); }