Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Common / EntitySql / Expr.cs / 1 / 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
- WebAdminConfigurationHelper.cs
- BatchStream.cs
- ParameterBuilder.cs
- WarningException.cs
- _KerberosClient.cs
- SequenceDesigner.cs
- DateTime.cs
- XmlChildNodes.cs
- SoapSchemaExporter.cs
- ReadWriteSpinLock.cs
- ServiceObjectContainer.cs
- KnownIds.cs
- PropertyInformation.cs
- PageVisual.cs
- FixUp.cs
- ExeConfigurationFileMap.cs
- HGlobalSafeHandle.cs
- ProgressChangedEventArgs.cs
- HitTestParameters3D.cs
- datacache.cs
- CompilerScope.Storage.cs
- RawKeyboardInputReport.cs
- CdpEqualityComparer.cs
- Vector3DAnimationUsingKeyFrames.cs
- PeerEndPoint.cs
- PeerInvitationResponse.cs
- Predicate.cs
- DataControlImageButton.cs
- RequestCacheEntry.cs
- ByteViewer.cs
- GridLengthConverter.cs
- ReadonlyMessageFilter.cs
- SynchronizedKeyedCollection.cs
- DefaultWorkflowSchedulerService.cs
- GridProviderWrapper.cs
- WebSysDisplayNameAttribute.cs
- DrawTreeNodeEventArgs.cs
- IndexedGlyphRun.cs
- CodeSubDirectory.cs
- DefaultValidator.cs
- StringDictionary.cs
- Transform3D.cs
- TaiwanLunisolarCalendar.cs
- ModuleConfigurationInfo.cs
- DataGridViewImageColumn.cs
- TypedAsyncResult.cs
- UnknownBitmapEncoder.cs
- Viewport2DVisual3D.cs
- PrivilegeNotHeldException.cs
- DataTableNameHandler.cs
- UpdateProgress.cs
- SurrogateEncoder.cs
- CheckStoreFileValidityRequest.cs
- XmlCharacterData.cs
- UnauthorizedWebPart.cs
- WebPartZone.cs
- RotationValidation.cs
- CodeDefaultValueExpression.cs
- AsymmetricKeyExchangeDeformatter.cs
- ServiceObjectContainer.cs
- CroppedBitmap.cs
- LiteralText.cs
- SqlProvider.cs
- Underline.cs
- ReachVisualSerializerAsync.cs
- ColumnWidthChangingEvent.cs
- TextMetrics.cs
- StrokeCollection2.cs
- XPathBinder.cs
- Int32KeyFrameCollection.cs
- TraceSection.cs
- SocketAddress.cs
- OciEnlistContext.cs
- ControlParser.cs
- GetUserPreferenceRequest.cs
- TextFormatterImp.cs
- StringUtil.cs
- Attributes.cs
- FamilyTypefaceCollection.cs
- CodeSubDirectory.cs
- Animatable.cs
- HttpHeaderCollection.cs
- TypeBuilder.cs
- BindingExpressionBase.cs
- EncoderParameter.cs
- ListViewInsertionMark.cs
- MsmqHostedTransportManager.cs
- _KerberosClient.cs
- PlatformCulture.cs
- UserPersonalizationStateInfo.cs
- SurrogateEncoder.cs
- FlowLayout.cs
- UrlAuthFailedErrorFormatter.cs
- TextBox.cs
- XmlFormatReaderGenerator.cs
- GenericWebPart.cs
- SQLString.cs
- DockProviderWrapper.cs
- SpellerInterop.cs
- RefreshPropertiesAttribute.cs