本文整理汇总了C#中System.Linq.Expressions.MemberMemberBinding类的典型用法代码示例。如果您正苦于以下问题:C# MemberMemberBinding类的具体用法?C# MemberMemberBinding怎么用?C# MemberMemberBinding使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MemberMemberBinding类属于System.Linq.Expressions命名空间,在下文中一共展示了MemberMemberBinding类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: VisitMemberMemberBinding
/// <summary>
/// Visits a MemberMemberBinding.
/// </summary>
/// <param name="node">The MemberMemberBinding.</param>
/// <returns>The MemberMemberBinding (possibly modified).</returns>
protected virtual MemberMemberBinding VisitMemberMemberBinding(MemberMemberBinding node)
{
IEnumerable<MemberBinding> bindings = this.VisitMemberBindingList(node.Bindings);
if (bindings != node.Bindings)
{
return Expression.MemberBind(node.Member, bindings);
}
return node;
}
示例2: VisitMemberMemberBinding
/// <summary>
/// Visit a member binding expression.
/// </summary>
/// <param name="memberBindingExp"></param>
/// <returns></returns>
protected virtual MemberMemberBinding VisitMemberMemberBinding(MemberMemberBinding memberBindingExp)
{
IEnumerable<MemberBinding> bindings = VisitBindingList(memberBindingExp.Bindings);
return bindings != memberBindingExp.Bindings ? Expression.MemberBind(memberBindingExp.Member, bindings) : memberBindingExp;
}
示例3: VisitMemberMemberBinding
protected virtual MemberMemberBinding VisitMemberMemberBinding(MemberMemberBinding binding)
{
IEnumerable<MemberBinding> bindings = VisitBindingList(binding.Bindings);
// ReSharper disable once PossibleUnintendedReferenceComparison
if(bindings != binding.Bindings)
{
return System.Linq.Expressions.Expression.MemberBind(binding.Member, bindings);
}
return binding;
}
示例4: UpdateMemberMemberBinding
protected MemberMemberBinding UpdateMemberMemberBinding(MemberMemberBinding binding, MemberInfo member, IEnumerable<MemberBinding> bindings)
{
if (bindings != binding.Bindings || member != binding.Member)
{
return Expression.MemberBind(member, bindings);
}
return binding;
}
示例5: MemberMemberBindingNode
public MemberMemberBindingNode(NodeContext factory, MemberMemberBinding memberMemberBinding) : base(factory, memberMemberBinding.BindingType, memberMemberBinding.Member)
{
Bindings = new MemberBindingNodeList(factory, memberMemberBinding.Bindings);
}
示例6: VisitMemberMemberBinding
/// <summary>
/// Visits a MemberMemberBinding.
/// </summary>
/// <param name="node">The MemberMemberBinding.</param>
/// <returns>The MemberMemberBinding.</returns>
protected override MemberMemberBinding VisitMemberMemberBinding(MemberMemberBinding node)
{
_sb.Append("<MemberMemberBinding>");
return node;
}
示例7: CompareMemberMemberBinding
protected virtual bool CompareMemberMemberBinding(MemberMemberBinding a, MemberMemberBinding b)
{
return a.Member == b.Member
&& this.CompareBindingList(a.Bindings, b.Bindings);
}
示例8: MemberMemberBindingMutator
public MemberMemberBindingMutator(MemberMemberBinding memberMemberBinding)
{
MemberMemberBinding = memberMemberBinding;
}
示例9: VisitMemberMemberBinding
internal virtual MemberMemberBinding VisitMemberMemberBinding(MemberMemberBinding binding)
{
var bindings = VisitBindingList(binding.Bindings);
if (bindings != binding.Bindings)
{
return Expression.MemberBind(binding.Member, bindings);
}
return binding;
}
示例10: VisitMemberMemberBinding
protected virtual void VisitMemberMemberBinding(MemberMemberBinding binding)
{
this.VisitBindingList(binding.Bindings);
throw new NotImplementedException ();
}
示例11: VisitMemberMemberBinding
/// <summary>
/// MemberMemberBinding visit method
/// </summary>
/// <param name="binding">The MemberMemberBinding to visit</param>
/// <returns>The visited MemberMemberBinding</returns>
internal override MemberMemberBinding VisitMemberMemberBinding(MemberMemberBinding binding)
{
throw new NotImplementedException();
}
示例12: PVisitMemberMemberBinding
protected virtual void PVisitMemberMemberBinding(MemberMemberBinding binding)
{
}
示例13: VisitMemberMemberBinding
protected virtual string VisitMemberMemberBinding(MemberMemberBinding binding)
{
throw new NotSupportedException();
}
示例14: VisitMemberMemberBinding
private Expression VisitMemberMemberBinding(MemberMemberBinding binding)
{
foreach (var p in this.VisitBindingList(binding.Bindings))
{
if (p != null)
return p;
}
return null;
}
示例15: SerializableMemberMemberBinding
/// <summary>
/// Constructor with an <see cref="MemberMemberBinding"/> and an <see cref="ExpressionConverter"/>.
/// </summary>
/// <param name="memberMemberBinding">The original, not serializable <see cref="MemberBinding"/>.</param>
/// <param name="expConverter">The <see cref="ExpressionConverter"/> to convert contained <see cref="Expression">Expressions</see>.</param>
public SerializableMemberMemberBinding(MemberMemberBinding memberMemberBinding, ExpressionConverter expConverter)
: base(memberMemberBinding, expConverter)
{
Bindings = expConverter.ConvertToSerializableObjectCollection<SerializableMemberBinding>(memberMemberBinding.Bindings);
}