Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DLinq / Dlinq / SqlClient / Query / SqlGatherProducedAliases.cs / 2 / 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
- ThreadAttributes.cs
- SingleTagSectionHandler.cs
- StructuredCompositeActivityDesigner.cs
- WebPartConnectionsCancelVerb.cs
- XmlNavigatorStack.cs
- MarshalByRefObject.cs
- TextElementEnumerator.cs
- HttpClientProtocol.cs
- RawMouseInputReport.cs
- ColumnHeader.cs
- XmlSchemaAnnotated.cs
- ComponentDispatcherThread.cs
- ChannelCacheDefaults.cs
- PagerSettings.cs
- FacetDescription.cs
- XPathException.cs
- ReadOnlyNameValueCollection.cs
- HttpProfileGroupBase.cs
- RSAProtectedConfigurationProvider.cs
- EntityDataSourceReferenceGroup.cs
- Verify.cs
- WebWorkflowRole.cs
- WsdlHelpGeneratorElement.cs
- TreeViewCancelEvent.cs
- OrderedDictionaryStateHelper.cs
- sqlmetadatafactory.cs
- QilVisitor.cs
- RemoteCryptoTokenProvider.cs
- RectangleGeometry.cs
- ScalarConstant.cs
- GenericQueueSurrogate.cs
- DataFieldCollectionEditor.cs
- PropertyGeneratedEventArgs.cs
- AffineTransform3D.cs
- TextSerializer.cs
- SQLDateTimeStorage.cs
- BitmapFrame.cs
- SettingsProviderCollection.cs
- ExpressionCopier.cs
- DefaultAsyncDataDispatcher.cs
- UniqueConstraint.cs
- TabItemAutomationPeer.cs
- GetIndexBinder.cs
- BamlReader.cs
- XmlDeclaration.cs
- ItemCollectionEditor.cs
- DecoderBestFitFallback.cs
- SessionKeyExpiredException.cs
- CodeTypeConstructor.cs
- FixedTextView.cs
- RegexBoyerMoore.cs
- PointAnimationUsingKeyFrames.cs
- DbCommandTree.cs
- DetectEofStream.cs
- AdvancedBindingEditor.cs
- ComponentCommands.cs
- ManagementEventWatcher.cs
- PerformanceCounter.cs
- ManageRequest.cs
- LocatorManager.cs
- HttpCacheParams.cs
- ToolZone.cs
- EntityModelBuildProvider.cs
- SqlErrorCollection.cs
- Section.cs
- DataGridLength.cs
- GenericAuthenticationEventArgs.cs
- MultiSelector.cs
- SQLDateTime.cs
- PathTooLongException.cs
- SQLDecimal.cs
- SpStreamWrapper.cs
- PointLight.cs
- AnnotationMap.cs
- InkCanvas.cs
- _HeaderInfo.cs
- ListViewDesigner.cs
- BlockCollection.cs
- MenuBase.cs
- SafeEventLogWriteHandle.cs
- DefaultConfirmation.cs
- SqlRecordBuffer.cs
- XmlSerializerAssemblyAttribute.cs
- RawStylusActions.cs
- XDeferredAxisSource.cs
- ConfigurationValue.cs
- CustomMenuItemCollection.cs
- Choices.cs
- DecoderFallback.cs
- DateTimeFormat.cs
- EdmProviderManifest.cs
- TreeNodeStyleCollection.cs
- ConfigPathUtility.cs
- SQLUtility.cs
- ToolStripSeparator.cs
- ListViewDeleteEventArgs.cs
- ChangesetResponse.cs
- PassportAuthenticationEventArgs.cs
- Accessible.cs
- EventWaitHandle.cs