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
- XamlPoint3DCollectionSerializer.cs
- Math.cs
- UnhandledExceptionEventArgs.cs
- AdjustableArrowCap.cs
- EntityTypeEmitter.cs
- HybridDictionary.cs
- SoapSchemaMember.cs
- TypeConverter.cs
- ObjectListDesigner.cs
- DesignConnection.cs
- SupportsEventValidationAttribute.cs
- HandlerFactoryWrapper.cs
- WrapPanel.cs
- MsmqHostedTransportConfiguration.cs
- BitmapEffectDrawingContent.cs
- ReceiveMessageRecord.cs
- SeekStoryboard.cs
- CompletionBookmark.cs
- HwndSource.cs
- TableChangeProcessor.cs
- FamilyTypeface.cs
- SQLBinary.cs
- BaseTemplateParser.cs
- PropertyTab.cs
- TableRowCollection.cs
- TimelineCollection.cs
- NamespaceEmitter.cs
- ClientOptions.cs
- ReadOnlyCollectionBase.cs
- Rijndael.cs
- CustomAttributeFormatException.cs
- ContainerControl.cs
- ComMethodElementCollection.cs
- ConstrainedDataObject.cs
- ClientScriptItem.cs
- XmlSchemaCollection.cs
- CroppedBitmap.cs
- DeferredBinaryDeserializerExtension.cs
- CacheMemory.cs
- VectorCollection.cs
- ResourceReader.cs
- PageParserFilter.cs
- PackageFilter.cs
- Root.cs
- Scanner.cs
- DBBindings.cs
- DynamicHyperLink.cs
- CompareValidator.cs
- ValidationPropertyAttribute.cs
- DataServicePagingProviderWrapper.cs
- GridViewSelectEventArgs.cs
- VirtualPathUtility.cs
- _AutoWebProxyScriptEngine.cs
- TypeSystem.cs
- SynchronizedReadOnlyCollection.cs
- SqlInfoMessageEvent.cs
- ServiceChannelProxy.cs
- SchemaLookupTable.cs
- EditorAttribute.cs
- WebPartManagerInternals.cs
- TableLayoutPanelDesigner.cs
- ContextMenu.cs
- DispatcherHooks.cs
- DataGridViewBand.cs
- GroupBox.cs
- XmlValidatingReader.cs
- DateTimeOffset.cs
- SmiContextFactory.cs
- HostingPreferredMapPath.cs
- SystemResourceHost.cs
- InvokeGenerator.cs
- HttpGetServerProtocol.cs
- BitVec.cs
- Nodes.cs
- EventLogPermissionEntryCollection.cs
- Package.cs
- SizeAnimationClockResource.cs
- RegexReplacement.cs
- ProtectedConfigurationProviderCollection.cs
- MetadataPropertyvalue.cs
- XmlStrings.cs
- ProtocolsConfiguration.cs
- EnumerableCollectionView.cs
- DesignerVerb.cs
- DataGridItem.cs
- EventToken.cs
- ForwardPositionQuery.cs
- QilFunction.cs
- ToolStripItemClickedEventArgs.cs
- CornerRadiusConverter.cs
- NetworkInformationPermission.cs
- WebServiceEnumData.cs
- ButtonRenderer.cs
- StrokeDescriptor.cs
- _SpnDictionary.cs
- Bind.cs
- LineBreakRecord.cs
- JavaScriptString.cs
- PerformanceCounterLib.cs
- SqlCacheDependency.cs