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
- MD5CryptoServiceProvider.cs
- ListViewItem.cs
- TaiwanCalendar.cs
- Label.cs
- RectValueSerializer.cs
- BezierSegment.cs
- ReadonlyMessageFilter.cs
- DataSourceSelectArguments.cs
- COM2Properties.cs
- FileUtil.cs
- BookmarkOptionsHelper.cs
- ObjectDataSourceSelectingEventArgs.cs
- WrapperSecurityCommunicationObject.cs
- AuthenticationModulesSection.cs
- ProfileInfo.cs
- DataObjectFieldAttribute.cs
- EmptyQuery.cs
- ListItemCollection.cs
- TableParagraph.cs
- PolyQuadraticBezierSegment.cs
- Latin1Encoding.cs
- AudioBase.cs
- DataGridRowAutomationPeer.cs
- EventManager.cs
- IFlowDocumentViewer.cs
- DetailsViewModeEventArgs.cs
- ScriptResourceInfo.cs
- CustomAttributeBuilder.cs
- _OSSOCK.cs
- TextElementEditingBehaviorAttribute.cs
- MILUtilities.cs
- LinqToSqlWrapper.cs
- PropertyValueChangedEvent.cs
- SourceCollection.cs
- CodeExporter.cs
- CodeAttachEventStatement.cs
- Vector3DCollection.cs
- SpecialTypeDataContract.cs
- LinkedResourceCollection.cs
- OpCopier.cs
- MarkupObject.cs
- UserControlParser.cs
- MorphHelpers.cs
- ValidatingReaderNodeData.cs
- ServicePrincipalNameElement.cs
- DesignerForm.cs
- MSAAWinEventWrap.cs
- Vector3DIndependentAnimationStorage.cs
- ClientApiGenerator.cs
- ChannelSinkStacks.cs
- HttpModulesSection.cs
- BulletedListEventArgs.cs
- XmlRawWriter.cs
- BitmapFrame.cs
- HtmlDocument.cs
- DataRecordObjectView.cs
- XmlDataFileEditor.cs
- MenuItemStyleCollection.cs
- listitem.cs
- Mouse.cs
- EdmToObjectNamespaceMap.cs
- EllipseGeometry.cs
- Exceptions.cs
- SynchronizedInputAdaptor.cs
- ApplicationManager.cs
- CmsUtils.cs
- SiteMembershipCondition.cs
- IMembershipProvider.cs
- Compiler.cs
- WebServiceEndpoint.cs
- OdbcUtils.cs
- Soap.cs
- CodeTypeReferenceExpression.cs
- ButtonPopupAdapter.cs
- Internal.cs
- XPathCompileException.cs
- AffineTransform3D.cs
- WorkflowApplicationEventArgs.cs
- ClrProviderManifest.cs
- MultiPropertyDescriptorGridEntry.cs
- ChtmlImageAdapter.cs
- NamespaceCollection.cs
- ExtractorMetadata.cs
- PathFigure.cs
- ArithmeticLiteral.cs
- BindStream.cs
- GlobalProxySelection.cs
- SerializationHelper.cs
- XPathAxisIterator.cs
- NestPullup.cs
- DPCustomTypeDescriptor.cs
- EdmSchemaError.cs
- hwndwrapper.cs
- WebServiceEnumData.cs
- SplitterPanel.cs
- Registry.cs
- XmlCharacterData.cs
- FormViewInsertedEventArgs.cs
- HandlerBase.cs
- TextPattern.cs