Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / AST / BuiltInExpr.cs / 1305376 / BuiltInExpr.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
namespace System.Data.Common.EntitySql.AST
{
using System;
using System.Globalization;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
///
/// Defines the function class of builtin expressions.
///
internal enum BuiltInKind
{
And,
Or,
Not,
Cast,
OfType,
Treat,
IsOf,
Union,
UnionAll,
Intersect,
Overlaps,
AnyElement,
Element,
Except,
Exists,
Flatten,
In,
NotIn,
Distinct,
IsNull,
IsNotNull,
Like,
Equal,
NotEqual,
LessEqual,
LessThan,
GreaterThan,
GreaterEqual,
Plus,
Minus,
Multiply,
Divide,
Modulus,
UnaryMinus,
UnaryPlus,
Between,
NotBetween
}
///
/// Represents a builtin expression ast node.
///
internal sealed class BuiltInExpr : Node
{
private BuiltInExpr(BuiltInKind kind, string name)
{
Kind = kind;
Name = name.ToUpperInvariant();
}
internal BuiltInExpr(BuiltInKind kind, string name, Node arg1)
: this(kind, name)
{
ArgCount = 1;
Arg1 = arg1;
}
internal BuiltInExpr(BuiltInKind kind, string name, Node arg1, Node arg2)
: this(kind, name)
{
ArgCount = 2;
Arg1 = arg1;
Arg2 = arg2;
}
internal BuiltInExpr(BuiltInKind kind, string name, Node arg1, Node arg2, Node arg3)
: this(kind, name)
{
ArgCount = 3;
Arg1 = arg1;
Arg2 = arg2;
Arg3 = arg3;
}
internal BuiltInExpr(BuiltInKind kind, string name, Node arg1, Node arg2, Node arg3, Node arg4)
: this(kind, name)
{
ArgCount = 4;
Arg1 = arg1;
Arg2 = arg2;
Arg3 = arg3;
Arg4 = arg4;
}
internal readonly BuiltInKind Kind;
internal readonly string Name;
internal readonly int ArgCount;
internal readonly Node Arg1;
internal readonly Node Arg2;
internal readonly Node Arg3;
internal readonly Node Arg4;
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlCachedBuffer.cs
- FilteredSchemaElementLookUpTable.cs
- CrossSiteScriptingValidation.cs
- DataGridAddNewRow.cs
- ProfileProvider.cs
- RoutedEventValueSerializer.cs
- ValidationError.cs
- BackStopAuthenticationModule.cs
- ProjectionCamera.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- SimpleFieldTemplateFactory.cs
- XmlAutoDetectWriter.cs
- ScrollChrome.cs
- SynchronizedDispatch.cs
- SchemaNamespaceManager.cs
- MemberCollection.cs
- DataGridViewImageColumn.cs
- QilUnary.cs
- ElasticEase.cs
- StickyNoteContentControl.cs
- DesignTimeDataBinding.cs
- ListViewDataItem.cs
- BreakRecordTable.cs
- UnsafePeerToPeerMethods.cs
- Size3DValueSerializer.cs
- ManualResetEvent.cs
- AuthStoreRoleProvider.cs
- ThreadInterruptedException.cs
- MetadataPropertyAttribute.cs
- ActivityTypeCodeDomSerializer.cs
- TableLayoutStyleCollection.cs
- XmlException.cs
- AbstractSvcMapFileLoader.cs
- FontInfo.cs
- ColorKeyFrameCollection.cs
- TextRunCacheImp.cs
- ErrorRuntimeConfig.cs
- PanelContainerDesigner.cs
- HttpValueCollection.cs
- DataGridCellInfo.cs
- AdRotator.cs
- DeclarativeCatalogPart.cs
- XmlValueConverter.cs
- CheckPair.cs
- XmlIgnoreAttribute.cs
- XmlNodeComparer.cs
- WorkerRequest.cs
- PasswordRecovery.cs
- CharKeyFrameCollection.cs
- MailMessage.cs
- SafeLibraryHandle.cs
- __ConsoleStream.cs
- ServiceMetadataBehavior.cs
- InvalidPrinterException.cs
- PrePostDescendentsWalker.cs
- SafeSecurityHandles.cs
- PathGeometry.cs
- BaseTemplateBuildProvider.cs
- ByteStreamMessageEncoderFactory.cs
- DesignBindingPropertyDescriptor.cs
- StringValidatorAttribute.cs
- StreamHelper.cs
- PenLineCapValidation.cs
- NavigationFailedEventArgs.cs
- ChannelOptions.cs
- HttpWebRequest.cs
- TabItem.cs
- RemoteWebConfigurationHostServer.cs
- SqlRewriteScalarSubqueries.cs
- MetadataSerializer.cs
- InputLanguageCollection.cs
- PeerOutputChannel.cs
- DeadCharTextComposition.cs
- XslAstAnalyzer.cs
- AppAction.cs
- SiteMapDataSourceDesigner.cs
- StringArrayEditor.cs
- GeneralTransform3DGroup.cs
- ISO2022Encoding.cs
- GridSplitter.cs
- HtmlTextArea.cs
- AccessDataSourceView.cs
- ChtmlCalendarAdapter.cs
- log.cs
- XmlnsCompatibleWithAttribute.cs
- FixedTextView.cs
- DbBuffer.cs
- ToolBarTray.cs
- ImageMapEventArgs.cs
- HeaderUtility.cs
- LambdaCompiler.Statements.cs
- ContentHostHelper.cs
- Image.cs
- XmlNodeList.cs
- QilList.cs
- ExternalDataExchangeClient.cs
- XPathNavigatorKeyComparer.cs
- GuidelineCollection.cs
- PreservationFileWriter.cs
- WsdlServiceChannelBuilder.cs