OrderingExpression.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 / Server / System / Data / Services / Providers / OrderingExpression.cs / 1407647 / OrderingExpression.cs

                            //---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//  
//      Describes a single ordering expression with sort order for
//     $expands for a WCF Data Service. 
//  
//
// @owner  [....] 
//---------------------------------------------------------------------

namespace System.Data.Services.Providers
{ 
    #region Namespaces
    using System.Linq.Expressions; 
    #endregion 

    ///  
    /// Describes a single ordering expression along with sort order
    /// 
    internal sealed class OrderingExpression
    { 
        /// Ordering expression
        private readonly Expression orderingExpression; 
 
        /// Order is ascending or descending
        private readonly bool isAscending; 

        /// 
        /// Constructor
        ///  
        /// Expression for ordering
        /// Order by ascending or descending 
        public OrderingExpression(Expression orderingExpression, bool isAscending) 
        {
            this.orderingExpression = orderingExpression; 
            this.isAscending = isAscending;
        }

        /// Ordering expression 
        public Expression Expression
        { 
            get 
            {
                return this.orderingExpression; 
            }
        }

        /// Ascending or descending 
        public bool IsAscending
        { 
            get 
            {
                return this.isAscending; 
            }
        }
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//  
//      Describes a single ordering expression with sort order for
//     $expands for a WCF Data Service. 
//  
//
// @owner  [....] 
//---------------------------------------------------------------------

namespace System.Data.Services.Providers
{ 
    #region Namespaces
    using System.Linq.Expressions; 
    #endregion 

    ///  
    /// Describes a single ordering expression along with sort order
    /// 
    internal sealed class OrderingExpression
    { 
        /// Ordering expression
        private readonly Expression orderingExpression; 
 
        /// Order is ascending or descending
        private readonly bool isAscending; 

        /// 
        /// Constructor
        ///  
        /// Expression for ordering
        /// Order by ascending or descending 
        public OrderingExpression(Expression orderingExpression, bool isAscending) 
        {
            this.orderingExpression = orderingExpression; 
            this.isAscending = isAscending;
        }

        /// Ordering expression 
        public Expression Expression
        { 
            get 
            {
                return this.orderingExpression; 
            }
        }

        /// Ascending or descending 
        public bool IsAscending
        { 
            get 
            {
                return this.isAscending; 
            }
        }
    }
} 

// 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