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
- DesignerOptionService.cs
- CompilerHelpers.cs
- IndependentlyAnimatedPropertyMetadata.cs
- SafeMemoryMappedViewHandle.cs
- EventArgs.cs
- EmptyControlCollection.cs
- EncryptedType.cs
- ReadOnlyHierarchicalDataSourceView.cs
- OdbcPermission.cs
- ComboBox.cs
- WebHeaderCollection.cs
- SessionIDManager.cs
- SQLInt32Storage.cs
- FillBehavior.cs
- ConditionalAttribute.cs
- NumberAction.cs
- SmtpTransport.cs
- CanExecuteRoutedEventArgs.cs
- StrokeNodeEnumerator.cs
- mediaclock.cs
- UrlMapping.cs
- Vector.cs
- recordstatescratchpad.cs
- SamlAssertionKeyIdentifierClause.cs
- PrimitiveCodeDomSerializer.cs
- CultureSpecificCharacterBufferRange.cs
- UnSafeCharBuffer.cs
- X509Certificate.cs
- JavascriptCallbackBehaviorAttribute.cs
- FileSecurity.cs
- panel.cs
- GeometryModel3D.cs
- SqlRetyper.cs
- JsonDeserializer.cs
- QilExpression.cs
- ReaderWriterLockWrapper.cs
- CompilerTypeWithParams.cs
- OutputCacheModule.cs
- MultiPageTextView.cs
- NotifyIcon.cs
- DynamicMethod.cs
- DataControlLinkButton.cs
- DialogResultConverter.cs
- HandledEventArgs.cs
- ConstraintManager.cs
- ServerIdentity.cs
- DefaultPropertyAttribute.cs
- CompilerErrorCollection.cs
- XPathNodePointer.cs
- _DigestClient.cs
- PreservationFileReader.cs
- IERequestCache.cs
- IOException.cs
- CommandField.cs
- SystemIPv6InterfaceProperties.cs
- _UriTypeConverter.cs
- XsltFunctions.cs
- SwitchElementsCollection.cs
- SspiNegotiationTokenProvider.cs
- VisualProxy.cs
- WCFBuildProvider.cs
- StylusCaptureWithinProperty.cs
- SocketAddress.cs
- WindowsMenu.cs
- FixedBufferAttribute.cs
- XamlPathDataSerializer.cs
- ToolStripDropDownItem.cs
- ImageCodecInfo.cs
- XmlTextEncoder.cs
- CapabilitiesPattern.cs
- TextBox.cs
- SecurityTokenSerializer.cs
- ConnectionsZoneDesigner.cs
- ElementMarkupObject.cs
- InstanceKeyView.cs
- DragDrop.cs
- MenuAdapter.cs
- BatchServiceHost.cs
- DataGridViewHitTestInfo.cs
- Composition.cs
- DeviceContexts.cs
- LocalizableResourceBuilder.cs
- ThreadExceptionDialog.cs
- sqlmetadatafactory.cs
- MimePart.cs
- EventLogHandle.cs
- LogReserveAndAppendState.cs
- XmlnsDefinitionAttribute.cs
- SiteOfOriginContainer.cs
- LinqDataSourceHelper.cs
- Base64Stream.cs
- UntypedNullExpression.cs
- WindowsSolidBrush.cs
- InfoCardSymmetricAlgorithm.cs
- DateTimeStorage.cs
- MetadataCollection.cs
- RequestSecurityTokenResponse.cs
- ViewKeyConstraint.cs
- AsyncPostBackTrigger.cs
- BindingFormattingDialog.cs