Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DLinq / Dlinq / SqlClient / Query / SqlGatherProducedAliases.cs / 2 / 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
- _ReceiveMessageOverlappedAsyncResult.cs
- LocalizableResourceBuilder.cs
- NotifyIcon.cs
- BitmapEffectGroup.cs
- XpsFilter.cs
- RepeatBehavior.cs
- UTF7Encoding.cs
- BinHexDecoder.cs
- CriticalHandle.cs
- Facet.cs
- ComEventsHelper.cs
- _LocalDataStore.cs
- DiagnosticTrace.cs
- CodeDomSerializerException.cs
- EqualityArray.cs
- BezierSegment.cs
- EndGetFileNameFromUserRequest.cs
- Geometry3D.cs
- ResourceDescriptionAttribute.cs
- MimeWriter.cs
- TreeNodeStyle.cs
- StateInitialization.cs
- Guid.cs
- columnmapkeybuilder.cs
- Identifier.cs
- RequiredFieldValidator.cs
- WebHeaderCollection.cs
- ColorTransform.cs
- _ShellExpression.cs
- LicenseException.cs
- CalendarDesigner.cs
- ServiceChannel.cs
- XamlPointCollectionSerializer.cs
- XmlDataProvider.cs
- UnaryNode.cs
- HtmlFormAdapter.cs
- SqlDependencyListener.cs
- VisualBasicReference.cs
- Debug.cs
- XmlDownloadManager.cs
- TypeConverterHelper.cs
- ProxyElement.cs
- SimpleTextLine.cs
- DesignOnlyAttribute.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- InitializationEventAttribute.cs
- GPRECTF.cs
- ISCIIEncoding.cs
- BadImageFormatException.cs
- TextElementEnumerator.cs
- Color.cs
- EditorPartCollection.cs
- WebConfigurationHost.cs
- DataGridViewCellFormattingEventArgs.cs
- Bold.cs
- SpinWait.cs
- SelectionRange.cs
- SafeRightsManagementEnvironmentHandle.cs
- RestHandlerFactory.cs
- Module.cs
- StrongNamePublicKeyBlob.cs
- InternalPolicyElement.cs
- ClientConvert.cs
- VirtualDirectoryMapping.cs
- ExecutedRoutedEventArgs.cs
- XmlBufferReader.cs
- PixelFormatConverter.cs
- updatecommandorderer.cs
- CatalogPart.cs
- TimeoutValidationAttribute.cs
- newitemfactory.cs
- DrawToolTipEventArgs.cs
- KeyProperty.cs
- InstanceKeyView.cs
- ThreadInterruptedException.cs
- DataServiceQueryException.cs
- SafeRightsManagementQueryHandle.cs
- Point3D.cs
- OdbcReferenceCollection.cs
- QueryStringHandler.cs
- TerminatorSinks.cs
- DataContractSerializerOperationGenerator.cs
- Journaling.cs
- SpnEndpointIdentity.cs
- UserCancellationException.cs
- ListDictionaryInternal.cs
- BitArray.cs
- DocumentViewerBase.cs
- CompModSwitches.cs
- DataPagerFieldCollection.cs
- XmlSchemaInclude.cs
- GZipDecoder.cs
- FormViewCommandEventArgs.cs
- ContentValidator.cs
- GeometryModel3D.cs
- DragStartedEventArgs.cs
- HostedAspNetEnvironment.cs
- Visual3D.cs
- OleDbFactory.cs
- OracleInternalConnection.cs