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
- DynamicRenderer.cs
- ExpandCollapseProviderWrapper.cs
- SqlReorderer.cs
- CommonGetThemePartSize.cs
- SessionParameter.cs
- StopRoutingHandler.cs
- FlatButtonAppearance.cs
- DeadCharTextComposition.cs
- VisualStates.cs
- FullTextState.cs
- FrameworkPropertyMetadata.cs
- SystemThemeKey.cs
- ObjectSecurity.cs
- counter.cs
- UpdateException.cs
- CompilationUtil.cs
- StringComparer.cs
- EqualityComparer.cs
- WebServiceTypeData.cs
- ProfileSettingsCollection.cs
- Adorner.cs
- ConstraintStruct.cs
- TranslateTransform3D.cs
- AlignmentYValidation.cs
- ParserOptions.cs
- PersonalizationState.cs
- Parser.cs
- CodeTypeReferenceExpression.cs
- ProtocolsConfigurationEntry.cs
- HtmlInputReset.cs
- TrustManagerMoreInformation.cs
- Site.cs
- WpfPayload.cs
- LongValidator.cs
- SimpleTypesSurrogate.cs
- QueryContinueDragEvent.cs
- WebPartAuthorizationEventArgs.cs
- HtmlValidationSummaryAdapter.cs
- UpDownBase.cs
- PrintDialogDesigner.cs
- DetailsViewCommandEventArgs.cs
- OracleCommandSet.cs
- MenuBindingsEditor.cs
- UnsafeNativeMethods.cs
- ConnectionPoolManager.cs
- DataGridRelationshipRow.cs
- MemberPath.cs
- SystemUdpStatistics.cs
- XmlEntityReference.cs
- ValidatingReaderNodeData.cs
- WpfPayload.cs
- WindowsRegion.cs
- SQLBinaryStorage.cs
- ObjectDataSourceEventArgs.cs
- KeyPullup.cs
- ServerValidateEventArgs.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- Operand.cs
- DistributedTransactionPermission.cs
- ExtendedProtectionPolicyElement.cs
- OleDbDataAdapter.cs
- SystemIPAddressInformation.cs
- KnownBoxes.cs
- WorkflowServiceNamespace.cs
- FlagPanel.cs
- XsltCompileContext.cs
- ByteConverter.cs
- ScrollProperties.cs
- CodeCommentStatementCollection.cs
- WindowsGraphicsWrapper.cs
- CapabilitiesSection.cs
- SatelliteContractVersionAttribute.cs
- SqlFacetAttribute.cs
- CharAnimationUsingKeyFrames.cs
- ViewStateException.cs
- HttpListener.cs
- TransformProviderWrapper.cs
- InstanceHandle.cs
- ContextMarshalException.cs
- TransformCollection.cs
- XamlSerializationHelper.cs
- RawStylusInput.cs
- DebuggerAttributes.cs
- ThreadPool.cs
- DbConnectionPool.cs
- HttpProfileBase.cs
- TextModifier.cs
- PlatformCulture.cs
- ReadWriteObjectLock.cs
- PublishLicense.cs
- ConfigurationLocationCollection.cs
- DataError.cs
- BrowserDefinition.cs
- ThicknessAnimationUsingKeyFrames.cs
- DisplayNameAttribute.cs
- SignatureConfirmationElement.cs
- XmlSchemaComplexType.cs
- TypeContext.cs
- PageAsyncTask.cs
- SrgsElementFactoryCompiler.cs