Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DLinq / Dlinq / SqlClient / Query / SqlGatherProducedAliases.cs / 1 / 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
- DocumentReference.cs
- BitmapScalingModeValidation.cs
- FormatSettings.cs
- MarkupObject.cs
- MobileUserControl.cs
- SqlFlattener.cs
- IsolatedStorageFilePermission.cs
- HwndSource.cs
- IDReferencePropertyAttribute.cs
- DomainUpDown.cs
- SuppressIldasmAttribute.cs
- XmlLinkedNode.cs
- Int32Collection.cs
- WmlListAdapter.cs
- TaskFileService.cs
- TaskDesigner.cs
- LocatorPartList.cs
- ConfigurationSectionGroup.cs
- Speller.cs
- ConstructorExpr.cs
- ArrayExtension.cs
- exports.cs
- WindowsGraphicsCacheManager.cs
- HideDisabledControlAdapter.cs
- ContentPlaceHolder.cs
- AttributeCollection.cs
- assemblycache.cs
- UserControlParser.cs
- WebServiceErrorEvent.cs
- HtmlElement.cs
- CalendarModeChangedEventArgs.cs
- XmlSchema.cs
- EntitySetDataBindingList.cs
- ConnectionPointConverter.cs
- SelectionHighlightInfo.cs
- MenuEventArgs.cs
- PlaceHolder.cs
- TokenBasedSetEnumerator.cs
- DbModificationCommandTree.cs
- HostingEnvironmentSection.cs
- PanelStyle.cs
- GroupLabel.cs
- DataGridCaption.cs
- Transform3D.cs
- BufferAllocator.cs
- CreateUserErrorEventArgs.cs
- future.cs
- HyperlinkAutomationPeer.cs
- TimeoutValidationAttribute.cs
- DeviceSpecificChoiceCollection.cs
- SQLMoney.cs
- XmlHierarchicalDataSourceView.cs
- CustomErrorCollection.cs
- NonParentingControl.cs
- sqlmetadatafactory.cs
- RuleInfoComparer.cs
- System.Data_BID.cs
- SystemIcmpV4Statistics.cs
- XmlBaseWriter.cs
- RecordsAffectedEventArgs.cs
- ProxyManager.cs
- SecurityResources.cs
- DoneReceivingAsyncResult.cs
- HideDisabledControlAdapter.cs
- WebBrowserUriTypeConverter.cs
- NullableDoubleSumAggregationOperator.cs
- ResourcePool.cs
- ProfileSection.cs
- WebEventTraceProvider.cs
- XamlReaderHelper.cs
- ImageSourceConverter.cs
- TypeForwardedFromAttribute.cs
- ClickablePoint.cs
- MimeMapping.cs
- ListViewItem.cs
- PartitionedStreamMerger.cs
- SqlRowUpdatingEvent.cs
- AliasedSlot.cs
- LinkArea.cs
- OdbcUtils.cs
- OdbcHandle.cs
- InstallerTypeAttribute.cs
- GradientStopCollection.cs
- DesignRelation.cs
- ViewUtilities.cs
- TextAutomationPeer.cs
- BackStopAuthenticationModule.cs
- String.cs
- PropertyManager.cs
- TypeSystemHelpers.cs
- Triplet.cs
- DataKeyCollection.cs
- EmptyReadOnlyDictionaryInternal.cs
- ColumnMapCopier.cs
- CommonRemoteMemoryBlock.cs
- KnownBoxes.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- Cursors.cs
- TreeNodeCollection.cs
- ReflectionUtil.cs