Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DLinq / Dlinq / SqlClient / Query / SqlGatherProducedAliases.cs / 1305376 / SqlGatherProducedAliases.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 produces. /// class SqlGatherProducedAliases { internal static HashSetGather(SqlNode node) { Gatherer g = new Gatherer(); g.Visit(node); return g.Produced; } private class Gatherer : SqlVisitor { internal HashSet Produced = new HashSet (); internal override SqlAlias VisitAlias(SqlAlias a) { Produced.Add(a); return base.VisitAlias(a); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. 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 produces. /// class SqlGatherProducedAliases { internal static HashSetGather(SqlNode node) { Gatherer g = new Gatherer(); g.Visit(node); return g.Produced; } private class Gatherer : SqlVisitor { internal HashSet Produced = new HashSet (); internal override SqlAlias VisitAlias(SqlAlias a) { Produced.Add(a); return base.VisitAlias(a); } } } } // 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
- TextBoxLine.cs
- RepeaterItemCollection.cs
- Decimal.cs
- ComEventsHelper.cs
- DescendantQuery.cs
- DrawingAttributes.cs
- SqlException.cs
- Vector3DCollectionConverter.cs
- RoutedEvent.cs
- DocumentsTrace.cs
- ListViewInsertEventArgs.cs
- BrowserCapabilitiesFactoryBase.cs
- PersistenceIOParticipant.cs
- TargetInvocationException.cs
- MenuItemBinding.cs
- BuildResult.cs
- SymbolType.cs
- SchemaCollectionPreprocessor.cs
- DetailsViewDeleteEventArgs.cs
- FloatSumAggregationOperator.cs
- CompareInfo.cs
- Label.cs
- XpsException.cs
- AxImporter.cs
- DataTableReaderListener.cs
- MemberCollection.cs
- ToolStripSeparator.cs
- DBPropSet.cs
- FormatConvertedBitmap.cs
- DomNameTable.cs
- CacheMode.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- DataGridViewCellCancelEventArgs.cs
- InputLanguage.cs
- ConfigXmlWhitespace.cs
- Geometry3D.cs
- EntityKeyElement.cs
- CodeDirectionExpression.cs
- CollectionsUtil.cs
- fixedPageContentExtractor.cs
- DataGridViewTopRowAccessibleObject.cs
- BinaryFormatterSinks.cs
- RayMeshGeometry3DHitTestResult.cs
- JsonFaultDetail.cs
- SizeF.cs
- ValueUtilsSmi.cs
- TypeUnloadedException.cs
- HttpConfigurationContext.cs
- InputScope.cs
- FrameworkContextData.cs
- BufferedGraphics.cs
- DropDownButton.cs
- HandleDictionary.cs
- DbConnectionOptions.cs
- nulltextcontainer.cs
- BindingWorker.cs
- SapiAttributeParser.cs
- SqlFlattener.cs
- BitmapSourceSafeMILHandle.cs
- PolyLineSegment.cs
- BamlCollectionHolder.cs
- TextEditor.cs
- ObjectDataSourceFilteringEventArgs.cs
- CacheMemory.cs
- TableLayoutSettings.cs
- FixedSOMSemanticBox.cs
- UnmanagedMemoryStream.cs
- DataRecordInternal.cs
- PropertyGrid.cs
- FragmentQueryKB.cs
- WebConvert.cs
- BamlReader.cs
- ProxyManager.cs
- GridViewItemAutomationPeer.cs
- ColumnPropertiesGroup.cs
- SystemWebExtensionsSectionGroup.cs
- CodeMethodReturnStatement.cs
- SystemIPInterfaceStatistics.cs
- TextDecoration.cs
- WebInvokeAttribute.cs
- ControlParameter.cs
- OutputCacheSettingsSection.cs
- ReliabilityContractAttribute.cs
- DataBindingHandlerAttribute.cs
- WebEvents.cs
- SequenceDesigner.cs
- _ConnectOverlappedAsyncResult.cs
- FixedDocumentPaginator.cs
- ToolStripGrip.cs
- IntPtr.cs
- ThicknessAnimationBase.cs
- ServiceNameCollection.cs
- AlphaSortedEnumConverter.cs
- VBCodeProvider.cs
- DataSourceView.cs
- Code.cs
- URI.cs
- DocumentViewer.cs
- Debug.cs
- CodeSnippetCompileUnit.cs