當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。