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
- ReadOnlyCollectionBuilder.cs
- ApplicationBuildProvider.cs
- DoubleAnimationClockResource.cs
- ExtensionWindow.cs
- TabRenderer.cs
- RepeatInfo.cs
- ConfigXmlAttribute.cs
- StringValueSerializer.cs
- ServiceHostingEnvironment.cs
- RelatedPropertyManager.cs
- ExternalException.cs
- TableAutomationPeer.cs
- PersonalizationStateInfoCollection.cs
- ReadOnlyTernaryTree.cs
- ServiceBehaviorElement.cs
- ProfileManager.cs
- WeakReference.cs
- TypeInfo.cs
- SiteMapDataSource.cs
- SqlDataSourceQueryConverter.cs
- WebUtil.cs
- PriorityRange.cs
- SoapServerMethod.cs
- ServiceDescription.cs
- MonthCalendarDesigner.cs
- UniqueEventHelper.cs
- ValidationHelper.cs
- WebDescriptionAttribute.cs
- ScrollPatternIdentifiers.cs
- CqlQuery.cs
- Memoizer.cs
- propertytag.cs
- TraceHandler.cs
- ExponentialEase.cs
- CacheForPrimitiveTypes.cs
- FontUnitConverter.cs
- SqlCachedBuffer.cs
- FusionWrap.cs
- StackSpiller.cs
- CorrelationManager.cs
- Directory.cs
- AsyncContentLoadedEventArgs.cs
- PropertyValueEditor.cs
- SystemTcpConnection.cs
- SoapSchemaExporter.cs
- SplineQuaternionKeyFrame.cs
- RecipientInfo.cs
- SerialErrors.cs
- ISAPIRuntime.cs
- StringReader.cs
- SignatureConfirmations.cs
- SimpleBitVector32.cs
- BindingContext.cs
- PathTooLongException.cs
- WebControlAdapter.cs
- OleStrCAMarshaler.cs
- DbTransaction.cs
- WebPartManager.cs
- DataProtection.cs
- SafeTimerHandle.cs
- EncoderParameter.cs
- SequenceQuery.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- SQLGuidStorage.cs
- basenumberconverter.cs
- ILGen.cs
- DialogResultConverter.cs
- CodeDOMUtility.cs
- ImageKeyConverter.cs
- XmlNodeComparer.cs
- InputBinding.cs
- TopClause.cs
- XmlSchemaSimpleContentExtension.cs
- SoapMessage.cs
- ColorConverter.cs
- DictionaryBase.cs
- HttpHeaderCollection.cs
- WebPartMenuStyle.cs
- AutomationPatternInfo.cs
- XmlAutoDetectWriter.cs
- LabelDesigner.cs
- WindowInteropHelper.cs
- MouseEvent.cs
- IISUnsafeMethods.cs
- RC2.cs
- EntityException.cs
- CodeMethodMap.cs
- UnsafeNativeMethods.cs
- COM2TypeInfoProcessor.cs
- PageAsyncTask.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- ByeMessageCD1.cs
- LeftCellWrapper.cs
- TextSegment.cs
- Missing.cs
- DataColumnMapping.cs
- compensatingcollection.cs
- EventLogConfiguration.cs
- X509Certificate2.cs
- FileEnumerator.cs