UntypedNullExpression.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / UntypedNullExpression.cs / 1 / UntypedNullExpression.cs

                            //---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// 
// @owner  [....], [....]
//--------------------------------------------------------------------- 
 
using System;
using System.Collections.Generic; 
using System.Diagnostics;
using System.Globalization;

using System.Data.Metadata.Edm; 
using System.Data.Common.CommandTrees;
 
namespace System.Data.Common.EntitySql 
{
    ///  
    /// Represents an untyped null.
    /// 
    internal sealed class UntypedNullExpression : DbExpression
    { 
        internal UntypedNullExpression( DbCommandTree commandTree )
            : base( commandTree, DbExpressionKind.Null ) 
        { 
            this.ResultType = TypeUsage.NullType;
        } 

        /// 
        /// The visitor pattern method for expression visitors that do not produce a result value.
        ///  
        /// An instance of DbExpressionVisitor.
        public override void Accept( DbExpressionVisitor visitor ) 
        { 
            throw EntityUtil.NotSupported();
        } 

        /// 
        /// The visitor pattern method for expression visitors that produce a result value of a specific type.
        ///  
        /// An instance of a typed DbExpressionVisitor that produces a result value of type TResultType.
        public override T Accept( DbExpressionVisitor visitor ) 
        { 
            throw EntityUtil.NotSupported();
        } 
    }
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//---------------------------------------------------------------------- 
// 
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// 
// @owner  [....], [....]
//--------------------------------------------------------------------- 
 
using System;
using System.Collections.Generic; 
using System.Diagnostics;
using System.Globalization;

using System.Data.Metadata.Edm; 
using System.Data.Common.CommandTrees;
 
namespace System.Data.Common.EntitySql 
{
    ///  
    /// Represents an untyped null.
    /// 
    internal sealed class UntypedNullExpression : DbExpression
    { 
        internal UntypedNullExpression( DbCommandTree commandTree )
            : base( commandTree, DbExpressionKind.Null ) 
        { 
            this.ResultType = TypeUsage.NullType;
        } 

        /// 
        /// The visitor pattern method for expression visitors that do not produce a result value.
        ///  
        /// An instance of DbExpressionVisitor.
        public override void Accept( DbExpressionVisitor visitor ) 
        { 
            throw EntityUtil.NotSupported();
        } 

        /// 
        /// The visitor pattern method for expression visitors that produce a result value of a specific type.
        ///  
        /// An instance of a typed DbExpressionVisitor that produces a result value of type TResultType.
        public override T Accept( DbExpressionVisitor visitor ) 
        { 
            throw EntityUtil.NotSupported();
        } 
    }
}

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