Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DLinq / Dlinq / SqlClient / Query / SqlGatherProducedAliases.cs / 2 / 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 HashSet Gather(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 HashSet Gather(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
- ScopeCompiler.cs
- AbsoluteQuery.cs
- DragDeltaEventArgs.cs
- HtmlTableRowCollection.cs
- EntityDataSourceWrapper.cs
- CodeSnippetStatement.cs
- DbExpressionBuilder.cs
- DesignerSerializerAttribute.cs
- ReverseComparer.cs
- UnsafeNativeMethods.cs
- CodeConstructor.cs
- CompositeClientFormatter.cs
- TextTreeTextElementNode.cs
- _OSSOCK.cs
- ResourcesChangeInfo.cs
- MatchingStyle.cs
- SqlClientWrapperSmiStream.cs
- DataListItem.cs
- ReplyChannel.cs
- ToolStripDropDownClosedEventArgs.cs
- SqlResolver.cs
- BinaryObjectWriter.cs
- DBNull.cs
- ToolStripContentPanelRenderEventArgs.cs
- ThrowHelper.cs
- CompensationHandlingFilter.cs
- CanExecuteRoutedEventArgs.cs
- XmlSortKey.cs
- Win32.cs
- EmissiveMaterial.cs
- WorkflowApplicationAbortedException.cs
- SQLByte.cs
- XmlCDATASection.cs
- StreamSecurityUpgradeInitiator.cs
- ObjectDataSourceDisposingEventArgs.cs
- AuthenticationModuleElement.cs
- ResourceReferenceKeyNotFoundException.cs
- AuthenticatedStream.cs
- BaseValidatorDesigner.cs
- WebRequest.cs
- PkcsMisc.cs
- ProgressBar.cs
- OptimizedTemplateContent.cs
- FullTextBreakpoint.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- CryptoApi.cs
- DES.cs
- InputBinding.cs
- ListQueryResults.cs
- HostedHttpRequestAsyncResult.cs
- SqlDataSourceView.cs
- AnnotationAdorner.cs
- XmlAnyAttributeAttribute.cs
- CapabilitiesAssignment.cs
- RouteParser.cs
- DetailsViewModeEventArgs.cs
- SelectionRange.cs
- RtfControls.cs
- TextRenderer.cs
- XmlnsDefinitionAttribute.cs
- OleStrCAMarshaler.cs
- WmlListAdapter.cs
- WindowsUpDown.cs
- ClockController.cs
- GridViewUpdatedEventArgs.cs
- LinkedResource.cs
- ISCIIEncoding.cs
- Matrix3DValueSerializer.cs
- QuaternionAnimation.cs
- PerformanceCounterPermissionAttribute.cs
- KeyEvent.cs
- ErasingStroke.cs
- VirtualPathData.cs
- ProtocolElement.cs
- SelectionPattern.cs
- CompositeControl.cs
- DataListItem.cs
- listitem.cs
- ApplicationFileParser.cs
- MultipleViewPattern.cs
- HttpServerVarsCollection.cs
- FileLevelControlBuilderAttribute.cs
- SerialPinChanges.cs
- WindowsFormsHelpers.cs
- CheckPair.cs
- QueryOutputWriter.cs
- StringResourceManager.cs
- PointConverter.cs
- ProxySimple.cs
- ManipulationStartedEventArgs.cs
- SqlDataSourceConfigureSortForm.cs
- QilInvokeLateBound.cs
- GeneralTransform3DGroup.cs
- SourceFilter.cs
- LoginCancelEventArgs.cs
- FileClassifier.cs
- CrossSiteScriptingValidation.cs
- EndpointAddressMessageFilter.cs
- ServerTooBusyException.cs
- NumberEdit.cs