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
- glyphs.cs
- WriteableBitmap.cs
- Debug.cs
- RadioButtonRenderer.cs
- FloaterParagraph.cs
- SqlGenericUtil.cs
- DataGridCellInfo.cs
- DeferredTextReference.cs
- UserInitiatedNavigationPermission.cs
- SystemIPInterfaceProperties.cs
- Screen.cs
- _AutoWebProxyScriptHelper.cs
- MarkupCompilePass2.cs
- UnsafeNativeMethods.cs
- Int32Collection.cs
- Attributes.cs
- ListItem.cs
- VariableReference.cs
- DocumentsTrace.cs
- FixedSOMTableCell.cs
- MouseGesture.cs
- AsymmetricSecurityProtocolFactory.cs
- HttpResponse.cs
- IdentityHolder.cs
- PathFigureCollectionConverter.cs
- ActivityBuilderHelper.cs
- NativeMethods.cs
- FileResponseElement.cs
- BulletedListDesigner.cs
- CodeStatement.cs
- DocumentViewerConstants.cs
- DropDownButton.cs
- ConfigurationCollectionAttribute.cs
- XmlQueryCardinality.cs
- WebBaseEventKeyComparer.cs
- AsnEncodedData.cs
- CfgArc.cs
- CompilerState.cs
- WindowInteropHelper.cs
- VBCodeProvider.cs
- ManagedFilter.cs
- KeyInstance.cs
- ComNativeDescriptor.cs
- CrossAppDomainChannel.cs
- ObjectDataSourceEventArgs.cs
- SmiRequestExecutor.cs
- MbpInfo.cs
- CodeValidator.cs
- X509Certificate.cs
- SystemColors.cs
- TagPrefixInfo.cs
- ComponentEditorPage.cs
- IpcChannelHelper.cs
- HighContrastHelper.cs
- Vector3dCollection.cs
- StrokeRenderer.cs
- ToolStripStatusLabel.cs
- BuilderPropertyEntry.cs
- HostingEnvironmentSection.cs
- HttpResponseBase.cs
- CodeIterationStatement.cs
- XmlDictionaryWriter.cs
- SmiMetaData.cs
- BitArray.cs
- ApplicationSecurityInfo.cs
- TextParentUndoUnit.cs
- AlphaSortedEnumConverter.cs
- BuildProvidersCompiler.cs
- WindowsPen.cs
- TableCell.cs
- TCEAdapterGenerator.cs
- AdapterDictionary.cs
- AuthenticationModuleElement.cs
- ViewEventArgs.cs
- DataSet.cs
- BigInt.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- followingquery.cs
- ComponentSerializationService.cs
- SafeNativeMethods.cs
- PerformanceCounters.cs
- SymLanguageType.cs
- GroupByQueryOperator.cs
- DocumentViewerBase.cs
- OracleConnectionString.cs
- JpegBitmapDecoder.cs
- TemplateBindingExpressionConverter.cs
- ProxyWebPartConnectionCollection.cs
- TypedReference.cs
- SecureEnvironment.cs
- sqlstateclientmanager.cs
- StreamGeometryContext.cs
- LayoutTableCell.cs
- GestureRecognizer.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- SectionInformation.cs
- TagPrefixCollection.cs
- HGlobalSafeHandle.cs
- BaseDataBoundControl.cs
- GraphicsPath.cs