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
- figurelength.cs
- ServiceOperationInvoker.cs
- View.cs
- ValidationPropertyAttribute.cs
- SystemTcpConnection.cs
- SortDescriptionCollection.cs
- SpecialNameAttribute.cs
- XmlSchemaComplexType.cs
- ReservationNotFoundException.cs
- Math.cs
- SmiMetaData.cs
- TemplateBindingExtension.cs
- Permission.cs
- Peer.cs
- DataBoundLiteralControl.cs
- SqlProviderUtilities.cs
- PropertyBuilder.cs
- XmlStreamNodeWriter.cs
- FormViewPagerRow.cs
- ComplexTypeEmitter.cs
- HTMLTagNameToTypeMapper.cs
- ConfigViewGenerator.cs
- WebPartMinimizeVerb.cs
- EventMemberCodeDomSerializer.cs
- ColorMatrix.cs
- LayoutUtils.cs
- SimpleHandlerBuildProvider.cs
- LayoutUtils.cs
- ValidationManager.cs
- PointKeyFrameCollection.cs
- AddInAdapter.cs
- LinkedResource.cs
- StructuredCompositeActivityDesigner.cs
- DefaultSerializationProviderAttribute.cs
- ProvidePropertyAttribute.cs
- SkewTransform.cs
- TextDecoration.cs
- StylusPointPropertyInfoDefaults.cs
- HorizontalAlignConverter.cs
- RelativeSource.cs
- RequestCacheEntry.cs
- ItemCollection.cs
- InvalidProgramException.cs
- SingleAnimationUsingKeyFrames.cs
- UrlAuthorizationModule.cs
- ReliabilityContractAttribute.cs
- SqlTransaction.cs
- XmlQuerySequence.cs
- AnnotationResource.cs
- TreeNodeEventArgs.cs
- Visual3D.cs
- CookieParameter.cs
- RawStylusActions.cs
- ServiceEndpointElementCollection.cs
- EnumMember.cs
- PropertyAccessVisitor.cs
- Attributes.cs
- Attributes.cs
- Boolean.cs
- unitconverter.cs
- UpdatableGenericsFeature.cs
- KeyProperty.cs
- FixedSOMTableRow.cs
- WorkflowMarkupSerializerMapping.cs
- XmlSchemaAttributeGroup.cs
- ToolBarButtonDesigner.cs
- SHA512CryptoServiceProvider.cs
- BamlBinaryWriter.cs
- ProxyAttribute.cs
- HttpListenerContext.cs
- WindowsFormsHelpers.cs
- X509Utils.cs
- ValidationErrorCollection.cs
- Socket.cs
- TemplatedMailWebEventProvider.cs
- BitmapSourceSafeMILHandle.cs
- SqlUtil.cs
- CodeTypeParameterCollection.cs
- DateTimeValueSerializerContext.cs
- SmiConnection.cs
- ScopelessEnumAttribute.cs
- Psha1DerivedKeyGenerator.cs
- ResXResourceWriter.cs
- DesignerCategoryAttribute.cs
- PageAsyncTaskManager.cs
- RadioButtonStandardAdapter.cs
- ContentIterators.cs
- ByteStreamBufferedMessageData.cs
- SerializerProvider.cs
- BinaryObjectInfo.cs
- ConfigurationManagerHelperFactory.cs
- UIElement3D.cs
- PartialTrustVisibleAssemblyCollection.cs
- Parameter.cs
- FormViewUpdateEventArgs.cs
- MeshGeometry3D.cs
- StackSpiller.Generated.cs
- TypeInfo.cs
- XsltArgumentList.cs
- MasterPageBuildProvider.cs