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
- ColumnCollection.cs
- DataPagerFieldCommandEventArgs.cs
- SponsorHelper.cs
- UriSectionReader.cs
- HeaderCollection.cs
- UIElement.cs
- DataGridViewCellConverter.cs
- HMACSHA512.cs
- Win32SafeHandles.cs
- WaitHandleCannotBeOpenedException.cs
- SimpleTypeResolver.cs
- SecurityContext.cs
- PageCatalogPart.cs
- AudioStateChangedEventArgs.cs
- HtmlShimManager.cs
- Method.cs
- RepeatButton.cs
- FixedSOMTableRow.cs
- FunctionDescription.cs
- altserialization.cs
- SqlComparer.cs
- brushes.cs
- AsyncStreamReader.cs
- ProgressBarHighlightConverter.cs
- ValueUnavailableException.cs
- StateBag.cs
- System.Data_BID.cs
- UInt32Storage.cs
- LinearKeyFrames.cs
- ServiceDescriptionData.cs
- StreamingContext.cs
- DefaultValueAttribute.cs
- EventHandlerList.cs
- AsyncInvokeContext.cs
- FixedPageStructure.cs
- AsymmetricKeyExchangeFormatter.cs
- DesignerCategoryAttribute.cs
- DesignUtil.cs
- CompiledQueryCacheKey.cs
- InsufficientMemoryException.cs
- PaintValueEventArgs.cs
- PrinterUnitConvert.cs
- UIInitializationException.cs
- Table.cs
- BufferCache.cs
- DbProviderFactoriesConfigurationHandler.cs
- PageSettings.cs
- SystemInfo.cs
- ValueUnavailableException.cs
- ServiceInfoCollection.cs
- EncoderExceptionFallback.cs
- PackWebRequest.cs
- DataSourceControlBuilder.cs
- MatrixAnimationUsingKeyFrames.cs
- ConfigXmlSignificantWhitespace.cs
- DataListCommandEventArgs.cs
- ThicknessAnimation.cs
- GeneralTransform3DCollection.cs
- DataServiceStreamResponse.cs
- ObjectItemAssemblyLoader.cs
- DBConnection.cs
- TabletCollection.cs
- MsmqOutputSessionChannel.cs
- AppDomainUnloadedException.cs
- EntityProviderFactory.cs
- GlobalizationSection.cs
- XmlSchemaSimpleContentExtension.cs
- WebZoneDesigner.cs
- securitycriticaldata.cs
- WorkflowOperationBehavior.cs
- mda.cs
- _LocalDataStoreMgr.cs
- DockingAttribute.cs
- SessionStateModule.cs
- BoundingRectTracker.cs
- ApplicationHost.cs
- HighlightVisual.cs
- FloaterParaClient.cs
- XXXInfos.cs
- TreeNodeStyleCollectionEditor.cs
- XPathParser.cs
- DES.cs
- OdbcHandle.cs
- EraserBehavior.cs
- SqlFunctionAttribute.cs
- SimpleNameService.cs
- SqlCommand.cs
- HandledMouseEvent.cs
- CFGGrammar.cs
- XamlFxTrace.cs
- SimpleTextLine.cs
- PropertyFilterAttribute.cs
- TriggerBase.cs
- Message.cs
- Clock.cs
- Point3D.cs
- TaiwanLunisolarCalendar.cs
- ItemMap.cs
- SqlDependencyListener.cs
- PatternMatcher.cs