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
- HttpResponse.cs
- UrlMappingsSection.cs
- ApplicationSettingsBase.cs
- EntityDataSourceStatementEditor.cs
- AttributeExtensions.cs
- StreamGeometryContext.cs
- AuthenticationModuleElementCollection.cs
- WorkflowQueue.cs
- PersonalizationProviderCollection.cs
- StaticDataManager.cs
- WorkflowViewService.cs
- ISO2022Encoding.cs
- VectorAnimationBase.cs
- ContractReference.cs
- FixedDSBuilder.cs
- RetrieveVirtualItemEventArgs.cs
- RequestDescription.cs
- ThreadPoolTaskScheduler.cs
- SymmetricCryptoHandle.cs
- PageParserFilter.cs
- AssemblyBuilder.cs
- GridViewSelectEventArgs.cs
- SingleConverter.cs
- AttachedPropertyMethodSelector.cs
- DataColumnCollection.cs
- DataMember.cs
- SynchronizationContext.cs
- Query.cs
- ResXResourceReader.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- RepeaterItem.cs
- DataGridViewColumnHeaderCell.cs
- UserControlBuildProvider.cs
- UnsafeNativeMethodsCLR.cs
- UnsafeNativeMethods.cs
- CatalogPartCollection.cs
- RegistryPermission.cs
- ActivityXRefConverter.cs
- Attribute.cs
- SplashScreen.cs
- CustomAttributeFormatException.cs
- SchemaContext.cs
- WindowHideOrCloseTracker.cs
- TreeNodeSelectionProcessor.cs
- PositiveTimeSpanValidatorAttribute.cs
- SoapAttributeOverrides.cs
- TaskbarItemInfo.cs
- URLMembershipCondition.cs
- ContextMenuStrip.cs
- ServiceOperationParameter.cs
- DesignerDataParameter.cs
- ObjectKeyFrameCollection.cs
- ColorConvertedBitmapExtension.cs
- ExpandSegment.cs
- ContentPlaceHolder.cs
- FileLogRecord.cs
- ItemCheckEvent.cs
- PagerSettings.cs
- ObjectQuery_EntitySqlExtensions.cs
- ConfigXmlText.cs
- DataPagerFieldCommandEventArgs.cs
- OdbcConnection.cs
- ComponentCodeDomSerializer.cs
- SmtpCommands.cs
- SiteMapNodeItem.cs
- OleDbStruct.cs
- CleanUpVirtualizedItemEventArgs.cs
- Pkcs7Recipient.cs
- FrameworkContextData.cs
- SafeCertificateStore.cs
- CustomLineCap.cs
- VisualState.cs
- COAUTHINFO.cs
- RefType.cs
- BaseCodeDomTreeGenerator.cs
- SinglePageViewer.cs
- IUnknownConstantAttribute.cs
- EditCommandColumn.cs
- CLSCompliantAttribute.cs
- Triangle.cs
- ButtonField.cs
- BamlWriter.cs
- StreamReader.cs
- CircleHotSpot.cs
- Queue.cs
- SystemIPGlobalProperties.cs
- GridViewRowPresenter.cs
- JsonEnumDataContract.cs
- CodeCompileUnit.cs
- DataColumnCollection.cs
- RangeEnumerable.cs
- StopStoryboard.cs
- OdbcDataAdapter.cs
- ImageSource.cs
- DataSourceXmlSubItemAttribute.cs
- SortQuery.cs
- TableLayoutRowStyleCollection.cs
- serverconfig.cs
- ListBoxItemWrapperAutomationPeer.cs