Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- RequiredAttributeAttribute.cs
- DecimalConstantAttribute.cs
- DeleteStoreRequest.cs
- DataGridViewToolTip.cs
- DoubleLink.cs
- DbConnectionHelper.cs
- TransformPattern.cs
- PropertyChangedEventArgs.cs
- TraceSwitch.cs
- DecryptRequest.cs
- UriParserTemplates.cs
- SqlGenericUtil.cs
- RootBrowserWindow.cs
- CodeGotoStatement.cs
- InputScope.cs
- DataGridTextBox.cs
- ILGenerator.cs
- DataGridViewCellStyleConverter.cs
- WebServiceParameterData.cs
- PathFigureCollection.cs
- VirtualDirectoryMapping.cs
- BuildResultCache.cs
- ObjectViewEntityCollectionData.cs
- FileVersionInfo.cs
- TableAdapterManagerGenerator.cs
- ISCIIEncoding.cs
- IPAddress.cs
- TreeNodeBindingCollection.cs
- glyphs.cs
- OleDbStruct.cs
- TraceProvider.cs
- DesignerWebPartChrome.cs
- OleDbPermission.cs
- AnnotationHelper.cs
- CommandHelpers.cs
- HtmlInputFile.cs
- BuildProviderInstallComponent.cs
- CngAlgorithm.cs
- ServiceReflector.cs
- ErrorHandler.cs
- MissingMethodException.cs
- PbrsForward.cs
- X509ChainElement.cs
- ParallelQuery.cs
- _Win32.cs
- ValueSerializer.cs
- ScrollViewer.cs
- FillErrorEventArgs.cs
- ReliableSessionBindingElementImporter.cs
- TypeUtils.cs
- XmlDataLoader.cs
- WinFormsSpinner.cs
- Command.cs
- Menu.cs
- BamlResourceContent.cs
- WebConfigurationHost.cs
- ConsoleKeyInfo.cs
- HandlerBase.cs
- PagePropertiesChangingEventArgs.cs
- BindingCollection.cs
- GlobalProxySelection.cs
- EventLogEntry.cs
- FieldDescriptor.cs
- TextBoxView.cs
- WebPartDisplayModeCancelEventArgs.cs
- UnsafeNativeMethods.cs
- DataGridItem.cs
- RemoteDebugger.cs
- TargetConverter.cs
- PageTheme.cs
- EncoderParameters.cs
- _SSPIWrapper.cs
- DbReferenceCollection.cs
- StringArrayConverter.cs
- TdsParserStateObject.cs
- ToolStripPanel.cs
- Listbox.cs
- dataprotectionpermissionattribute.cs
- UriTemplatePathSegment.cs
- DesigntimeLicenseContext.cs
- WebPageTraceListener.cs
- SymbolResolver.cs
- PersonalizationStateInfoCollection.cs
- CollectionType.cs
- EntitySqlQueryCacheKey.cs
- LoginName.cs
- ProcessHostConfigUtils.cs
- TrackingParticipant.cs
- BamlTreeNode.cs
- WorkflowMarkupSerializer.cs
- ReflectionTypeLoadException.cs
- NextPreviousPagerField.cs
- ChangeNode.cs
- DeviceFilterEditorDialog.cs
- FixedPage.cs
- CryptoHelper.cs
- TranslateTransform3D.cs
- RowToParametersTransformer.cs
- MetadataItemCollectionFactory.cs
- LabelLiteral.cs