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
- ParagraphVisual.cs
- Object.cs
- SqlBulkCopy.cs
- MetadataItemCollectionFactory.cs
- MembershipPasswordException.cs
- SafeCancelMibChangeNotify.cs
- FormViewInsertedEventArgs.cs
- ActivityTypeResolver.xaml.cs
- WebServiceEnumData.cs
- JsonQNameDataContract.cs
- MetafileEditor.cs
- HitTestWithPointDrawingContextWalker.cs
- QuestionEventArgs.cs
- WebPartDisplayModeCancelEventArgs.cs
- AppDomain.cs
- WinInetCache.cs
- FacetValueContainer.cs
- SchemaCollectionCompiler.cs
- SignatureResourcePool.cs
- TdsParserHelperClasses.cs
- HwndHostAutomationPeer.cs
- IssuedTokenParametersEndpointAddressElement.cs
- _BasicClient.cs
- ToolbarAUtomationPeer.cs
- ConfigurationManagerHelperFactory.cs
- IisTraceWebEventProvider.cs
- FileDialogCustomPlaces.cs
- MD5CryptoServiceProvider.cs
- TableItemPatternIdentifiers.cs
- PropertyChangingEventArgs.cs
- StringComparer.cs
- ButtonPopupAdapter.cs
- PresentationTraceSources.cs
- SafeMILHandleMemoryPressure.cs
- XXXOnTypeBuilderInstantiation.cs
- MouseButtonEventArgs.cs
- EmbeddedMailObject.cs
- SchemaElementLookUpTable.cs
- EntityDataSourceWizardForm.cs
- FloaterParagraph.cs
- HttpResponseInternalWrapper.cs
- QuestionEventArgs.cs
- RealizationDrawingContextWalker.cs
- AddInToken.cs
- WebPartConnectionsCancelVerb.cs
- AppliedDeviceFiltersEditor.cs
- ContextMenuStrip.cs
- MailDefinition.cs
- SmiMetaDataProperty.cs
- DbParameterHelper.cs
- RenderingBiasValidation.cs
- FrameworkContentElementAutomationPeer.cs
- SqlWebEventProvider.cs
- DataRow.cs
- ProfileGroupSettings.cs
- ShapeTypeface.cs
- ReadOnlyDictionary.cs
- __Filters.cs
- WindowsFormsHostAutomationPeer.cs
- ContentControl.cs
- ConsumerConnectionPoint.cs
- ProcessStartInfo.cs
- SafeNativeMethods.cs
- ActivationWorker.cs
- XmlNamespaceMappingCollection.cs
- Focus.cs
- MsmqReceiveParameters.cs
- DebugHandleTracker.cs
- BinaryParser.cs
- App.cs
- HandlerBase.cs
- SecurityTokenAuthenticator.cs
- SendOperation.cs
- TargetControlTypeAttribute.cs
- FactoryGenerator.cs
- Console.cs
- ListCommandEventArgs.cs
- MergeLocalizationDirectives.cs
- ObjectDisposedException.cs
- InvalidProgramException.cs
- PagePropertiesChangingEventArgs.cs
- PathGeometry.cs
- CheckBoxStandardAdapter.cs
- GridEntryCollection.cs
- ScriptComponentDescriptor.cs
- MouseOverProperty.cs
- Console.cs
- ProtectedConfiguration.cs
- EventRoute.cs
- ArgumentFixer.cs
- XsdDateTime.cs
- DataGridViewToolTip.cs
- _SingleItemRequestCache.cs
- SemanticResolver.cs
- WhitespaceRule.cs
- CompiledQueryCacheKey.cs
- UserMapPath.cs
- AppDomainUnloadedException.cs
- ZoneMembershipCondition.cs
- SqlFormatter.cs