Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / AST / AstNode.cs / 1305376 / AstNode.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- namespace System.Data.Common.EntitySql.AST { using System; using System.Globalization; using System.Collections; using System.Collections.Generic; ////// Represents base class for nodes in the eSQL abstract syntax tree OM. /// internal abstract class Node { private ErrorContext _errCtx = new ErrorContext(); internal Node() { } internal Node(string commandText, int inputPosition) { _errCtx.CommandText = commandText; _errCtx.InputPosition = inputPosition; } ////// Ast Node error context. /// internal ErrorContext ErrCtx { get { return _errCtx; } set { _errCtx = value; } } } ////// An ast node represents a generic list of ast nodes. /// internal sealed class NodeList: Node, System.Collections.Generic.IEnumerable where T : Node { private readonly List _list = new List (); /// /// Default constructor. /// internal NodeList() { } ////// Initializes adding one item to the list. /// /// expression internal NodeList(T item) { _list.Add(item); } ////// Add an item to the list, return the updated list. /// internal NodeListAdd(T item) { _list.Add(item); return this; } /// /// Returns the number of elements in the list. /// internal int Count { get { return _list.Count; } } ////// Indexer to the list entries. /// /// integer position of the element in the list internal T this[int index] { get { return _list[index]; } } #region GetEnumerator System.Collections.Generic.IEnumeratorSystem.Collections.Generic.IEnumerable .GetEnumerator() { return _list.GetEnumerator(); } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return _list.GetEnumerator(); } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SplayTreeNode.cs
- HijriCalendar.cs
- SplitContainer.cs
- DigestComparer.cs
- PackageFilter.cs
- XmlNotation.cs
- ObjectDataSourceView.cs
- EpmCustomContentWriterNodeData.cs
- CodeValidator.cs
- DataKey.cs
- RuleSetReference.cs
- BufferBuilder.cs
- DataGridViewCellStyle.cs
- PropertyGridEditorPart.cs
- ViewLoader.cs
- safelinkcollection.cs
- MouseEventArgs.cs
- ErrorHandlerModule.cs
- Trace.cs
- ThreadExceptionDialog.cs
- UntypedNullExpression.cs
- StrongNameKeyPair.cs
- DataGridViewCellStyleChangedEventArgs.cs
- ObjectViewFactory.cs
- DocumentViewerAutomationPeer.cs
- TdsParserSafeHandles.cs
- AutoGeneratedFieldProperties.cs
- Int32Rect.cs
- FigureParagraph.cs
- EdmConstants.cs
- BooleanKeyFrameCollection.cs
- TextContainerChangedEventArgs.cs
- DataStorage.cs
- ResourceDescriptionAttribute.cs
- KnownBoxes.cs
- XmlAttributeProperties.cs
- MappingSource.cs
- BindingsCollection.cs
- XmlSchemaProviderAttribute.cs
- CodeVariableReferenceExpression.cs
- HtmlImage.cs
- GenericPrincipal.cs
- CodeDelegateCreateExpression.cs
- Source.cs
- NetTcpSectionData.cs
- TimelineGroup.cs
- MetadataExporter.cs
- TextSelectionHelper.cs
- ContentDefinition.cs
- CategoryAttribute.cs
- InfoCardSymmetricCrypto.cs
- InlineObject.cs
- PassportAuthenticationModule.cs
- WindowsSpinner.cs
- ParameterToken.cs
- HttpListenerRequest.cs
- OleDbDataAdapter.cs
- ProxyHelper.cs
- XmlEnumAttribute.cs
- FontCacheLogic.cs
- TemplateNameScope.cs
- EdmFunction.cs
- InvalidateEvent.cs
- XmlNode.cs
- EntityClientCacheKey.cs
- UserControlBuildProvider.cs
- SqlConnectionString.cs
- WebPartCancelEventArgs.cs
- SiteMapPath.cs
- TraceListeners.cs
- MissingSatelliteAssemblyException.cs
- Schedule.cs
- DataGridCaption.cs
- TableLayoutPanelCellPosition.cs
- SoapSchemaMember.cs
- AppDomainFactory.cs
- NullReferenceException.cs
- unsafenativemethodsother.cs
- __Filters.cs
- HttpHandlersSection.cs
- GcSettings.cs
- DataGridViewHitTestInfo.cs
- IndividualDeviceConfig.cs
- CreateUserWizardDesigner.cs
- X509Certificate2Collection.cs
- ExpressionBuilderCollection.cs
- GeneralTransform.cs
- DispatcherHooks.cs
- WebScriptMetadataFormatter.cs
- FrameworkContentElement.cs
- WebPartConnectionsDisconnectVerb.cs
- CopyOfAction.cs
- SystemWebCachingSectionGroup.cs
- ControlCollection.cs
- MetafileHeader.cs
- NetSectionGroup.cs
- RelationshipNavigation.cs
- BasicCellRelation.cs
- RegisteredArrayDeclaration.cs
- SystemIcmpV4Statistics.cs