Пример #1
0
 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)));
 }
Пример #2
0
 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));
 }
Пример #3
0
 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)));
 }