Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DLinq / Dlinq / SqlClient / Query / SqlGatherConsumedAliases.cs / 1305376 / SqlGatherConsumedAliases.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 consumes. /// class SqlGatherConsumedAliases { internal static HashSetGather(SqlNode node) { Gatherer g = new Gatherer(); g.Visit(node); return g.Consumed; } private class Gatherer : SqlVisitor { internal HashSet Consumed = new HashSet (); internal void VisitAliasConsumed(SqlAlias a) { Consumed.Add(a); } internal override SqlExpression VisitColumn(SqlColumn col) { VisitAliasConsumed(col.Alias); VisitExpression(col.Expression); return col; } internal override SqlExpression VisitColumnRef(SqlColumnRef cref) { VisitAliasConsumed(cref.Column.Alias); return cref; } } } } // 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
- TrackingValidationObjectDictionary.cs
- GridViewColumnHeaderAutomationPeer.cs
- ListChangedEventArgs.cs
- Attributes.cs
- SetterTriggerConditionValueConverter.cs
- EntityContainerRelationshipSetEnd.cs
- PerformanceCounterPermissionEntryCollection.cs
- XmlSecureResolver.cs
- IgnoreFileBuildProvider.cs
- PropertyDescriptorCollection.cs
- HttpMethodAttribute.cs
- RSAProtectedConfigurationProvider.cs
- SecurityDescriptor.cs
- TextSerializer.cs
- ObjectDataSourceFilteringEventArgs.cs
- Evidence.cs
- CursorConverter.cs
- CodeGotoStatement.cs
- SynchronizationLockException.cs
- FlatButtonAppearance.cs
- XmlFileEditor.cs
- DbProviderFactory.cs
- SqlConnectionPoolGroupProviderInfo.cs
- WmfPlaceableFileHeader.cs
- AnnotationHelper.cs
- WebPartVerbsEventArgs.cs
- TextServicesContext.cs
- AuthStoreRoleProvider.cs
- WeakReferenceEnumerator.cs
- ConstraintStruct.cs
- SamlSerializer.cs
- ObjectKeyFrameCollection.cs
- LayoutEditorPart.cs
- SmiEventSink.cs
- HtmlInputImage.cs
- RecognizedWordUnit.cs
- Point.cs
- TimeZone.cs
- GraphicsPath.cs
- WinFormsComponentEditor.cs
- GetPageCompletedEventArgs.cs
- ChangeConflicts.cs
- Button.cs
- AnnouncementEventArgs.cs
- XAMLParseException.cs
- FrameworkElementAutomationPeer.cs
- SmiContext.cs
- Int16Storage.cs
- ToolStripMenuItemCodeDomSerializer.cs
- Geometry3D.cs
- CopyAttributesAction.cs
- SamlSubjectStatement.cs
- SendActivity.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- Attributes.cs
- SymmetricSecurityProtocolFactory.cs
- xmlsaver.cs
- ToolStripItem.cs
- FixedPosition.cs
- ScrollViewer.cs
- BaseServiceProvider.cs
- HandlerBase.cs
- ClientApiGenerator.cs
- VisualStyleRenderer.cs
- returneventsaver.cs
- DecoderBestFitFallback.cs
- RichTextBoxConstants.cs
- FormViewInsertedEventArgs.cs
- ActionMessageFilterTable.cs
- CollaborationHelperFunctions.cs
- ParallelActivityDesigner.cs
- ByteFacetDescriptionElement.cs
- ColumnResizeAdorner.cs
- VisualStyleTypesAndProperties.cs
- SmiGettersStream.cs
- CustomError.cs
- PenContexts.cs
- CommandField.cs
- DataTablePropertyDescriptor.cs
- HtmlInputControl.cs
- ModifiableIteratorCollection.cs
- DbConnectionClosed.cs
- RSAPKCS1SignatureFormatter.cs
- WpfKnownTypeInvoker.cs
- DataKey.cs
- TypeKeyValue.cs
- ObjectCacheHost.cs
- rsa.cs
- IResourceProvider.cs
- iisPickupDirectory.cs
- ManagedIStream.cs
- AttachedPropertyInfo.cs
- MessagePartDescriptionCollection.cs
- SolidColorBrush.cs
- HotSpotCollection.cs
- ActivityInterfaces.cs
- ArraySortHelper.cs
- HttpGetServerProtocol.cs
- ServiceModelConfigurationSectionCollection.cs
- PropertyPathWorker.cs