当前位置: 首页>>代码示例>>C#>>正文


C# Expressions.MemberListBinding类代码示例

本文整理汇总了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;
		}
开发者ID:tumtumtum,项目名称:Shaolinq,代码行数:7,代码来源:ProjectorFormatter.cs

示例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));
     }
 }
开发者ID:juanplopes,项目名称:simple,代码行数:9,代码来源:EditableMemberListBinding.cs

示例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;
 }
开发者ID:NatashaSchutte,项目名称:Warewolf-ESB,代码行数:10,代码来源:ExpressionVisitor.cs

示例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;
        }
开发者ID:jd-pantheon,项目名称:Titan-Framework-v2,代码行数:11,代码来源:ExpressionVisitor.cs

示例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;
 }
开发者ID:PaybackMan,项目名称:Cinder,代码行数:10,代码来源:ExpressionWriter.cs

示例6: VisitMemberListBinding

 protected virtual MemberListBinding VisitMemberListBinding(MemberListBinding binding)
 {
     IEnumerable<ElementInit> initializers = this.VisitElementInitializerList(binding.Initializers);
     return this.UpdateMemberListBinding(binding, binding.Member, initializers);
 }
开发者ID:Bitwix,项目名称:XeroAPI.Net,代码行数:5,代码来源:ExpressionVisitor.cs

示例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; 
 }
开发者ID:larsenjo,项目名称:odata.net,代码行数:10,代码来源:NonClrExpressionTreeToXmlSerializer.cs

示例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
		}
开发者ID:BEllis,项目名称:SpecFlow,代码行数:9,代码来源:ExpressionInterpreter.cs

示例9: VisitMemberListBinding

 protected virtual void VisitMemberListBinding(MemberListBinding binding)
 {
     this.VisitElementInitializerList(binding.Initializers);
     throw new NotImplementedException ();
 }
开发者ID:kewell-tsao,项目名称:AluminumLua,代码行数:5,代码来源:ExpressionVisitor.cs

示例10: PVisitMemberListBinding

 protected virtual void PVisitMemberListBinding(MemberListBinding binding)
 {
 }
开发者ID:mbsky,项目名称:dotnetmarcheproject,代码行数:3,代码来源:PostfixExpressionVisitor.cs

示例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);
 }
开发者ID:yallie,项目名称:zyan,代码行数:10,代码来源:SerializableMemberListBinding.cs

示例12: VisitMemberListBinding

 protected virtual string VisitMemberListBinding(MemberListBinding binding)
 {
     throw new NotSupportedException();
 }
开发者ID:Robelind,项目名称:knockout-mvc,代码行数:4,代码来源:KnockoutExpressionConverter.cs

示例13: VisitMemberListBinding

        private Expression VisitMemberListBinding(MemberListBinding binding)
        {
            foreach (var p in this.VisitElementInitializerList(binding.Initializers))
            {
                if (p != null)
                    return p;
            }

            return null;
        }
开发者ID:laymain,项目名称:CodeDomUtils,代码行数:10,代码来源:QueryVisitor.cs

示例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;
 }
开发者ID:purplecow,项目名称:mongo-csharp-driver,代码行数:14,代码来源:ExpressionVisitor.cs

示例15: VisitMemberListBinding

 /// <summary>
 /// Visits a MemberListBinding
 /// </summary>
 /// <param name="binding">MemberListBinding Expression</param>
 protected virtual void VisitMemberListBinding(MemberListBinding binding)
 {
     VisitElementInitializerList(binding.Initializers);
 }
开发者ID:daszat,项目名称:zetbox,代码行数:8,代码来源:ExpressionTreeVisitor.cs


注:本文中的System.Linq.Expressions.MemberListBinding类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。