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
- HelpProvider.cs
- CacheOutputQuery.cs
- StringPropertyBuilder.cs
- ManipulationDelta.cs
- OutputCacheSection.cs
- EnvelopedPkcs7.cs
- AsymmetricSignatureDeformatter.cs
- BaseCollection.cs
- ObjectDataProvider.cs
- RightsManagementInformation.cs
- ConfigPathUtility.cs
- _SingleItemRequestCache.cs
- MbpInfo.cs
- ProfileEventArgs.cs
- PrivilegedConfigurationManager.cs
- SecondaryIndexDefinition.cs
- ProgressBarBrushConverter.cs
- _UriSyntax.cs
- GacUtil.cs
- InheritedPropertyDescriptor.cs
- HttpHandlersSection.cs
- DefaultEventAttribute.cs
- ISAPIRuntime.cs
- AnnotationHelper.cs
- InkCanvasSelectionAdorner.cs
- PeerNameRecord.cs
- UInt32.cs
- XsltException.cs
- SoapMessage.cs
- BindingMemberInfo.cs
- MULTI_QI.cs
- EntityModelSchemaGenerator.cs
- ToolStripItemRenderEventArgs.cs
- ImageCodecInfo.cs
- RangeBase.cs
- MaskedTextBox.cs
- RuleValidation.cs
- HtmlInputButton.cs
- TypedTableHandler.cs
- SQLBinaryStorage.cs
- IDReferencePropertyAttribute.cs
- DocumentAutomationPeer.cs
- ClientProxyGenerator.cs
- HtmlDocument.cs
- ReflectTypeDescriptionProvider.cs
- IntMinMaxAggregationOperator.cs
- PeerResolverMode.cs
- ProfileInfo.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- SafeFileHandle.cs
- URL.cs
- XhtmlCssHandler.cs
- AutomationFocusChangedEventArgs.cs
- _IPv4Address.cs
- MenuRendererClassic.cs
- SchemaSetCompiler.cs
- SeekableReadStream.cs
- LayoutEngine.cs
- SyntaxCheck.cs
- ServiceNotStartedException.cs
- UIElementPropertyUndoUnit.cs
- UiaCoreApi.cs
- ProgressiveCrcCalculatingStream.cs
- InkPresenterAutomationPeer.cs
- WsrmFault.cs
- SessionStateSection.cs
- PermissionRequestEvidence.cs
- ByteKeyFrameCollection.cs
- ContextMarshalException.cs
- ZoneLinkButton.cs
- SqlInfoMessageEvent.cs
- DrawToolTipEventArgs.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- SimpleWebHandlerParser.cs
- SmtpNetworkElement.cs
- CacheChildrenQuery.cs
- RtType.cs
- EventBuilder.cs
- DefaultValueConverter.cs
- DataSourceSelectArguments.cs
- FlowNode.cs
- Win32Native.cs
- ChannelAcceptor.cs
- DockingAttribute.cs
- CounterCreationDataConverter.cs
- KerberosSecurityTokenProvider.cs
- webproxy.cs
- Buffer.cs
- ComboBox.cs
- ISCIIEncoding.cs
- DrawingBrush.cs
- InputBuffer.cs
- TypeConverter.cs
- ViewBase.cs
- XmlUtil.cs
- CompressEmulationStream.cs
- XmlSerializerOperationFormatter.cs
- StorageTypeMapping.cs
- LiteralTextContainerControlBuilder.cs
- UrlPath.cs