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
- MissingSatelliteAssemblyException.cs
- Point3DAnimationBase.cs
- IOException.cs
- ClientTargetCollection.cs
- InteropBitmapSource.cs
- HoistedLocals.cs
- DataMemberFieldEditor.cs
- Bold.cs
- SendingRequestEventArgs.cs
- UIElement3D.cs
- IfAction.cs
- QueryOptionExpression.cs
- ToolboxControl.cs
- ReferentialConstraintRoleElement.cs
- XmlNodeReader.cs
- DataGridViewBindingCompleteEventArgs.cs
- WebPartPersonalization.cs
- BaseTreeIterator.cs
- BinaryFormatter.cs
- ManagementNamedValueCollection.cs
- OrderingInfo.cs
- TemplateParser.cs
- FamilyMapCollection.cs
- Inflater.cs
- MethodBody.cs
- Graph.cs
- OpenFileDialog.cs
- EdmItemError.cs
- InternalDuplexChannelListener.cs
- Helper.cs
- CollectionDataContractAttribute.cs
- Inline.cs
- __Error.cs
- ProcessModelSection.cs
- XpsImage.cs
- FrameworkContentElement.cs
- BindingNavigator.cs
- UIElement3D.cs
- NumericPagerField.cs
- CompiledXpathExpr.cs
- Stroke2.cs
- DocumentSequence.cs
- TextRangeProviderWrapper.cs
- DataGridRowClipboardEventArgs.cs
- EngineSite.cs
- PngBitmapDecoder.cs
- AssemblyEvidenceFactory.cs
- ComponentChangingEvent.cs
- TextParaLineResult.cs
- WinInet.cs
- SerializationSectionGroup.cs
- WebPartHeaderCloseVerb.cs
- ObjectViewQueryResultData.cs
- SystemUdpStatistics.cs
- RawStylusInputCustomDataList.cs
- SecuritySessionServerSettings.cs
- GuidelineSet.cs
- ILGen.cs
- RuleAttributes.cs
- Token.cs
- SettingsPropertyWrongTypeException.cs
- SerializationEventsCache.cs
- UniqueEventHelper.cs
- SortedDictionary.cs
- Parameter.cs
- MembershipSection.cs
- EditorBrowsableAttribute.cs
- ConsoleTraceListener.cs
- COM2TypeInfoProcessor.cs
- ManifestResourceInfo.cs
- HttpResponseHeader.cs
- TextParaLineResult.cs
- SoapEnumAttribute.cs
- ConfigurationPropertyCollection.cs
- PointAnimationUsingPath.cs
- _LoggingObject.cs
- ApplicationCommands.cs
- DataFormats.cs
- ByteArrayHelperWithString.cs
- Tablet.cs
- WSSecurityPolicy.cs
- Scripts.cs
- _NTAuthentication.cs
- ProfilePropertySettingsCollection.cs
- RemotingSurrogateSelector.cs
- ConnectionManagementElementCollection.cs
- SchemaInfo.cs
- ToolStripRendererSwitcher.cs
- PriorityItem.cs
- StylusTip.cs
- InvokePattern.cs
- ObjectStorage.cs
- StaticFileHandler.cs
- XmlElementList.cs
- COM2Enum.cs
- FtpCachePolicyElement.cs
- ManagementEventArgs.cs
- PermissionSetTriple.cs
- WhitespaceRuleReader.cs
- Events.cs