Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / AST / MethodExpr.cs / 1305376 / MethodExpr.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.Data.Common.CommandTrees; using System.Diagnostics; ////// Represents invocation expression: expr(...) /// internal sealed class MethodExpr : GroupAggregateExpr { private readonly Node _expr; private readonly NodeList_args; private readonly NodeList _relationships; /// /// Initializes method ast node. /// internal MethodExpr(Node expr, DistinctKind distinctKind, NodeListargs) : this (expr, distinctKind, args, null) { } /// /// Intializes a method ast node with relationships. /// internal MethodExpr(Node expr, DistinctKind distinctKind, NodeListargs, NodeList relationships) : base(distinctKind) { Debug.Assert(expr != null, "expr != null"); Debug.Assert(args == null || args.Count > 0, "args must be null or a non-empty list"); _expr = expr; _args = args; _relationships = relationships; } /// /// For the following expression: "a.b.c.Foo()", returns "a.b.c.Foo". /// internal Node Expr { get { return _expr; } } ////// Argument list. /// internal NodeListArgs { get { return _args; } } /// /// True if there are associated relationship expressions. /// internal bool HasRelationships { get { return null != _relationships && _relationships.Count > 0; } } ////// Optional relationship list. /// internal NodeListRelationships { get { return _relationships; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- // // 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.Data.Common.CommandTrees; using System.Diagnostics; ////// Represents invocation expression: expr(...) /// internal sealed class MethodExpr : GroupAggregateExpr { private readonly Node _expr; private readonly NodeList_args; private readonly NodeList _relationships; /// /// Initializes method ast node. /// internal MethodExpr(Node expr, DistinctKind distinctKind, NodeListargs) : this (expr, distinctKind, args, null) { } /// /// Intializes a method ast node with relationships. /// internal MethodExpr(Node expr, DistinctKind distinctKind, NodeListargs, NodeList relationships) : base(distinctKind) { Debug.Assert(expr != null, "expr != null"); Debug.Assert(args == null || args.Count > 0, "args must be null or a non-empty list"); _expr = expr; _args = args; _relationships = relationships; } /// /// For the following expression: "a.b.c.Foo()", returns "a.b.c.Foo". /// internal Node Expr { get { return _expr; } } ////// Argument list. /// internal NodeListArgs { get { return _args; } } /// /// True if there are associated relationship expressions. /// internal bool HasRelationships { get { return null != _relationships && _relationships.Count > 0; } } ////// Optional relationship list. /// internal NodeListRelationships { get { return _relationships; } } } } // 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
- LoginDesigner.cs
- _MultipleConnectAsync.cs
- OleDbException.cs
- _FixedSizeReader.cs
- SerializationException.cs
- XamlPathDataSerializer.cs
- MetaType.cs
- GroupLabel.cs
- CacheAxisQuery.cs
- TreeView.cs
- MDIWindowDialog.cs
- Vector3dCollection.cs
- WebControlsSection.cs
- RadioButtonStandardAdapter.cs
- DeleteIndexBinder.cs
- WorkflowEventArgs.cs
- TagNameToTypeMapper.cs
- ProvideValueServiceProvider.cs
- WindowsGrip.cs
- BasicViewGenerator.cs
- CheckPair.cs
- RoutedEventValueSerializer.cs
- PropertyMapper.cs
- LookupNode.cs
- Match.cs
- GraphicsContext.cs
- PageThemeCodeDomTreeGenerator.cs
- _NetworkingPerfCounters.cs
- EntityWithChangeTrackerStrategy.cs
- LayoutTable.cs
- DataGridViewSortCompareEventArgs.cs
- DefaultCommandConverter.cs
- SchemaTypeEmitter.cs
- TypeReference.cs
- LocalFileSettingsProvider.cs
- DPCustomTypeDescriptor.cs
- DataGridViewCheckBoxCell.cs
- CompressedStack.cs
- RectangleHotSpot.cs
- WebPartDisplayModeCollection.cs
- ScopelessEnumAttribute.cs
- WaitingCursor.cs
- VisualBrush.cs
- ObjectListFieldsPage.cs
- SqlNodeAnnotations.cs
- MatrixTransform.cs
- CreateWorkflowOwnerCommand.cs
- ToolStripContentPanelRenderEventArgs.cs
- ManipulationPivot.cs
- HtmlTernaryTree.cs
- DataGridViewBand.cs
- TypefaceCollection.cs
- PropertyPushdownHelper.cs
- BitmapImage.cs
- CompatibleIComparer.cs
- TypedAsyncResult.cs
- StatusBarAutomationPeer.cs
- srgsitem.cs
- TextEditor.cs
- PowerEase.cs
- EncodingInfo.cs
- LinkButton.cs
- Convert.cs
- CmsInterop.cs
- UIElementParaClient.cs
- MenuItem.cs
- TargetInvocationException.cs
- HTMLTagNameToTypeMapper.cs
- SerializationException.cs
- ComplexLine.cs
- SqlTriggerContext.cs
- ObjectPropertyMapping.cs
- NameTable.cs
- Identity.cs
- AssignDesigner.xaml.cs
- Wizard.cs
- LongTypeConverter.cs
- DmlSqlGenerator.cs
- DecoderNLS.cs
- TCEAdapterGenerator.cs
- HttpApplicationFactory.cs
- IntSecurity.cs
- InstanceNameConverter.cs
- PeerNameRegistration.cs
- SkewTransform.cs
- ProxyWebPartConnectionCollection.cs
- SQlBooleanStorage.cs
- SerializerWriterEventHandlers.cs
- Int32CollectionConverter.cs
- GenericTextProperties.cs
- UidManager.cs
- PropertyKey.cs
- Content.cs
- DispatcherExceptionEventArgs.cs
- TimeSpanConverter.cs
- WindowsPrincipal.cs
- InputProcessorProfilesLoader.cs
- EditorPartCollection.cs
- dtdvalidator.cs
- OdbcConnectionString.cs