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
- BinaryFormatter.cs
- HttpRequest.cs
- DbConnectionInternal.cs
- StreamedWorkflowDefinitionContext.cs
- FontFamilyValueSerializer.cs
- RegisteredScript.cs
- PermissionRequestEvidence.cs
- BuildProviderCollection.cs
- HotSpotCollection.cs
- IdentityNotMappedException.cs
- SR.cs
- ListBindableAttribute.cs
- CookielessHelper.cs
- Internal.cs
- SpecularMaterial.cs
- PenCursorManager.cs
- TextBreakpoint.cs
- NumberFunctions.cs
- Operand.cs
- RectAnimationUsingKeyFrames.cs
- ToolStripScrollButton.cs
- RequestNavigateEventArgs.cs
- DataGridColumn.cs
- StringKeyFrameCollection.cs
- BitmapFrame.cs
- IndexingContentUnit.cs
- AliasExpr.cs
- IPAddress.cs
- DoubleUtil.cs
- RecognizedWordUnit.cs
- Predicate.cs
- Validator.cs
- ExtensionQuery.cs
- OleDbMetaDataFactory.cs
- UIElementParagraph.cs
- IdentityHolder.cs
- DataViewSetting.cs
- ControlsConfig.cs
- BinarySerializer.cs
- EventData.cs
- ChangeInterceptorAttribute.cs
- WorkflowMarkupSerializer.cs
- DynamicPropertyReader.cs
- FunctionUpdateCommand.cs
- LogLogRecordHeader.cs
- LocatorPartList.cs
- FullTextState.cs
- DrawingContextDrawingContextWalker.cs
- EditorPartChrome.cs
- ServiceThrottlingElement.cs
- MethodToken.cs
- BitmapFrameDecode.cs
- TabControlEvent.cs
- WindowsGraphicsCacheManager.cs
- SchemaImporterExtension.cs
- RequestChannel.cs
- OpCellTreeNode.cs
- Polyline.cs
- SspiSecurityToken.cs
- RenderData.cs
- SharedTcpTransportManager.cs
- DoubleCollection.cs
- SqlTypeSystemProvider.cs
- FrameworkElementFactoryMarkupObject.cs
- AnimationException.cs
- Material.cs
- GenerateHelper.cs
- SqlException.cs
- DbQueryCommandTree.cs
- MachineSettingsSection.cs
- BidirectionalDictionary.cs
- Registry.cs
- ImageMapEventArgs.cs
- EmptyControlCollection.cs
- SqlReferenceCollection.cs
- ExpandoClass.cs
- ProgressiveCrcCalculatingStream.cs
- KnowledgeBase.cs
- UrlMappingsSection.cs
- JoinCqlBlock.cs
- XPathAxisIterator.cs
- FlowLayout.cs
- BehaviorEditorPart.cs
- BitmapSizeOptions.cs
- ClientTargetCollection.cs
- StatusBar.cs
- TransformerInfoCollection.cs
- DetailsViewDeletedEventArgs.cs
- ScrollChangedEventArgs.cs
- StylusPoint.cs
- ConfigXmlWhitespace.cs
- TypedElement.cs
- TryExpression.cs
- TableRowCollection.cs
- XmlWrappingReader.cs
- TextBox.cs
- Exceptions.cs
- Base64Stream.cs
- VersionUtil.cs
- RuntimeConfigLKG.cs