Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / AST / AliasedExpr.cs / 1305376 / AliasedExpr.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; ////// AST node for an aliased expression. /// internal sealed class AliasedExpr : Node { private readonly Node _expr; private readonly Identifier _alias; ////// Constructs an aliased expression node. /// internal AliasedExpr(Node expr, Identifier alias) { Debug.Assert(expr != null, "expr != null"); Debug.Assert(alias != null, "alias != null"); if (String.IsNullOrEmpty(alias.Name)) { throw EntityUtil.EntitySqlError(alias.ErrCtx, System.Data.Entity.Strings.InvalidEmptyIdentifier); } _expr = expr; _alias = alias; } ////// Constructs an aliased expression node with null alias. /// internal AliasedExpr(Node expr) { Debug.Assert(expr != null, "expr != null"); _expr = expr; } internal Node Expr { get { return _expr; } } ////// Returns expression alias identifier, or null if not aliased. /// internal Identifier Alias { get { return _alias; } } } } // 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.Diagnostics; ////// AST node for an aliased expression. /// internal sealed class AliasedExpr : Node { private readonly Node _expr; private readonly Identifier _alias; ////// Constructs an aliased expression node. /// internal AliasedExpr(Node expr, Identifier alias) { Debug.Assert(expr != null, "expr != null"); Debug.Assert(alias != null, "alias != null"); if (String.IsNullOrEmpty(alias.Name)) { throw EntityUtil.EntitySqlError(alias.ErrCtx, System.Data.Entity.Strings.InvalidEmptyIdentifier); } _expr = expr; _alias = alias; } ////// Constructs an aliased expression node with null alias. /// internal AliasedExpr(Node expr) { Debug.Assert(expr != null, "expr != null"); _expr = expr; } internal Node Expr { get { return _expr; } } ////// Returns expression alias identifier, or null if not aliased. /// internal Identifier Alias { get { return _alias; } } } } // 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
- XmlTextReader.cs
- MembershipSection.cs
- SplitContainer.cs
- ProjectionCamera.cs
- FixedSOMTableCell.cs
- InternalMappingException.cs
- oledbmetadatacollectionnames.cs
- FixUp.cs
- CompressionTransform.cs
- VirtualizingStackPanel.cs
- WebBrowserNavigatingEventHandler.cs
- PathSegment.cs
- ImageCreator.cs
- SoapServerProtocol.cs
- Hashtable.cs
- SystemIPGlobalStatistics.cs
- WindowsRichEdit.cs
- ReadOnlyHierarchicalDataSourceView.cs
- TemplatedAdorner.cs
- DataGridViewCellValueEventArgs.cs
- DesignerDataSourceView.cs
- CookieProtection.cs
- TimeSpanParse.cs
- XsdCachingReader.cs
- SweepDirectionValidation.cs
- Publisher.cs
- TraceContextEventArgs.cs
- GatewayDefinition.cs
- BulletDecorator.cs
- WebPartDeleteVerb.cs
- DelayedRegex.cs
- HttpWrapper.cs
- WebSysDisplayNameAttribute.cs
- X509CertificateRecipientServiceCredential.cs
- LoadedOrUnloadedOperation.cs
- Label.cs
- _UncName.cs
- SerialReceived.cs
- DropShadowBitmapEffect.cs
- RtfNavigator.cs
- PrintSystemException.cs
- TrackingDataItem.cs
- DeclaredTypeElementCollection.cs
- IsolatedStorageSecurityState.cs
- VoiceSynthesis.cs
- CompilerGeneratedAttribute.cs
- GeneratedContractType.cs
- CalendarDay.cs
- CustomLineCap.cs
- AttributeProviderAttribute.cs
- CommonBehaviorsSection.cs
- DSASignatureFormatter.cs
- FixedBufferAttribute.cs
- DrawingContextDrawingContextWalker.cs
- SiteMapNodeItemEventArgs.cs
- HttpClientProtocol.cs
- TextTreeRootNode.cs
- Slider.cs
- OracleString.cs
- StaticDataManager.cs
- MediaEntryAttribute.cs
- TableChangeProcessor.cs
- FileVersionInfo.cs
- PropertyRef.cs
- SchemaElement.cs
- JoinElimination.cs
- VoiceObjectToken.cs
- SafeMemoryMappedFileHandle.cs
- SoapCodeExporter.cs
- RangeValuePatternIdentifiers.cs
- WebPartAuthorizationEventArgs.cs
- BitStack.cs
- QilXmlReader.cs
- BaseProcessor.cs
- KeyNotFoundException.cs
- CompiledIdentityConstraint.cs
- QilReference.cs
- Visual3D.cs
- TextRunCache.cs
- PipeSecurity.cs
- ListItemConverter.cs
- UnauthorizedAccessException.cs
- X509Certificate2Collection.cs
- GeometryGroup.cs
- validationstate.cs
- DeferredSelectedIndexReference.cs
- OptimalTextSource.cs
- HttpCapabilitiesBase.cs
- DataChangedEventManager.cs
- StringPropertyBuilder.cs
- GridViewPageEventArgs.cs
- Utils.cs
- BufferBuilder.cs
- PasswordRecovery.cs
- SecurityKeyIdentifierClause.cs
- SafeMarshalContext.cs
- SafeHandles.cs
- CompModSwitches.cs
- MaterialGroup.cs
- FullTextLine.cs