Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DLinq / Dlinq / SqlClient / Query / SqlGatherProducedAliases.cs / 1 / 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
- DataGrid.cs
- UpdatePanelTriggerCollection.cs
- XmlLoader.cs
- PointConverter.cs
- GrowingArray.cs
- BaseComponentEditor.cs
- TraceShell.cs
- CalendarAutoFormatDialog.cs
- PerfService.cs
- CacheEntry.cs
- RemoteWebConfigurationHost.cs
- _LazyAsyncResult.cs
- RemotingAttributes.cs
- RowSpanVector.cs
- RepeatButton.cs
- RuntimeResourceSet.cs
- SystemIcmpV4Statistics.cs
- AutomationElement.cs
- CopyAttributesAction.cs
- CreateUserErrorEventArgs.cs
- PassportAuthenticationModule.cs
- HtmlInputPassword.cs
- XsdValidatingReader.cs
- RelationshipDetailsCollection.cs
- SqlErrorCollection.cs
- FileStream.cs
- MethodBuilderInstantiation.cs
- MetafileHeaderWmf.cs
- StringBuilder.cs
- IriParsingElement.cs
- RemotingAttributes.cs
- RuntimeTrackingProfile.cs
- Formatter.cs
- ProcessModelSection.cs
- DataServiceHostFactory.cs
- LinkUtilities.cs
- ListViewAutomationPeer.cs
- RectConverter.cs
- DoubleMinMaxAggregationOperator.cs
- MailMessage.cs
- PieceNameHelper.cs
- TreeViewDesigner.cs
- CodeGroup.cs
- TimelineGroup.cs
- SelectionRange.cs
- CompiledIdentityConstraint.cs
- DbFunctionCommandTree.cs
- SqlServices.cs
- SpinWait.cs
- DataListCommandEventArgs.cs
- ConditionCollection.cs
- DataGridTextBox.cs
- Graph.cs
- Events.cs
- ScrollChrome.cs
- XmlLoader.cs
- DesignerLabelAdapter.cs
- SignatureGenerator.cs
- ConfigXmlReader.cs
- NoResizeHandleGlyph.cs
- OdbcStatementHandle.cs
- TableLayoutPanel.cs
- SyncOperationState.cs
- DbMetaDataFactory.cs
- QilInvokeLateBound.cs
- XmlSchemaChoice.cs
- Activator.cs
- DbProviderConfigurationHandler.cs
- LiteralDesigner.cs
- FloaterBaseParagraph.cs
- StrongName.cs
- Table.cs
- InternalResources.cs
- Attributes.cs
- SoapSchemaImporter.cs
- ConfigurationManagerInternal.cs
- DataServiceProviderMethods.cs
- DataGridState.cs
- GridItemCollection.cs
- QueryComponents.cs
- CodePrimitiveExpression.cs
- ReachDocumentPageSerializerAsync.cs
- StreamWithDictionary.cs
- UserThread.cs
- RefExpr.cs
- CodeTypeDeclarationCollection.cs
- MimeXmlImporter.cs
- QueueProcessor.cs
- DataGridViewCellEventArgs.cs
- MenuItemStyleCollection.cs
- MtomMessageEncodingElement.cs
- SocketPermission.cs
- SQLDateTimeStorage.cs
- PathSegmentCollection.cs
- MergeFailedEvent.cs
- PrintDialogException.cs
- DataObjectMethodAttribute.cs
- IISMapPath.cs
- ErrorView.xaml.cs
- DispatcherEventArgs.cs