Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / Expr.cs / 2 / Expr.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backup [....] //--------------------------------------------------------------------- namespace System.Data.Common.EntitySql { using System; using System.Globalization; using System.Collections; using System.Collections.Generic; enum AstExprKind { Generic, Query, Insert, Update, Delete } ////// Represents the base type of all Expression Nodes /// internal abstract class Expr : AstNode { internal Expr() : base() { } internal Expr( string query, int inputPos ) : base(query, inputPos) { } internal virtual AstExprKind ExprKind { get { return AstExprKind.Generic; } } } ////// Represents generic list of expressions. /// ///expression type internal sealed class ExprList: Expr, System.Collections.Generic.IEnumerable { private List _exprList = new List (); /// /// default constructor /// internal ExprList() { } ////// initializes adding one item to the list. /// /// expression internal ExprList( T item ) { _exprList.Add(item); } ////// add an expression to the expression list. /// /// Expression ///Updated ExpressionList internal ExprListAdd( T item ) { _exprList.Add(item); return this; } /// /// Returns the list of expressions /// internal ListExpressions { get { return _exprList; } } #if __WHEN_NEEDED__ /// /// Verifies if list elements if of specified type. /// /// instance of a given type ///true if is the same type, false otherwise internal bool IsListOf( object o ) { return o.GetType().Equals( typeof( T ) ); } #endif ////// Returns the number of elements in the list /// internal int Count { get { return _exprList.Count; } } ////// Indexer to the list entries. /// /// integer position of the element in the list ///Expression internal T this[int index] { get { return _exprList[index]; } } #region GetEnumerator System.Collections.Generic.IEnumeratorSystem.Collections.Generic.IEnumerable .GetEnumerator() { return _exprList.GetEnumerator(); } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return _exprList.GetEnumerator(); } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backup [....] //--------------------------------------------------------------------- namespace System.Data.Common.EntitySql { using System; using System.Globalization; using System.Collections; using System.Collections.Generic; enum AstExprKind { Generic, Query, Insert, Update, Delete } ////// Represents the base type of all Expression Nodes /// internal abstract class Expr : AstNode { internal Expr() : base() { } internal Expr( string query, int inputPos ) : base(query, inputPos) { } internal virtual AstExprKind ExprKind { get { return AstExprKind.Generic; } } } ////// Represents generic list of expressions. /// ///expression type internal sealed class ExprList: Expr, System.Collections.Generic.IEnumerable { private List _exprList = new List (); /// /// default constructor /// internal ExprList() { } ////// initializes adding one item to the list. /// /// expression internal ExprList( T item ) { _exprList.Add(item); } ////// add an expression to the expression list. /// /// Expression ///Updated ExpressionList internal ExprListAdd( T item ) { _exprList.Add(item); return this; } /// /// Returns the list of expressions /// internal ListExpressions { get { return _exprList; } } #if __WHEN_NEEDED__ /// /// Verifies if list elements if of specified type. /// /// instance of a given type ///true if is the same type, false otherwise internal bool IsListOf( object o ) { return o.GetType().Equals( typeof( T ) ); } #endif ////// Returns the number of elements in the list /// internal int Count { get { return _exprList.Count; } } ////// Indexer to the list entries. /// /// integer position of the element in the list ///Expression internal T this[int index] { get { return _exprList[index]; } } #region GetEnumerator System.Collections.Generic.IEnumeratorSystem.Collections.Generic.IEnumerable .GetEnumerator() { return _exprList.GetEnumerator(); } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return _exprList.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
- ColumnClickEvent.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- CmsInterop.cs
- EditingCommands.cs
- DetailsView.cs
- WebContext.cs
- TextParagraphProperties.cs
- InternalMappingException.cs
- ListControlBoundActionList.cs
- PenThreadPool.cs
- ContextConfiguration.cs
- DocumentEventArgs.cs
- ConfigurationValidatorBase.cs
- FirstMatchCodeGroup.cs
- SchemaLookupTable.cs
- _HelperAsyncResults.cs
- ContentType.cs
- ManipulationInertiaStartingEventArgs.cs
- VisualCollection.cs
- HtmlInputReset.cs
- IntellisenseTextBox.designer.cs
- GlyphTypeface.cs
- PeerToPeerException.cs
- XmlProcessingInstruction.cs
- DoubleLink.cs
- filewebrequest.cs
- FixUp.cs
- ErrorsHelper.cs
- TypefaceMetricsCache.cs
- securestring.cs
- FullTextState.cs
- Scene3D.cs
- SqlWebEventProvider.cs
- CodeDomDecompiler.cs
- TraceSource.cs
- DateTimeStorage.cs
- TreeBuilder.cs
- ReaderContextStackData.cs
- SqlDataSourceSelectingEventArgs.cs
- DataTable.cs
- StylusPointPropertyUnit.cs
- PropertyChangedEventArgs.cs
- FindRequestContext.cs
- XmlSchemaAttribute.cs
- EntityCommandDefinition.cs
- HijriCalendar.cs
- MethodToken.cs
- DataServiceQueryProvider.cs
- SignatureHelper.cs
- DataGridCellsPresenter.cs
- RedirectionProxy.cs
- RedistVersionInfo.cs
- _ProxyChain.cs
- StrongNamePublicKeyBlob.cs
- TypeResolvingOptions.cs
- DefaultPrintController.cs
- DesignOnlyAttribute.cs
- TcpConnectionPoolSettingsElement.cs
- XmlILIndex.cs
- XmlStreamStore.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- ProfessionalColorTable.cs
- ByteKeyFrameCollection.cs
- FigureHelper.cs
- Button.cs
- Win32MouseDevice.cs
- SqlBuilder.cs
- GenericXmlSecurityTokenAuthenticator.cs
- WindowsAuthenticationModule.cs
- Int32AnimationBase.cs
- WrappingXamlSchemaContext.cs
- CanExpandCollapseAllConverter.cs
- KeyTimeConverter.cs
- shaperfactory.cs
- StoreUtilities.cs
- WebPartTransformerAttribute.cs
- AssemblyResolver.cs
- Transform.cs
- Compress.cs
- sortedlist.cs
- CodeFieldReferenceExpression.cs
- DataList.cs
- SqlHelper.cs
- TreeNodeEventArgs.cs
- UserInitiatedNavigationPermission.cs
- ClientFactory.cs
- SplayTreeNode.cs
- SqlDataRecord.cs
- RemoteWebConfigurationHostServer.cs
- AssemblyAttributes.cs
- InstanceCreationEditor.cs
- OuterGlowBitmapEffect.cs
- IndexedString.cs
- DataGridItem.cs
- Trigger.cs
- DirectoryInfo.cs
- RemotingAttributes.cs
- TextDpi.cs
- indexingfiltermarshaler.cs
- ToolStripDropDown.cs