本文整理汇总了C#中System.Linq.Expressions.MemberListBinding类的典型用法代码示例。如果您正苦于以下问题:C# MemberListBinding类的具体用法?C# MemberListBinding怎么用?C# MemberListBinding使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MemberListBinding类属于System.Linq.Expressions命名空间,在下文中一共展示了MemberListBinding类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: VisitMemberListBinding
protected override MemberListBinding VisitMemberListBinding(MemberListBinding binding)
{
this.output.Append(binding.Member.Name).Append(" = ");
this.VisitElementInitializerList(binding.Initializers);
return binding;
}
示例2: EditableMemberListBinding
public EditableMemberListBinding(MemberListBinding member)
: base(member.BindingType, member.Member)
{
Initializers = new EditableElementInitCollection();
foreach (ElementInit e in member.Initializers)
{
Initializers.Add(new EditableElementInit(e));
}
}
示例3: VisitMemberListBinding
protected virtual MemberListBinding VisitMemberListBinding(MemberListBinding binding)
{
IEnumerable<ElementInit> initializers = VisitElementInitializerList(binding.Initializers);
// ReSharper disable once PossibleUnintendedReferenceComparison
if(initializers != binding.Initializers)
{
return System.Linq.Expressions.Expression.ListBind(binding.Member, initializers);
}
return binding;
}
示例4: VisitMemberListBinding
/// <summary>
/// Visit a member list binding expression.
/// </summary>
/// <param name="listBindingExp"></param>
/// <returns></returns>
protected virtual MemberListBinding VisitMemberListBinding(MemberListBinding listBindingExp)
{
IEnumerable<ElementInit> initializers = VisitElementInitializerList(listBindingExp.Initializers);
return initializers != listBindingExp.Initializers ? Expression.ListBind(listBindingExp.Member, initializers) : listBindingExp;
}
示例5: VisitMemberListBinding
protected override MemberListBinding VisitMemberListBinding(MemberListBinding binding)
{
this.Write(binding.Member.Name);
this.Write(" = {");
this.WriteLine(Indentation.Inner);
this.VisitElementInitializerList(binding.Initializers);
this.WriteLine(Indentation.Outer);
this.Write("}");
return binding;
}
示例6: VisitMemberListBinding
protected virtual MemberListBinding VisitMemberListBinding(MemberListBinding binding)
{
IEnumerable<ElementInit> initializers = this.VisitElementInitializerList(binding.Initializers);
return this.UpdateMemberListBinding(binding, binding.Member, initializers);
}
示例7: VisitMemberListBinding
/// <summary>
/// MemberListBinding visit method
/// </summary>
/// <param name="binding">The MemberListBinding to visit</param>
/// <returns>The visited MemberListBinding</returns>
internal override MemberListBinding VisitMemberListBinding(MemberListBinding binding)
{
this.VisitElementInitializerList(binding.Initializers);
return binding;
}
示例8: VisitMemberListBinding
protected override void VisitMemberListBinding (MemberListBinding binding)
{
var value = Pop ();
Push (value);
VisitMemberInfo (binding.Member);
VisitElementInitializerList (binding.Initializers);
Pop (); // pop the member
Push (value); // push the original target
}
示例9: VisitMemberListBinding
protected virtual void VisitMemberListBinding(MemberListBinding binding)
{
this.VisitElementInitializerList(binding.Initializers);
throw new NotImplementedException ();
}
示例10: PVisitMemberListBinding
protected virtual void PVisitMemberListBinding(MemberListBinding binding)
{
}
示例11: SerializableMemberListBinding
/// <summary>
/// Constructor with an <see cref="MemberListBinding"/> and an <see cref="ExpressionConverter"/>.
/// </summary>
/// <param name="memberListBinding">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 SerializableMemberListBinding(MemberListBinding memberListBinding, ExpressionConverter expConverter)
: base(memberListBinding, expConverter)
{
Initializers = expConverter.ConvertToSerializableObjectCollection<SerializableElementInit>(memberListBinding.Initializers);
}
示例12: VisitMemberListBinding
protected virtual string VisitMemberListBinding(MemberListBinding binding)
{
throw new NotSupportedException();
}
示例13: VisitMemberListBinding
private Expression VisitMemberListBinding(MemberListBinding binding)
{
foreach (var p in this.VisitElementInitializerList(binding.Initializers))
{
if (p != null)
return p;
}
return null;
}
示例14: VisitMemberListBinding
/// <summary>
/// Visits a MemberListBinding.
/// </summary>
/// <param name="node">The MemberListBinding.</param>
/// <returns>The MemberListBinding (possibly modified).</returns>
protected virtual MemberListBinding VisitMemberListBinding(MemberListBinding node)
{
IEnumerable<ElementInit> initializers = this.VisitElementInitList(node.Initializers);
if (initializers != node.Initializers)
{
return Expression.ListBind(node.Member, initializers);
}
return node;
}
示例15: VisitMemberListBinding
/// <summary>
/// Visits a MemberListBinding
/// </summary>
/// <param name="binding">MemberListBinding Expression</param>
protected virtual void VisitMemberListBinding(MemberListBinding binding)
{
VisitElementInitializerList(binding.Initializers);
}