Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DLinq / Dlinq / SqlClient / Query / SqlGatherProducedAliases.cs / 1 / SqlGatherProducedAliases.cs
using System;
using System.Collections.Generic;
using System.Text;
namespace System.Data.Linq.SqlClient {
///
/// Walk a tree and return the set of unique aliases it produces.
///
class SqlGatherProducedAliases {
internal static HashSet Gather(SqlNode node) {
Gatherer g = new Gatherer();
g.Visit(node);
return g.Produced;
}
private class Gatherer : SqlVisitor {
internal HashSet Produced = new HashSet();
internal override SqlAlias VisitAlias(SqlAlias a) {
Produced.Add(a);
return base.VisitAlias(a);
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
using System;
using System.Collections.Generic;
using System.Text;
namespace System.Data.Linq.SqlClient {
///
/// Walk a tree and return the set of unique aliases it produces.
///
class SqlGatherProducedAliases {
internal static HashSet Gather(SqlNode node) {
Gatherer g = new Gatherer();
g.Visit(node);
return g.Produced;
}
private class Gatherer : SqlVisitor {
internal HashSet Produced = new HashSet();
internal override SqlAlias VisitAlias(SqlAlias a) {
Produced.Add(a);
return base.VisitAlias(a);
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ServiceInstallComponent.cs
- OneWayChannelFactory.cs
- XmlSchemaAnnotation.cs
- WsatRegistrationHeader.cs
- SmiEventSink_DeferedProcessing.cs
- EntityContainerRelationshipSetEnd.cs
- ItemsPanelTemplate.cs
- RenderData.cs
- CreateUserWizard.cs
- _WebProxyDataBuilder.cs
- DbProviderFactory.cs
- BaseProcessor.cs
- PropertyItemInternal.cs
- UnitySerializationHolder.cs
- TaskFileService.cs
- TraceLevelStore.cs
- MessageQueuePermissionEntryCollection.cs
- DbXmlEnabledProviderManifest.cs
- GraphicsContext.cs
- SystemColors.cs
- EventEntry.cs
- TagPrefixCollection.cs
- CookieParameter.cs
- FileClassifier.cs
- NumberSubstitution.cs
- SequentialActivityDesigner.cs
- SoapAttributes.cs
- OdbcReferenceCollection.cs
- DataSourceControl.cs
- DataGridDesigner.cs
- HtmlWindowCollection.cs
- EditorPartCollection.cs
- LinkGrep.cs
- ViewManager.cs
- DynamicQueryableWrapper.cs
- JoinGraph.cs
- InkPresenterAutomationPeer.cs
- PeerObject.cs
- OleDbPermission.cs
- WebRequestModuleElementCollection.cs
- RepeaterItemCollection.cs
- WebServiceEnumData.cs
- TextEditorMouse.cs
- PseudoWebRequest.cs
- RewritingValidator.cs
- WindowsTokenRoleProvider.cs
- StrongName.cs
- CodeAttributeDeclaration.cs
- altserialization.cs
- KoreanLunisolarCalendar.cs
- SQLBinaryStorage.cs
- HybridCollection.cs
- listviewsubitemcollectioneditor.cs
- XmlEventCache.cs
- BaseDataListActionList.cs
- BooleanSwitch.cs
- RC2CryptoServiceProvider.cs
- SimpleBitVector32.cs
- __Error.cs
- PathSegment.cs
- DbMetaDataCollectionNames.cs
- WorkflowApplicationTerminatedException.cs
- CustomPopupPlacement.cs
- OSEnvironmentHelper.cs
- SoapConverter.cs
- DataControlField.cs
- ObjectNavigationPropertyMapping.cs
- DataObjectAttribute.cs
- LayoutEditorPart.cs
- FrameworkElementFactory.cs
- RegexCompilationInfo.cs
- WsatServiceCertificate.cs
- GridViewColumnCollection.cs
- ClientSession.cs
- EditorAttribute.cs
- EncoderExceptionFallback.cs
- SmiEventSink.cs
- control.ime.cs
- CodeGeneratorOptions.cs
- StrokeSerializer.cs
- SecurityCriticalDataForSet.cs
- Site.cs
- CodeTypeMemberCollection.cs
- AssemblyInfo.cs
- RootNamespaceAttribute.cs
- ApplicationServiceHelper.cs
- DataGridCommandEventArgs.cs
- ClientUrlResolverWrapper.cs
- CodeMethodReturnStatement.cs
- SchemaDeclBase.cs
- ReferenceConverter.cs
- StyleSheet.cs
- PreservationFileReader.cs
- Link.cs
- SupportsEventValidationAttribute.cs
- GeometryGroup.cs
- DataGridViewToolTip.cs
- RightsManagementEncryptedStream.cs
- CapabilitiesRule.cs
- SchemaDeclBase.cs