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
- UnknownBitmapDecoder.cs
- SmiConnection.cs
- CheckBox.cs
- PageBuildProvider.cs
- BufferModeSettings.cs
- CodeMemberProperty.cs
- XPathConvert.cs
- XmlElement.cs
- ElementNotAvailableException.cs
- DataViewManager.cs
- MenuBindingsEditorForm.cs
- XmlSchemaComplexType.cs
- MultiAsyncResult.cs
- BrowserCapabilitiesFactory35.cs
- Geometry.cs
- TransportReplyChannelAcceptor.cs
- InputScopeConverter.cs
- StreamUpdate.cs
- InheritanceAttribute.cs
- recordstatescratchpad.cs
- MapPathBasedVirtualPathProvider.cs
- DataServiceHostWrapper.cs
- RuntimeHelpers.cs
- CompModSwitches.cs
- LinearGradientBrush.cs
- NegotiateStream.cs
- MachineKeyValidationConverter.cs
- XmlSerializationReader.cs
- InputDevice.cs
- CatalogZoneBase.cs
- ContextMenu.cs
- FigureParaClient.cs
- ResourceWriter.cs
- WorkflowOwnershipException.cs
- XAMLParseException.cs
- PerformanceCounterCategory.cs
- SymbolType.cs
- ProviderMetadata.cs
- GraphicsContainer.cs
- BorderGapMaskConverter.cs
- BooleanAnimationBase.cs
- ValidationEventArgs.cs
- Panel.cs
- _ListenerResponseStream.cs
- DeviceSpecificDialogCachedState.cs
- XmlEnumAttribute.cs
- TrackingMemoryStream.cs
- ColorDialog.cs
- MobileListItem.cs
- TimeSpanValidatorAttribute.cs
- WebCategoryAttribute.cs
- DataAccessor.cs
- GregorianCalendarHelper.cs
- NetworkInformationPermission.cs
- RangeExpression.cs
- ListDictionary.cs
- FocusTracker.cs
- StylusPointPropertyUnit.cs
- ItemCollection.cs
- XmlKeywords.cs
- SqlDataSourceCommandEventArgs.cs
- FlowPanelDesigner.cs
- QueryCacheKey.cs
- SemaphoreSecurity.cs
- IndentedTextWriter.cs
- DetailsView.cs
- EdmEntityTypeAttribute.cs
- HttpHandlersSection.cs
- DataSpaceManager.cs
- TableLayoutPanelResizeGlyph.cs
- ConfigurationSection.cs
- PrimaryKeyTypeConverter.cs
- RelationshipEnd.cs
- EncodingNLS.cs
- HttpCookie.cs
- RadialGradientBrush.cs
- RegexWorker.cs
- HelpInfo.cs
- TextAnchor.cs
- PeekCompletedEventArgs.cs
- Button.cs
- _NetRes.cs
- And.cs
- RelationshipEndCollection.cs
- EditorPartCollection.cs
- MemberInitExpression.cs
- AmbientValueAttribute.cs
- MultiByteCodec.cs
- UniqueEventHelper.cs
- _IPv4Address.cs
- XmlILStorageConverter.cs
- OdbcConnectionString.cs
- SqlTriggerContext.cs
- CoTaskMemHandle.cs
- InternalBufferOverflowException.cs
- filewebresponse.cs
- DaylightTime.cs
- PageAsyncTask.cs
- LinkLabelLinkClickedEvent.cs
- RichTextBoxDesigner.cs