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
- RawTextInputReport.cs
- RelationshipManager.cs
- PlatformNotSupportedException.cs
- RijndaelManagedTransform.cs
- ButtonBaseAutomationPeer.cs
- FontCacheUtil.cs
- DynamicValueConverter.cs
- EventRouteFactory.cs
- rsa.cs
- IdentityNotMappedException.cs
- ServiceParser.cs
- ClaimTypes.cs
- AudioBase.cs
- GACIdentityPermission.cs
- ShaperBuffers.cs
- DataObjectMethodAttribute.cs
- HandlerFactoryCache.cs
- ScrollableControl.cs
- WorkflowInstanceUnhandledExceptionRecord.cs
- TextProperties.cs
- VectorCollectionValueSerializer.cs
- IsolatedStorageFilePermission.cs
- GroupJoinQueryOperator.cs
- FixedHighlight.cs
- FullTextState.cs
- XmlSchemaValidator.cs
- AutomationPatternInfo.cs
- PageContentAsyncResult.cs
- Rotation3D.cs
- ApplicationSecurityManager.cs
- ProtocolsConfigurationHandler.cs
- BinaryNode.cs
- EnumValAlphaComparer.cs
- LogArchiveSnapshot.cs
- HtmlInputFile.cs
- State.cs
- ProfileBuildProvider.cs
- HttpCookiesSection.cs
- basecomparevalidator.cs
- TreeViewEvent.cs
- ListViewHitTestInfo.cs
- DeclaredTypeValidator.cs
- InheritanceContextChangedEventManager.cs
- ExitEventArgs.cs
- GridSplitterAutomationPeer.cs
- DependencyPropertyAttribute.cs
- TextContainer.cs
- XmlLoader.cs
- WebPartConnectVerb.cs
- DiscreteKeyFrames.cs
- XmlSchemas.cs
- CalendarSelectionChangedEventArgs.cs
- CheckedListBox.cs
- PrintingPermission.cs
- ParameterRetriever.cs
- AnalyzedTree.cs
- documentsequencetextpointer.cs
- cryptoapiTransform.cs
- JumpTask.cs
- XmlElementList.cs
- UnsafeNativeMethodsMilCoreApi.cs
- WorkflowPrinting.cs
- HttpProfileBase.cs
- RuleElement.cs
- CompletedAsyncResult.cs
- SchemaCollectionPreprocessor.cs
- BaseCollection.cs
- ProvidePropertyAttribute.cs
- WsdlInspector.cs
- XmlSchemaAnnotated.cs
- DiscoveryClientBindingElement.cs
- TextServicesLoader.cs
- QueryOptionExpression.cs
- SmiSettersStream.cs
- SafeArrayTypeMismatchException.cs
- HandledEventArgs.cs
- ValidationSummary.cs
- CodeSnippetExpression.cs
- COM2TypeInfoProcessor.cs
- validationstate.cs
- TableSectionStyle.cs
- MatrixTransform.cs
- XpsS0ValidatingLoader.cs
- SessionStateSection.cs
- UriSection.cs
- HttpCapabilitiesBase.cs
- XmlSchemaException.cs
- EventManager.cs
- XmlCountingReader.cs
- DesignerCategoryAttribute.cs
- DocumentSequenceHighlightLayer.cs
- DelegatedStream.cs
- SchemaElement.cs
- XmlArrayItemAttribute.cs
- FactoryId.cs
- FilterEventArgs.cs
- StickyNoteAnnotations.cs
- ServiceSecurityAuditElement.cs
- TreeNodeBindingCollection.cs
- DataTableReaderListener.cs