FilterQueryOptionExpression.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / ALinq / FilterQueryOptionExpression.cs / 1305376 / FilterQueryOptionExpression.cs

                            //---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//  
//      Respresents a filter query option in resource bound expression tree.
//  
// 
// @owner  [....]
//--------------------------------------------------------------------- 

namespace System.Data.Services.Client
{
    using System; 
    using System.Linq.Expressions;
 
    ///  
    /// An resource specific expression representing a filter query option.
    ///  
    internal class FilterQueryOptionExpression : QueryOptionExpression
    {
        /// predicate
        private Expression predicate; 

        ///  
        /// Creates a FilterQueryOptionExpression expression 
        /// 
        /// the return type of the expression 
        /// the predicate
        internal FilterQueryOptionExpression(Type type, Expression predicate)
            : base((ExpressionType)ResourceExpressionType.FilterQueryOption, type)
        { 
            this.predicate = predicate;
        } 
 
        /// Gets the query option value.
        internal Expression Predicate 
        {
            get
            {
                return this.predicate; 
            }
        } 
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//  
//      Respresents a filter query option in resource bound expression tree.
//  
// 
// @owner  [....]
//--------------------------------------------------------------------- 

namespace System.Data.Services.Client
{
    using System; 
    using System.Linq.Expressions;
 
    ///  
    /// An resource specific expression representing a filter query option.
    ///  
    internal class FilterQueryOptionExpression : QueryOptionExpression
    {
        /// predicate
        private Expression predicate; 

        ///  
        /// Creates a FilterQueryOptionExpression expression 
        /// 
        /// the return type of the expression 
        /// the predicate
        internal FilterQueryOptionExpression(Type type, Expression predicate)
            : base((ExpressionType)ResourceExpressionType.FilterQueryOption, type)
        { 
            this.predicate = predicate;
        } 
 
        /// Gets the query option value.
        internal Expression Predicate 
        {
            get
            {
                return this.predicate; 
            }
        } 
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.

                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK