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
- counter.cs
- FilteredAttributeCollection.cs
- FixedSOMSemanticBox.cs
- EventProxy.cs
- WebEvents.cs
- OutputScope.cs
- CustomValidator.cs
- AccessedThroughPropertyAttribute.cs
- LoggedException.cs
- Transform3DGroup.cs
- SchemaImporterExtensionElementCollection.cs
- OAVariantLib.cs
- WebPartCatalogCloseVerb.cs
- TriggerActionCollection.cs
- DataGridRelationshipRow.cs
- XmlAnyElementAttribute.cs
- EndPoint.cs
- Activity.cs
- EnumBuilder.cs
- StorageRoot.cs
- StringPropertyBuilder.cs
- Rijndael.cs
- EdmToObjectNamespaceMap.cs
- CookieParameter.cs
- PointAnimationUsingKeyFrames.cs
- CategoryNameCollection.cs
- SecurityPolicySection.cs
- ParallelDesigner.xaml.cs
- AllowedAudienceUriElementCollection.cs
- MetaType.cs
- MethodToken.cs
- SafeNativeMemoryHandle.cs
- TreeSet.cs
- ZeroOpNode.cs
- ScaleTransform.cs
- TimerEventSubscriptionCollection.cs
- KeyPullup.cs
- TargetConverter.cs
- TextSearch.cs
- RoutedEventArgs.cs
- URI.cs
- NetworkAddressChange.cs
- SiteMapDataSource.cs
- RowCache.cs
- panel.cs
- PageEventArgs.cs
- PageParser.cs
- AnnotationComponentChooser.cs
- OSFeature.cs
- TrackBarRenderer.cs
- BindingOperations.cs
- ImageClickEventArgs.cs
- WebBrowserEvent.cs
- PathSegmentCollection.cs
- ChannelSettingsElement.cs
- CodeFieldReferenceExpression.cs
- SqlNodeAnnotations.cs
- SizeLimitedCache.cs
- TextEditorParagraphs.cs
- Speller.cs
- SqlDataSourceFilteringEventArgs.cs
- InheritanceAttribute.cs
- SafeLibraryHandle.cs
- HttpResponseWrapper.cs
- _ProxyRegBlob.cs
- StateMachineSubscriptionManager.cs
- DropShadowBitmapEffect.cs
- dataobject.cs
- WorkflowRuntimeServicesBehavior.cs
- CodeDirectionExpression.cs
- TemplateBamlTreeBuilder.cs
- StringStorage.cs
- CellLabel.cs
- PropertyItemInternal.cs
- ActivityStatusChangeEventArgs.cs
- Executor.cs
- DataServiceProviderWrapper.cs
- ProcessHostFactoryHelper.cs
- XmlDataSourceView.cs
- DivideByZeroException.cs
- FontDialog.cs
- MessageDecoder.cs
- CodeAccessPermission.cs
- LogLogRecordEnumerator.cs
- GroupDescription.cs
- RelationshipConverter.cs
- Vector3D.cs
- WorkflowDesigner.cs
- CollectionView.cs
- DataTableTypeConverter.cs
- GeneratedCodeAttribute.cs
- DbException.cs
- _FixedSizeReader.cs
- EditorPart.cs
- EmbeddedObject.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- LocatorGroup.cs
- BatchServiceHost.cs
- TerminatorSinks.cs
- PageClientProxyGenerator.cs