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 / BuiltInExpr.cs / 2 / BuiltInExpr.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backup [....] //--------------------------------------------------------------------- namespace System.Data.Common.EntitySql { using System; using System.Globalization; using System.Collections; using System.Collections.Generic; ////// 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 ast expression node /// internal sealed class BuiltInExpr : Expr { private BuiltInKind _kind; private string _name; private ExprList_argList = new ExprList (); private BuiltInExpr( BuiltInKind kind, string name ) { _kind = kind; _name = name.ToUpperInvariant(); } internal BuiltInExpr( BuiltInKind kind, string name, Expr arg1 ) : this(kind, name) { _argList.Add(arg1); } internal BuiltInExpr( BuiltInKind kind, string name, Expr arg1, Expr arg2 ) : this(kind, name, arg1) { _argList.Add(arg2); } internal BuiltInExpr( BuiltInKind kind, string name, Expr arg1, Expr arg2, Expr arg3 ) : this(kind, name, arg1, arg2) { _argList.Add(arg3); } internal BuiltInExpr( BuiltInKind kind, string name, Expr arg1, Expr arg2, Expr arg3, Expr arg4 ) : this(kind, name, arg1, arg2, arg3) { _argList.Add(arg4); } internal BuiltInKind Kind { get { return _kind; } set { _kind = value; } } internal string Name { get { return _name; } } internal ExprList ArgList { get { return _argList; } } internal Expr Arg1 { get { if (_argList.Count < 1) { return null; } return _argList[0]; } } internal Expr Arg2 { get { if (_argList.Count < 2) return null; return _argList[1]; } } internal int ArgCount { get { return ArgList.Count; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backup [....] //--------------------------------------------------------------------- namespace System.Data.Common.EntitySql { using System; using System.Globalization; using System.Collections; using System.Collections.Generic; ////// 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 ast expression node /// internal sealed class BuiltInExpr : Expr { private BuiltInKind _kind; private string _name; private ExprList_argList = new ExprList (); private BuiltInExpr( BuiltInKind kind, string name ) { _kind = kind; _name = name.ToUpperInvariant(); } internal BuiltInExpr( BuiltInKind kind, string name, Expr arg1 ) : this(kind, name) { _argList.Add(arg1); } internal BuiltInExpr( BuiltInKind kind, string name, Expr arg1, Expr arg2 ) : this(kind, name, arg1) { _argList.Add(arg2); } internal BuiltInExpr( BuiltInKind kind, string name, Expr arg1, Expr arg2, Expr arg3 ) : this(kind, name, arg1, arg2) { _argList.Add(arg3); } internal BuiltInExpr( BuiltInKind kind, string name, Expr arg1, Expr arg2, Expr arg3, Expr arg4 ) : this(kind, name, arg1, arg2, arg3) { _argList.Add(arg4); } internal BuiltInKind Kind { get { return _kind; } set { _kind = value; } } internal string Name { get { return _name; } } internal ExprList ArgList { get { return _argList; } } internal Expr Arg1 { get { if (_argList.Count < 1) { return null; } return _argList[0]; } } internal Expr Arg2 { get { if (_argList.Count < 2) return null; return _argList[1]; } } internal int ArgCount { get { return ArgList.Count; } } } } // 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
- DesignerVerb.cs
- TypeExtensionConverter.cs
- ChameleonKey.cs
- ConfigDefinitionUpdates.cs
- MemoryRecordBuffer.cs
- UserUseLicenseDictionaryLoader.cs
- WithStatement.cs
- XmlNodeChangedEventArgs.cs
- InputScope.cs
- ClientReliableChannelBinder.cs
- ApplicationServiceManager.cs
- ThumbButtonInfoCollection.cs
- ParagraphResult.cs
- XamlFilter.cs
- PropertyPushdownHelper.cs
- RegionInfo.cs
- TimeoutValidationAttribute.cs
- XmlAutoDetectWriter.cs
- CatalogPartCollection.cs
- StatusBarAutomationPeer.cs
- InkCanvasSelectionAdorner.cs
- InstanceLockedException.cs
- DrawListViewSubItemEventArgs.cs
- XmlLoader.cs
- EndpointAddressElementBase.cs
- SrgsElement.cs
- DataGridViewLayoutData.cs
- PackageStore.cs
- ToolStripPanelCell.cs
- RegularExpressionValidator.cs
- X509Extension.cs
- ReflectionTypeLoadException.cs
- ExecutionEngineException.cs
- TextServicesPropertyRanges.cs
- ReadOnlyActivityGlyph.cs
- Events.cs
- DesignerCatalogPartChrome.cs
- IODescriptionAttribute.cs
- StringInfo.cs
- FixedSOMPage.cs
- DbMetaDataFactory.cs
- XmlWriter.cs
- LassoSelectionBehavior.cs
- EmbeddedMailObjectsCollection.cs
- CompensationHandlingFilter.cs
- RegistryDataKey.cs
- TextEditorMouse.cs
- ErrorsHelper.cs
- LinqDataSource.cs
- HtmlTableCell.cs
- PostBackOptions.cs
- RegexNode.cs
- WebPartCancelEventArgs.cs
- IApplicationTrustManager.cs
- GradientBrush.cs
- DocumentsTrace.cs
- basemetadatamappingvisitor.cs
- SqlDataSourceDesigner.cs
- InternalCache.cs
- ClientTargetCollection.cs
- CryptoProvider.cs
- SerializationInfoEnumerator.cs
- KeyboardNavigation.cs
- DataChangedEventManager.cs
- DeferredElementTreeState.cs
- DataServiceKeyAttribute.cs
- DataPagerFieldItem.cs
- CultureTableRecord.cs
- XsdCachingReader.cs
- System.Data_BID.cs
- DbCommandTree.cs
- PolygonHotSpot.cs
- Int32CAMarshaler.cs
- ProgressBarBrushConverter.cs
- XmlTextReader.cs
- ExpressionVisitorHelpers.cs
- XmlName.cs
- SafeViewOfFileHandle.cs
- KeyNotFoundException.cs
- MultipartIdentifier.cs
- HotCommands.cs
- SelectionManager.cs
- ProfileService.cs
- UserControlFileEditor.cs
- LinqDataSourceSelectEventArgs.cs
- ViewStateModeByIdAttribute.cs
- ToolStripHighContrastRenderer.cs
- Matrix3D.cs
- DocumentProperties.cs
- SimpleWebHandlerParser.cs
- XmlNullResolver.cs
- WebScriptMetadataMessageEncodingBindingElement.cs
- CroppedBitmap.cs
- UniqueEventHelper.cs
- COM2ColorConverter.cs
- HttpDigestClientElement.cs
- StreamGeometryContext.cs
- TemplateParser.cs
- RijndaelManagedTransform.cs
- Quad.cs