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
- SingleAnimationBase.cs
- ObjectListCommandCollection.cs
- Int16Converter.cs
- sqlstateclientmanager.cs
- DomainUpDown.cs
- TypeBrowserDialog.cs
- PartialList.cs
- Script.cs
- DeclaredTypeElementCollection.cs
- WebPartConnectVerb.cs
- InheritanceAttribute.cs
- ThicknessAnimation.cs
- TextElementCollectionHelper.cs
- MethodExpr.cs
- CommandField.cs
- ExpressionParser.cs
- ActivationArguments.cs
- _FixedSizeReader.cs
- _RegBlobWebProxyDataBuilder.cs
- RoleManagerModule.cs
- Calendar.cs
- UnknownBitmapDecoder.cs
- DocumentGridContextMenu.cs
- IntellisenseTextBox.cs
- Geometry.cs
- CompilerLocalReference.cs
- PrimarySelectionGlyph.cs
- File.cs
- DependencyPropertyDescriptor.cs
- CollectionBuilder.cs
- MobileControlsSectionHandler.cs
- Page.cs
- OledbConnectionStringbuilder.cs
- LinearKeyFrames.cs
- XmlWriter.cs
- SourceFileBuildProvider.cs
- ExtenderProvidedPropertyAttribute.cs
- TrackingCondition.cs
- StringOutput.cs
- SchemaManager.cs
- AttachmentCollection.cs
- OdbcCommand.cs
- EncryptedType.cs
- Size3DConverter.cs
- WebPart.cs
- ToolStripHighContrastRenderer.cs
- ElementHost.cs
- ReferencedAssembly.cs
- HitTestFilterBehavior.cs
- LocalTransaction.cs
- ConfigurationPropertyAttribute.cs
- VirtualizedItemProviderWrapper.cs
- MouseDevice.cs
- HTMLTextWriter.cs
- FixedTextBuilder.cs
- TypeInfo.cs
- TagPrefixAttribute.cs
- ReleaseInstanceMode.cs
- TypeHelper.cs
- GradientStopCollection.cs
- VirtualPath.cs
- BinaryObjectInfo.cs
- XmlNamespaceMappingCollection.cs
- NameSpaceExtractor.cs
- ClientOptions.cs
- NestPullup.cs
- WebPartEditorApplyVerb.cs
- WizardStepBase.cs
- ListCollectionView.cs
- BooleanFunctions.cs
- InfoCardService.cs
- SiblingIterators.cs
- QuaternionIndependentAnimationStorage.cs
- CollectionTraceRecord.cs
- ContextMenuAutomationPeer.cs
- BooleanKeyFrameCollection.cs
- DataRecordObjectView.cs
- CodeAttributeDeclaration.cs
- PerfCounterSection.cs
- TimelineClockCollection.cs
- _NtlmClient.cs
- DataTableReader.cs
- CodeDomDesignerLoader.cs
- UriSectionReader.cs
- Transform3DGroup.cs
- RC2.cs
- DbSetClause.cs
- DbMetaDataFactory.cs
- TypeConverterValueSerializer.cs
- NaturalLanguageHyphenator.cs
- HtmlForm.cs
- TableRow.cs
- HtmlImage.cs
- GroupQuery.cs
- AssociationSetMetadata.cs
- DbExpressionVisitor_TResultType.cs
- Range.cs
- MetadataArtifactLoaderComposite.cs
- DataTable.cs
- Content.cs