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
- DetailsViewInsertedEventArgs.cs
- CellLabel.cs
- FtpWebResponse.cs
- IndexedWhereQueryOperator.cs
- DataGrid.cs
- BindingSource.cs
- PrimitiveCodeDomSerializer.cs
- UpdateCommandGenerator.cs
- AutoGeneratedField.cs
- XmlDocumentFragment.cs
- BindingValueChangedEventArgs.cs
- DecoderExceptionFallback.cs
- SerialErrors.cs
- WebBrowserPermission.cs
- RequestCacheValidator.cs
- RemotingSurrogateSelector.cs
- MetadataArtifactLoaderCompositeFile.cs
- RelationshipNavigation.cs
- SchemaInfo.cs
- PageFunction.cs
- WebEncodingValidatorAttribute.cs
- RelationshipConverter.cs
- NamespaceEmitter.cs
- ServicesUtilities.cs
- IgnoreFlushAndCloseStream.cs
- RenderingEventArgs.cs
- SymbolTable.cs
- ObjectDataSourceView.cs
- ParallelDesigner.cs
- MembershipPasswordException.cs
- DispatcherExceptionEventArgs.cs
- SapiAttributeParser.cs
- PartitionResolver.cs
- COSERVERINFO.cs
- BaseInfoTable.cs
- SizeAnimationClockResource.cs
- GeneralTransform3DGroup.cs
- FileAuthorizationModule.cs
- ObjectQueryState.cs
- CollectionCodeDomSerializer.cs
- AggregateException.cs
- ControlType.cs
- SoapHelper.cs
- MetadataPropertyvalue.cs
- RtfToken.cs
- SessionEndingEventArgs.cs
- LogSwitch.cs
- Currency.cs
- WFItemsToSpacerVisibility.cs
- MeasureItemEvent.cs
- MenuEventArgs.cs
- Encoder.cs
- ChangeToolStripParentVerb.cs
- Models.cs
- GZipStream.cs
- NamespaceListProperty.cs
- MenuItemBindingCollection.cs
- DataGridViewCellStyle.cs
- SymDocumentType.cs
- Char.cs
- WebPartMinimizeVerb.cs
- NativeMethods.cs
- ReturnEventArgs.cs
- DEREncoding.cs
- HtmlInputPassword.cs
- WmlControlAdapter.cs
- DesignerTransactionCloseEvent.cs
- TripleDES.cs
- QuaternionAnimation.cs
- RtType.cs
- CollectionViewGroupRoot.cs
- METAHEADER.cs
- State.cs
- CapabilitiesState.cs
- SessionStateSection.cs
- ErrorFormatterPage.cs
- OutOfMemoryException.cs
- WeakHashtable.cs
- GridItemProviderWrapper.cs
- CodeAttributeArgument.cs
- _CookieModule.cs
- ArraySegment.cs
- ObjectStorage.cs
- RegexFCD.cs
- CharacterMetricsDictionary.cs
- ProviderSettingsCollection.cs
- NoPersistHandle.cs
- SystemIdentity.cs
- ForeignKeyConstraint.cs
- NetStream.cs
- ValidateNames.cs
- PermissionAttributes.cs
- UIElement3D.cs
- ThicknessAnimation.cs
- DBSchemaRow.cs
- MetabaseServerConfig.cs
- ColorTransform.cs
- MexTcpBindingCollectionElement.cs
- ParallelQuery.cs
- DateTimeFormatInfo.cs