Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- SafeNativeMethodsCLR.cs
- AutomationEventArgs.cs
- ExtenderHelpers.cs
- DiffuseMaterial.cs
- SynchronizationValidator.cs
- ToolStripCollectionEditor.cs
- PKCS1MaskGenerationMethod.cs
- DataGridColumnCollectionEditor.cs
- SplineQuaternionKeyFrame.cs
- Rotation3DAnimationBase.cs
- ExpressionEditorAttribute.cs
- ColorContext.cs
- FormViewDeleteEventArgs.cs
- WebPartTracker.cs
- FixedSOMPageConstructor.cs
- TypeLibConverter.cs
- KeyedCollection.cs
- milexports.cs
- PackagingUtilities.cs
- DesignerVerbCollection.cs
- OracleConnectionString.cs
- PeerName.cs
- PersonalizableAttribute.cs
- _SSPIWrapper.cs
- AspNetRouteServiceHttpHandler.cs
- WebOperationContext.cs
- XmlDocumentFragment.cs
- Base64Decoder.cs
- UpWmlMobileTextWriter.cs
- FontUnitConverter.cs
- NavigateEvent.cs
- CriticalFinalizerObject.cs
- RuleRefElement.cs
- FixedElement.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- SecureStringHasher.cs
- _UncName.cs
- TrustManagerMoreInformation.cs
- SkewTransform.cs
- AuthorizationSection.cs
- BitmapEffectDrawingContent.cs
- PeerNearMe.cs
- SQLDecimalStorage.cs
- CardSpacePolicyElement.cs
- JoinGraph.cs
- PageContentCollection.cs
- SymbolType.cs
- DataServiceQuery.cs
- InvalidWMPVersionException.cs
- CustomBindingCollectionElement.cs
- GPRECT.cs
- ScriptModule.cs
- Int32CollectionConverter.cs
- PageFunction.cs
- storepermissionattribute.cs
- MobileCapabilities.cs
- DeflateInput.cs
- ReadOnlyTernaryTree.cs
- KnownTypes.cs
- CustomAttributeBuilder.cs
- ActionFrame.cs
- DbConnectionPoolGroupProviderInfo.cs
- XmlDocumentFragment.cs
- OptimizedTemplateContentHelper.cs
- PartitionResolver.cs
- BamlRecordWriter.cs
- RTLAwareMessageBox.cs
- ColumnResult.cs
- CreateUserWizard.cs
- FormViewUpdatedEventArgs.cs
- AdCreatedEventArgs.cs
- DrawingContextFlattener.cs
- EntityDataSourceContainerNameItem.cs
- EventWaitHandle.cs
- MessageQueuePermissionEntryCollection.cs
- XmlAttributeProperties.cs
- AutoGeneratedField.cs
- ControlParameter.cs
- InheritedPropertyChangedEventArgs.cs
- XamlTypeMapper.cs
- ClientRuntimeConfig.cs
- Panel.cs
- DBSqlParserTable.cs
- SQLUtility.cs
- InfoCardArgumentException.cs
- DesignerSerializationVisibilityAttribute.cs
- LicFileLicenseProvider.cs
- CompareValidator.cs
- WebSysDefaultValueAttribute.cs
- ContentOperations.cs
- ConfigurationManagerHelper.cs
- SplitContainer.cs
- ISO2022Encoding.cs
- MetadataUtil.cs
- DefaultClaimSet.cs
- IPEndPointCollection.cs
- HttpBrowserCapabilitiesWrapper.cs
- SecurityKeyType.cs
- FocusTracker.cs
- SqlDependency.cs