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
- ControlBuilderAttribute.cs
- Stopwatch.cs
- Visual3D.cs
- SiteIdentityPermission.cs
- SystemKeyConverter.cs
- SourceFileBuildProvider.cs
- Stream.cs
- SQLInt16.cs
- XamlVector3DCollectionSerializer.cs
- ProtocolsInstallComponent.cs
- SeekableReadStream.cs
- CacheAxisQuery.cs
- Set.cs
- ListChunk.cs
- ToolStripPanelSelectionGlyph.cs
- HtmlHistory.cs
- SelfIssuedTokenFactoryCredential.cs
- TextBlock.cs
- DateTimeOffsetConverter.cs
- DbConnectionStringCommon.cs
- HttpListenerException.cs
- MsmqVerifier.cs
- LoginCancelEventArgs.cs
- TextModifier.cs
- TdsParserHelperClasses.cs
- TableRowGroupCollection.cs
- ScopedKnownTypes.cs
- CommentEmitter.cs
- GlobalAllocSafeHandle.cs
- AutomationAttributeInfo.cs
- FontWeight.cs
- GridViewHeaderRowPresenter.cs
- DataTableMappingCollection.cs
- SqlParameterCollection.cs
- SymDocumentType.cs
- Permission.cs
- WorkflowTimerService.cs
- ProtectedConfiguration.cs
- ProgressBarHighlightConverter.cs
- SecurityRuntime.cs
- AdjustableArrowCap.cs
- DataTablePropertyDescriptor.cs
- TypedMessageConverter.cs
- IxmlLineInfo.cs
- XmlDictionary.cs
- NameNode.cs
- VirtualDirectoryMapping.cs
- ControlPaint.cs
- Collection.cs
- PackageFilter.cs
- TableRowCollection.cs
- rsa.cs
- Msec.cs
- AspProxy.cs
- UnknownBitmapDecoder.cs
- SystemInformation.cs
- TableLayoutPanelCellPosition.cs
- ApplicationFileParser.cs
- ContextQuery.cs
- SpotLight.cs
- XPathArrayIterator.cs
- ObjectList.cs
- dbdatarecord.cs
- TemplateField.cs
- Set.cs
- FramingDecoders.cs
- ContentOperations.cs
- ObjectListFieldCollection.cs
- HostProtectionException.cs
- WriteTimeStream.cs
- Repeater.cs
- ProcessThreadCollection.cs
- SchemaCompiler.cs
- DescendantOverDescendantQuery.cs
- BatchParser.cs
- SiteMapDataSourceView.cs
- NonVisualControlAttribute.cs
- XXXOnTypeBuilderInstantiation.cs
- XmlChildEnumerator.cs
- CopyAction.cs
- ClientType.cs
- SecurityKeyUsage.cs
- SerialPinChanges.cs
- DropDownList.cs
- _LazyAsyncResult.cs
- DecoderReplacementFallback.cs
- AttributeAction.cs
- MailWebEventProvider.cs
- NamedPipeProcessProtocolHandler.cs
- CodeMemberField.cs
- StrokeNodeData.cs
- KeyNotFoundException.cs
- DataObjectMethodAttribute.cs
- WpfGeneratedKnownProperties.cs
- CoTaskMemUnicodeSafeHandle.cs
- ClientFormsAuthenticationCredentials.cs
- ExtensibleSyndicationObject.cs
- MessageSecurityOverMsmq.cs
- TTSVoice.cs
- ContractTypeNameCollection.cs