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
- MimeParameter.cs
- CompoundFileStorageReference.cs
- XmlDataSourceNodeDescriptor.cs
- PropertyInformationCollection.cs
- PreviewPageInfo.cs
- RadioButtonFlatAdapter.cs
- ReflectPropertyDescriptor.cs
- WebResponse.cs
- OletxVolatileEnlistment.cs
- Int16AnimationUsingKeyFrames.cs
- OdbcConnectionHandle.cs
- Graph.cs
- VirtualDirectoryMappingCollection.cs
- CategoryNameCollection.cs
- WebPartMovingEventArgs.cs
- TPLETWProvider.cs
- ReadOnlyDataSource.cs
- FocusTracker.cs
- MembershipPasswordException.cs
- X509AsymmetricSecurityKey.cs
- SpellerError.cs
- DependencyObject.cs
- _Rfc2616CacheValidators.cs
- XmlSchemaImporter.cs
- EventItfInfo.cs
- TransactionTable.cs
- XmlObjectSerializerReadContextComplexJson.cs
- FontUnitConverter.cs
- DoubleCollectionConverter.cs
- DirectionalLight.cs
- Trace.cs
- PropertyToken.cs
- SchemaNotation.cs
- HttpListenerRequestUriBuilder.cs
- InternalSafeNativeMethods.cs
- ObjectDataSourceFilteringEventArgs.cs
- SizeIndependentAnimationStorage.cs
- FormsAuthenticationEventArgs.cs
- ProjectionQueryOptionExpression.cs
- HtmlControlPersistable.cs
- DataBindingHandlerAttribute.cs
- Int64Animation.cs
- DesignerSerializerAttribute.cs
- RoutedPropertyChangedEventArgs.cs
- Enum.cs
- SystemUdpStatistics.cs
- SQLGuidStorage.cs
- PerspectiveCamera.cs
- AuditLevel.cs
- FormViewAutoFormat.cs
- LinearKeyFrames.cs
- DiagnosticsConfiguration.cs
- AbsoluteQuery.cs
- Brush.cs
- DispatcherHooks.cs
- CardSpaceShim.cs
- panel.cs
- SHA384.cs
- XPathChildIterator.cs
- WebPartDisplayModeCollection.cs
- CompilerScope.cs
- TrackBar.cs
- ObjectDataSourceView.cs
- DataGridViewAccessibleObject.cs
- RuntimeIdentifierPropertyAttribute.cs
- Converter.cs
- SizeLimitedCache.cs
- BoundField.cs
- Relationship.cs
- x509store.cs
- OleDbConnectionFactory.cs
- MethodRental.cs
- TiffBitmapDecoder.cs
- Interfaces.cs
- CodeNamespace.cs
- UnsettableComboBox.cs
- FixedSOMPageElement.cs
- HttpRawResponse.cs
- Brush.cs
- XsltLibrary.cs
- Model3D.cs
- TemplateBindingExpression.cs
- HttpResponseBase.cs
- x509utils.cs
- AssociationSetEnd.cs
- ListViewItemMouseHoverEvent.cs
- XMLSchema.cs
- LinearQuaternionKeyFrame.cs
- SecurityRuntime.cs
- ScrollBarAutomationPeer.cs
- XAMLParseException.cs
- Socket.cs
- TimeoutValidationAttribute.cs
- ViewgenGatekeeper.cs
- UiaCoreTypesApi.cs
- HeaderCollection.cs
- HtmlForm.cs
- ErrorsHelper.cs
- ObjectResult.cs
- ValidatingReaderNodeData.cs