Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / DataOracleClient / System / Data / Common / DBSqlParserTableCollection.cs / 1 / DBSqlParserTableCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Data.OracleClient { using System; using System.Collections; using System.Diagnostics; using System.Text; //--------------------------------------------------------------------- // DbSqlParserColumnCollection // // A collection of parsed table references from DbSqlParser. // sealed internal class DbSqlParserTableCollection : CollectionBase { private Type ItemType { get { return typeof(DbSqlParserTable); } } internal DbSqlParserTable this[int i] { get { DbSqlParserTable value = (DbSqlParserTable)InnerList[i]; return value; } } internal DbSqlParserTable Add(DbSqlParserTable value) { OnValidate(value); InnerList.Add(value); return value; } internal DbSqlParserTable Add (string databaseName, string schemaName, string tableName, string correlationName) { DbSqlParserTable p = new DbSqlParserTable(databaseName, schemaName, tableName, correlationName); return Add(p); } protected override void OnValidate(Object value) { Debug.Assert (value != null, "may not add null objects to collection!"); Debug.Assert (ItemType.IsInstanceOfType(value), "object to add must be a DbSqlParserTable!"); } }; } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Data.OracleClient { using System; using System.Collections; using System.Diagnostics; using System.Text; //--------------------------------------------------------------------- // DbSqlParserColumnCollection // // A collection of parsed table references from DbSqlParser. // sealed internal class DbSqlParserTableCollection : CollectionBase { private Type ItemType { get { return typeof(DbSqlParserTable); } } internal DbSqlParserTable this[int i] { get { DbSqlParserTable value = (DbSqlParserTable)InnerList[i]; return value; } } internal DbSqlParserTable Add(DbSqlParserTable value) { OnValidate(value); InnerList.Add(value); return value; } internal DbSqlParserTable Add (string databaseName, string schemaName, string tableName, string correlationName) { DbSqlParserTable p = new DbSqlParserTable(databaseName, schemaName, tableName, correlationName); return Add(p); } protected override void OnValidate(Object value) { Debug.Assert (value != null, "may not add null objects to collection!"); Debug.Assert (ItemType.IsInstanceOfType(value), "object to add must be a DbSqlParserTable!"); } }; } // 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
- FixedSOMPage.cs
- URIFormatException.cs
- ExpressionPrefixAttribute.cs
- ContentTextAutomationPeer.cs
- AuditLog.cs
- NonVisualControlAttribute.cs
- SafeBitVector32.cs
- UnSafeCharBuffer.cs
- DataGridViewButtonCell.cs
- FontSource.cs
- documentsequencetextpointer.cs
- _ChunkParse.cs
- HelpEvent.cs
- SingleTagSectionHandler.cs
- GeometryGroup.cs
- APCustomTypeDescriptor.cs
- GPPOINT.cs
- ResolvePPIDRequest.cs
- RuleRefElement.cs
- TagMapCollection.cs
- Quaternion.cs
- ServiceModelTimeSpanValidator.cs
- SocketManager.cs
- XmlSchemaAppInfo.cs
- XmlSchemaException.cs
- EntityDataSourceColumn.cs
- CreatingCookieEventArgs.cs
- CodeExporter.cs
- RoleManagerSection.cs
- GrammarBuilderBase.cs
- OdbcStatementHandle.cs
- ProfileModule.cs
- SerializerProvider.cs
- StorageModelBuildProvider.cs
- DtdParser.cs
- Binding.cs
- XmlSchemaRedefine.cs
- Executor.cs
- DeferredElementTreeState.cs
- PersonalizationProviderCollection.cs
- CodeMemberProperty.cs
- RootBuilder.cs
- RequestCacheManager.cs
- RuntimeArgumentHandle.cs
- SqlComparer.cs
- HotSpotCollection.cs
- DataGridParentRows.cs
- SqlBooleanizer.cs
- MatrixAnimationUsingKeyFrames.cs
- SoapMessage.cs
- coordinatorfactory.cs
- Int32CAMarshaler.cs
- AppendHelper.cs
- VersionPair.cs
- __Error.cs
- TimelineCollection.cs
- StateMachineSubscription.cs
- ToolBarButton.cs
- WebControlsSection.cs
- BamlTreeNode.cs
- FileDialogPermission.cs
- EllipseGeometry.cs
- RuntimeArgumentHandle.cs
- log.cs
- FreezableOperations.cs
- _WinHttpWebProxyDataBuilder.cs
- _NetRes.cs
- ObjectStateFormatter.cs
- EdgeModeValidation.cs
- XmlSchemaAnnotated.cs
- MaterialCollection.cs
- ZipFileInfoCollection.cs
- _SingleItemRequestCache.cs
- BindingManagerDataErrorEventArgs.cs
- TextEditor.cs
- CompensableActivity.cs
- Sequence.cs
- TriggerBase.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- TreeSet.cs
- ItemsControlAutomationPeer.cs
- CodeMethodInvokeExpression.cs
- KeyTimeConverter.cs
- OperationAbortedException.cs
- PointCollection.cs
- MasterPageCodeDomTreeGenerator.cs
- DebugHandleTracker.cs
- WrapperSecurityCommunicationObject.cs
- FileRegion.cs
- System.Data_BID.cs
- DesignerAttribute.cs
- ToolStripSplitStackLayout.cs
- UserControlDesigner.cs
- ArcSegment.cs
- Size.cs
- IList.cs
- VisualTreeHelper.cs
- CodeChecksumPragma.cs
- ProgressBarAutomationPeer.cs
- ArithmeticException.cs