public static IBindingModeInfoBehaviorSyntax ToSelf <TTarget>( [NotNull] this IBindingToSyntax <TTarget> syntaxGeneric, [NotNull] Expression <Func <TTarget, object> > selfPath) { Should.NotBeNull(selfPath, "selfPath"); return(ToSelf(syntaxGeneric, BindingExtensions.GetMemberPath(selfPath))); }
public static IBindingToSyntax <TTarget> Bind <TTarget>([NotNull] this IBindingBuilder builder, [NotNull] TTarget target, [NotNull] Expression <Func <TTarget, object> > targetPath) where TTarget : class { Should.NotBeNull(targetPath, "targetPath"); Bind(builder, target, BindingExtensions.GetMemberPath(targetPath)); return(new SyntaxBuilder <TTarget, object>(builder)); }
public static IBindingModeInfoBehaviorSyntax To <TTarget, TSource>( [NotNull] this IBindingToSyntax <TTarget, TSource> syntax, [NotNull] Expression <Func <TSource, object> > sourcePath) { Should.NotBeNull(sourcePath, "sourcePath"); return(syntax.To(BindingExtensions.GetMemberPath(sourcePath))); }
public static IBindingToSyntax <TTarget, TSource> Bind <TTarget, TSource>([NotNull] this IBindingBuilder builder, [NotNull] TTarget target, [NotNull] Func <Expression <Func <TTarget, object> > > targetPath) where TTarget : class { return(builder.Bind <TTarget, TSource>(target, BindingExtensions.GetMemberPath(targetPath))); }