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
- ConstructorArgumentAttribute.cs
- HostingMessageProperty.cs
- ColorContextHelper.cs
- Interlocked.cs
- TCPClient.cs
- ConfigurationPropertyAttribute.cs
- User.cs
- ContentFilePart.cs
- SystemIPv4InterfaceProperties.cs
- CodeExpressionCollection.cs
- TreeNodeBindingCollection.cs
- AttributeCollection.cs
- Int16.cs
- Compress.cs
- IntegerValidatorAttribute.cs
- UidManager.cs
- LiteralTextParser.cs
- PropertyIDSet.cs
- PrintDialog.cs
- ProtectedConfiguration.cs
- KeyValueConfigurationCollection.cs
- CodeIterationStatement.cs
- SrgsGrammar.cs
- RtfToken.cs
- PointHitTestResult.cs
- XmlExpressionDumper.cs
- FlagsAttribute.cs
- ParameterToken.cs
- XmlUnspecifiedAttribute.cs
- Model3DGroup.cs
- RegexWriter.cs
- SplitterDesigner.cs
- BoundPropertyEntry.cs
- TextTreeRootTextBlock.cs
- ClientSponsor.cs
- _TransmitFileOverlappedAsyncResult.cs
- Dispatcher.cs
- ElementProxy.cs
- FixedHyperLink.cs
- ArgIterator.cs
- InputScope.cs
- DependencyPropertyHelper.cs
- SessionIDManager.cs
- CompareInfo.cs
- DocumentViewerBaseAutomationPeer.cs
- BitmapVisualManager.cs
- OrderedDictionaryStateHelper.cs
- RadioButtonFlatAdapter.cs
- WeakEventManager.cs
- InternalMappingException.cs
- QueryOperatorEnumerator.cs
- VisualBrush.cs
- DbConnectionPoolGroupProviderInfo.cs
- ImportContext.cs
- ThemeableAttribute.cs
- CompilerInfo.cs
- PointAnimationBase.cs
- Button.cs
- SQLInt64Storage.cs
- DataControlField.cs
- DateTimeConverter.cs
- SeverityFilter.cs
- BrowserDefinition.cs
- BamlRecords.cs
- TypeConverterAttribute.cs
- UnsafeNativeMethods.cs
- FilterEventArgs.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- FormattedText.cs
- SystemIPInterfaceStatistics.cs
- DataGridParentRows.cs
- ExcCanonicalXml.cs
- ModelFactory.cs
- StatusBarAutomationPeer.cs
- ShutDownListener.cs
- Exception.cs
- ServiceContractListItemList.cs
- ConnectionsZone.cs
- AssemblyBuilderData.cs
- QueryStringConverter.cs
- WinFormsUtils.cs
- GatewayDefinition.cs
- TableAdapterManagerNameHandler.cs
- BitmapEffectrendercontext.cs
- DispatcherEventArgs.cs
- RemotingException.cs
- DetailsViewInsertEventArgs.cs
- Int64AnimationUsingKeyFrames.cs
- ByteFacetDescriptionElement.cs
- DataBindingHandlerAttribute.cs
- TextPointerBase.cs
- CornerRadius.cs
- NativeObjectSecurity.cs
- DiagnosticTraceSource.cs
- BaseResourcesBuildProvider.cs
- BitmapEffectOutputConnector.cs
- MachineKey.cs
- GB18030Encoding.cs
- ByteAnimationBase.cs
- MimeBasePart.cs