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
- ActivityCollectionMarkupSerializer.cs
- ChannelReliableSession.cs
- IPPacketInformation.cs
- unitconverter.cs
- SlipBehavior.cs
- EasingKeyFrames.cs
- AccessText.cs
- SimpleTextLine.cs
- RequiredAttributeAttribute.cs
- ControlEvent.cs
- TraceUtils.cs
- ToolStripArrowRenderEventArgs.cs
- ListBoxChrome.cs
- dbenumerator.cs
- messageonlyhwndwrapper.cs
- SizeFConverter.cs
- MethodImplAttribute.cs
- FirstQueryOperator.cs
- HtmlTitle.cs
- SchemaTableOptionalColumn.cs
- ObjectDataSourceMethodEventArgs.cs
- UpdateRecord.cs
- SqlConnectionHelper.cs
- COM2ColorConverter.cs
- StylusCollection.cs
- DefaultWorkflowSchedulerService.cs
- GlobalEventManager.cs
- LogLogRecordEnumerator.cs
- UpWmlMobileTextWriter.cs
- CachingHintValidation.cs
- Line.cs
- Drawing.cs
- SafeBitVector32.cs
- SystemIPInterfaceStatistics.cs
- BulletedList.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- Timer.cs
- XmlUtf8RawTextWriter.cs
- BoundsDrawingContextWalker.cs
- figurelengthconverter.cs
- RectAnimationBase.cs
- ModifierKeysValueSerializer.cs
- OleDbCommand.cs
- TCEAdapterGenerator.cs
- CompilerGeneratedAttribute.cs
- WebPartCancelEventArgs.cs
- RemoteWebConfigurationHostStream.cs
- DefaultTypeArgumentAttribute.cs
- GlyphRunDrawing.cs
- BooleanSwitch.cs
- RC2.cs
- __FastResourceComparer.cs
- ADMembershipUser.cs
- CorePropertiesFilter.cs
- DesignerLabelAdapter.cs
- Misc.cs
- translator.cs
- EventManager.cs
- BroadcastEventHelper.cs
- _SslState.cs
- RectangleHotSpot.cs
- CompiledQueryCacheEntry.cs
- StorageMappingItemCollection.cs
- VirtualizedItemPattern.cs
- ChineseLunisolarCalendar.cs
- ClipboardProcessor.cs
- SR.cs
- Point4D.cs
- ConversionHelper.cs
- MouseButton.cs
- CodeIterationStatement.cs
- Item.cs
- BmpBitmapDecoder.cs
- TcpServerChannel.cs
- ContextMarshalException.cs
- EntityDesignPluralizationHandler.cs
- Point3DKeyFrameCollection.cs
- XmlTextAttribute.cs
- OpenFileDialog.cs
- XComponentModel.cs
- FrameworkElementFactoryMarkupObject.cs
- XmlSchemaSimpleTypeList.cs
- WithStatement.cs
- GridViewUpdatedEventArgs.cs
- HttpWriter.cs
- HighlightVisual.cs
- DataViewSettingCollection.cs
- XmlSignatureProperties.cs
- ConfigurationException.cs
- StatusStrip.cs
- DefaultPrintController.cs
- ContentPlaceHolder.cs
- StringFormat.cs
- Size3D.cs
- XmlSchemaAttributeGroup.cs
- ColumnClickEvent.cs
- JavaScriptString.cs
- HandlerFactoryWrapper.cs
- SymmetricKey.cs
- MorphHelper.cs