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
- GacUtil.cs
- PropertyEntry.cs
- StyleBamlRecordReader.cs
- _UriSyntax.cs
- WebPartChrome.cs
- CqlGenerator.cs
- FormatStringEditor.cs
- WeakHashtable.cs
- Rfc2898DeriveBytes.cs
- IndentedTextWriter.cs
- Emitter.cs
- ItemList.cs
- DataRelation.cs
- ListViewDeleteEventArgs.cs
- GroupByExpressionRewriter.cs
- PropertyStore.cs
- SHA1Managed.cs
- ToolboxService.cs
- SecurityUtils.cs
- XmlValidatingReader.cs
- WorkItem.cs
- EntityClientCacheKey.cs
- InlinedAggregationOperatorEnumerator.cs
- DrawingGroupDrawingContext.cs
- ZipIOCentralDirectoryBlock.cs
- Tool.cs
- SqlClientFactory.cs
- BuildResult.cs
- NativeMethods.cs
- SingleAnimationBase.cs
- wgx_exports.cs
- ResourceReferenceExpression.cs
- CompiledIdentityConstraint.cs
- GeometryValueSerializer.cs
- IdentityElement.cs
- PathFigureCollection.cs
- DataControlFieldsEditor.cs
- XsdBuilder.cs
- HtmlInputImage.cs
- EFAssociationProvider.cs
- DependencyObject.cs
- SmiXetterAccessMap.cs
- IDataContractSurrogate.cs
- SimpleApplicationHost.cs
- LayoutTableCell.cs
- SchemaSetCompiler.cs
- SqlWebEventProvider.cs
- MenuItemBinding.cs
- SecurityException.cs
- StreamGeometry.cs
- FontWeight.cs
- InfoCardArgumentException.cs
- NetworkAddressChange.cs
- SafeHandles.cs
- AnnotationHighlightLayer.cs
- ListViewCancelEventArgs.cs
- DataGridColumnHeaderCollection.cs
- WsdlImporterElement.cs
- SqlDataRecord.cs
- ErrorInfoXmlDocument.cs
- DataServiceRequestArgs.cs
- TextBox.cs
- ImageIndexConverter.cs
- ProxyWebPartConnectionCollection.cs
- assemblycache.cs
- SQLChars.cs
- SamlSubject.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- State.cs
- SafeProcessHandle.cs
- PartitionResolver.cs
- SQLBytesStorage.cs
- RuntimeVariableList.cs
- OdbcReferenceCollection.cs
- OlePropertyStructs.cs
- Util.cs
- VersionedStreamOwner.cs
- DataSet.cs
- TextFormatter.cs
- Vector3DAnimationBase.cs
- InvalidCastException.cs
- ObjectDataSourceView.cs
- TypeElement.cs
- CommentEmitter.cs
- ProofTokenCryptoHandle.cs
- IgnoreSection.cs
- MenuRendererStandards.cs
- Scanner.cs
- CacheForPrimitiveTypes.cs
- PrincipalPermission.cs
- XmlChildNodes.cs
- ApplicationSecurityManager.cs
- GeometryCollection.cs
- SrgsOneOf.cs
- TypeHelper.cs
- SspiNegotiationTokenAuthenticator.cs
- NotifyIcon.cs
- PasswordPropertyTextAttribute.cs
- SoapElementAttribute.cs
- ResourceContainer.cs