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
- Geometry3D.cs
- ConstraintCollection.cs
- SRDisplayNameAttribute.cs
- BinaryNode.cs
- RC2CryptoServiceProvider.cs
- TrackingParameters.cs
- DataFormats.cs
- HttpHandlerActionCollection.cs
- StreamWithDictionary.cs
- UnknownWrapper.cs
- ToolboxItem.cs
- FullTextState.cs
- UpWmlPageAdapter.cs
- EventLogHandle.cs
- DateTimeValueSerializerContext.cs
- InertiaRotationBehavior.cs
- ThicknessAnimation.cs
- ObfuscationAttribute.cs
- SafeLibraryHandle.cs
- JsonStringDataContract.cs
- SQLDouble.cs
- ChannelCredentials.cs
- OleAutBinder.cs
- XmlEventCache.cs
- InteropTrackingRecord.cs
- PackageFilter.cs
- WorkflowLayouts.cs
- SimplePropertyEntry.cs
- TabControl.cs
- MouseDevice.cs
- CleanUpVirtualizedItemEventArgs.cs
- SafeNativeMethods.cs
- XmlWriterSettings.cs
- _ConnectOverlappedAsyncResult.cs
- IntegerFacetDescriptionElement.cs
- SafeUserTokenHandle.cs
- SimpleBitVector32.cs
- Stacktrace.cs
- ObjectItemCachedAssemblyLoader.cs
- CodeTypeParameterCollection.cs
- SerializerDescriptor.cs
- localization.cs
- HasCopySemanticsAttribute.cs
- HistoryEventArgs.cs
- PropertyInfoSet.cs
- FontFamilyValueSerializer.cs
- CodeGenerator.cs
- SemanticResultValue.cs
- Pen.cs
- TabControlToolboxItem.cs
- XmlWriter.cs
- NavigationEventArgs.cs
- WebPartDescriptionCollection.cs
- ComplexTypeEmitter.cs
- CellIdBoolean.cs
- MSG.cs
- ProxyWebPart.cs
- GenericUI.cs
- Exceptions.cs
- __Filters.cs
- CanonicalFormWriter.cs
- DecimalAnimationBase.cs
- RegexCaptureCollection.cs
- WebPartAuthorizationEventArgs.cs
- Propagator.cs
- ValidationHelper.cs
- CodeSubDirectory.cs
- ExpressionHelper.cs
- DataConnectionHelper.cs
- ExtendedPropertyDescriptor.cs
- PickBranchDesigner.xaml.cs
- StringPropertyBuilder.cs
- DefaultValueConverter.cs
- WebPartHeaderCloseVerb.cs
- WebHostUnsafeNativeMethods.cs
- DependencyObject.cs
- MultiTargetingUtil.cs
- BaseValidator.cs
- PlainXmlWriter.cs
- SpecialNameAttribute.cs
- ECDiffieHellmanPublicKey.cs
- FileSystemWatcher.cs
- WebUtil.cs
- DateTimePicker.cs
- FormsAuthenticationModule.cs
- ErrorFormatterPage.cs
- _TransmitFileOverlappedAsyncResult.cs
- HttpRawResponse.cs
- SiteMapNodeItemEventArgs.cs
- DataKey.cs
- WizardStepBase.cs
- Vector3DValueSerializer.cs
- SecureUICommand.cs
- ClientCultureInfo.cs
- Icon.cs
- Form.cs
- ValueTypeFieldReference.cs
- HtmlMeta.cs
- ExpressionBindingCollection.cs
- ExpressionEvaluator.cs