Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / AST / NamespaceImport.cs / 1305376 / NamespaceImport.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; ////// Represents an ast node for namespace import (using nsABC;) /// internal sealed class NamespaceImport : Node { private readonly Identifier _namespaceAlias; private readonly Node _namespaceName; ////// Initializes a single name import. /// internal NamespaceImport(Identifier idenitifier) { _namespaceName = idenitifier; } ////// Initializes a single name import. /// internal NamespaceImport(DotExpr dorExpr) { _namespaceName = dorExpr; } ////// Initializes aliased import. /// internal NamespaceImport(BuiltInExpr bltInExpr) { _namespaceAlias = null; Identifier aliasId = bltInExpr.Arg1 as Identifier; if (aliasId == null) { throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx, System.Data.Entity.Strings.InvalidNamespaceAlias); } _namespaceAlias = aliasId; _namespaceName = bltInExpr.Arg2; } ////// Returns ns alias id if exists. /// internal Identifier Alias { get { return _namespaceAlias; } } ////// Returns namespace name. /// internal Node NamespaceName { get { return _namespaceName; } } } } // 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; ////// Represents an ast node for namespace import (using nsABC;) /// internal sealed class NamespaceImport : Node { private readonly Identifier _namespaceAlias; private readonly Node _namespaceName; ////// Initializes a single name import. /// internal NamespaceImport(Identifier idenitifier) { _namespaceName = idenitifier; } ////// Initializes a single name import. /// internal NamespaceImport(DotExpr dorExpr) { _namespaceName = dorExpr; } ////// Initializes aliased import. /// internal NamespaceImport(BuiltInExpr bltInExpr) { _namespaceAlias = null; Identifier aliasId = bltInExpr.Arg1 as Identifier; if (aliasId == null) { throw EntityUtil.EntitySqlError(bltInExpr.Arg1.ErrCtx, System.Data.Entity.Strings.InvalidNamespaceAlias); } _namespaceAlias = aliasId; _namespaceName = bltInExpr.Arg2; } ////// Returns ns alias id if exists. /// internal Identifier Alias { get { return _namespaceAlias; } } ////// Returns namespace name. /// internal Node NamespaceName { get { return _namespaceName; } } } } // 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
- AbstractExpressions.cs
- TransformedBitmap.cs
- ModifierKeysConverter.cs
- TabItem.cs
- ProcessHostConfigUtils.cs
- Block.cs
- TextParagraphView.cs
- Scripts.cs
- TransformDescriptor.cs
- DesignerLoader.cs
- PromptEventArgs.cs
- ServiceDeploymentInfo.cs
- DesignTimeVisibleAttribute.cs
- TimeSpanStorage.cs
- Utils.cs
- CaseCqlBlock.cs
- DefinitionBase.cs
- CaseStatementProjectedSlot.cs
- Table.cs
- DragCompletedEventArgs.cs
- AdRotator.cs
- XmlSchemaSimpleContentRestriction.cs
- CommonXSendMessage.cs
- COMException.cs
- ChangeNode.cs
- NameTable.cs
- WebDescriptionAttribute.cs
- ImportContext.cs
- IgnoreFlushAndCloseStream.cs
- HtmlString.cs
- InstanceData.cs
- RoleBoolean.cs
- RelativeSource.cs
- SamlAuthorityBinding.cs
- MessageLoggingFilterTraceRecord.cs
- CalendarButtonAutomationPeer.cs
- CodeRemoveEventStatement.cs
- TdsParser.cs
- StorageSetMapping.cs
- FormViewCommandEventArgs.cs
- StickyNote.cs
- ConvertTextFrag.cs
- AnnotationComponentChooser.cs
- XmlSchemaCollection.cs
- DebuggerAttributes.cs
- IIS7WorkerRequest.cs
- BooleanKeyFrameCollection.cs
- ProviderSettings.cs
- ExceptionValidationRule.cs
- SiteMapHierarchicalDataSourceView.cs
- PreservationFileWriter.cs
- LayoutUtils.cs
- RelatedEnd.cs
- MenuTracker.cs
- SiteMapDataSourceView.cs
- Size.cs
- HwndHost.cs
- Selection.cs
- ElementHostPropertyMap.cs
- Bezier.cs
- IsolatedStorageFilePermission.cs
- OverflowException.cs
- NetworkCredential.cs
- ClientFormsAuthenticationMembershipProvider.cs
- Base64Decoder.cs
- EntityProviderFactory.cs
- DataGridViewCheckBoxColumn.cs
- Activation.cs
- HGlobalSafeHandle.cs
- EntitySet.cs
- ColumnWidthChangedEvent.cs
- TemplateBuilder.cs
- MetafileHeader.cs
- Resources.Designer.cs
- SystemSounds.cs
- MatrixTransform3D.cs
- BamlMapTable.cs
- TimeSpanMinutesConverter.cs
- TagMapInfo.cs
- AsyncPostBackErrorEventArgs.cs
- PageWrapper.cs
- BinaryObjectInfo.cs
- RequestCacheValidator.cs
- FilterEventArgs.cs
- X509Certificate2.cs
- BlurBitmapEffect.cs
- Rfc2898DeriveBytes.cs
- ComboBoxRenderer.cs
- PaperSource.cs
- MDIClient.cs
- CryptoStream.cs
- ConstructorNeedsTagAttribute.cs
- PageStatePersister.cs
- LogExtent.cs
- CustomErrorCollection.cs
- FocusTracker.cs
- Model3DCollection.cs
- DisableDpiAwarenessAttribute.cs
- ParserHooks.cs
- TextModifierScope.cs