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
- parserscommon.cs
- ButtonBase.cs
- XmlHelper.cs
- RequiredFieldValidator.cs
- Grammar.cs
- ProcessProtocolHandler.cs
- WindowsToolbar.cs
- SSmlParser.cs
- RelOps.cs
- Environment.cs
- XamlBrushSerializer.cs
- InlineCategoriesDocument.cs
- Int64Storage.cs
- VectorConverter.cs
- RoutedEvent.cs
- SignerInfo.cs
- SoapServerMethod.cs
- BlurBitmapEffect.cs
- VersionedStreamOwner.cs
- SynthesizerStateChangedEventArgs.cs
- SQLInt16Storage.cs
- MethodBuilder.cs
- ManualResetEvent.cs
- SoapAttributeAttribute.cs
- NullRuntimeConfig.cs
- SoapHeaders.cs
- diagnosticsswitches.cs
- CorePropertiesFilter.cs
- SmtpMail.cs
- controlskin.cs
- Stackframe.cs
- MsmqInputSessionChannel.cs
- DynamicRendererThreadManager.cs
- MessageHeaderException.cs
- GPRECTF.cs
- XmlnsCompatibleWithAttribute.cs
- ManifestResourceInfo.cs
- Rotation3D.cs
- PropertyValueUIItem.cs
- StyleXamlTreeBuilder.cs
- ItemsControlAutomationPeer.cs
- LinqDataSourceUpdateEventArgs.cs
- SmtpReplyReaderFactory.cs
- NameNode.cs
- WorkflowItemsPresenter.cs
- NavigationProperty.cs
- CellParagraph.cs
- ProfileService.cs
- LicenseManager.cs
- SafeArchiveContext.cs
- IndexerNameAttribute.cs
- SkinBuilder.cs
- SubclassTypeValidatorAttribute.cs
- Bidi.cs
- TreeNode.cs
- SqlBulkCopyColumnMappingCollection.cs
- DataPager.cs
- ToolstripProfessionalRenderer.cs
- ByteStream.cs
- ValuePattern.cs
- ToggleButtonAutomationPeer.cs
- TargetControlTypeCache.cs
- CfgArc.cs
- IIS7UserPrincipal.cs
- BinaryConverter.cs
- BaseUriHelper.cs
- QuaternionAnimationUsingKeyFrames.cs
- ExceptionNotification.cs
- SchemaElement.cs
- webproxy.cs
- ManagementEventArgs.cs
- EdmRelationshipRoleAttribute.cs
- DataControlReference.cs
- SettingsPropertyIsReadOnlyException.cs
- HostProtectionException.cs
- TreeNodeConverter.cs
- JsonObjectDataContract.cs
- DirectoryInfo.cs
- StandardTransformFactory.cs
- FileAuthorizationModule.cs
- MetadataSource.cs
- OracleLob.cs
- ColumnProvider.cs
- Roles.cs
- NavigationPropertySingletonExpression.cs
- SystemWebExtensionsSectionGroup.cs
- FieldToken.cs
- FileDialogCustomPlace.cs
- CalendarDay.cs
- PointKeyFrameCollection.cs
- ReferencedCollectionType.cs
- DetailsViewRowCollection.cs
- COM2PropertyBuilderUITypeEditor.cs
- TerminatorSinks.cs
- TextHintingModeValidation.cs
- AspNetRouteServiceHttpHandler.cs
- LocalServiceSecuritySettingsElement.cs
- HttpContextServiceHost.cs
- EventMappingSettingsCollection.cs
- TypeContext.cs