本文整理匯總了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);
}