Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebParts / ConnectionInterfaceCollection.cs / 1305376 / ConnectionInterfaceCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Collections; using System.ComponentModel; public sealed class ConnectionInterfaceCollection : ReadOnlyCollectionBase { public static readonly ConnectionInterfaceCollection Empty = new ConnectionInterfaceCollection(); public ConnectionInterfaceCollection() { } public ConnectionInterfaceCollection(ICollection connectionInterfaces) { Initialize(null, connectionInterfaces); } public ConnectionInterfaceCollection(ConnectionInterfaceCollection existingConnectionInterfaces, ICollection connectionInterfaces) { Initialize(existingConnectionInterfaces, connectionInterfaces); } private void Initialize(ConnectionInterfaceCollection existingConnectionInterfaces, ICollection connectionInterfaces) { if (existingConnectionInterfaces != null) { foreach (Type existingConnectionInterface in existingConnectionInterfaces) { // Don't need to check arg, since we know it is valid since it came // from a ConnectionInterfaceCollection. InnerList.Add(existingConnectionInterface); } } if (connectionInterfaces != null) { foreach (object obj in connectionInterfaces) { if (obj == null) { throw new ArgumentException(SR.GetString(SR.Collection_CantAddNull), "connectionInterfaces"); } if (!(obj is Type)) { throw new ArgumentException(SR.GetString(SR.Collection_InvalidType, "Type"), "connectionInterfaces"); } InnerList.Add(obj); } } } public bool Contains(Type value) { return InnerList.Contains(value); } public int IndexOf(Type value) { return InnerList.IndexOf(value); } public Type this[int index] { get { return (Type)InnerList[index]; } } public void CopyTo(Type[] array, int index) { InnerList.CopyTo(array, index); } } } // 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
- ColumnMapVisitor.cs
- NavigationEventArgs.cs
- AffineTransform3D.cs
- SqlCommand.cs
- SelectedDatesCollection.cs
- HtmlInputText.cs
- DataGridViewImageCell.cs
- ZoneLinkButton.cs
- MenuBindingsEditor.cs
- RoleServiceManager.cs
- DataQuery.cs
- PerformanceCounterScope.cs
- SystemIPInterfaceProperties.cs
- QuotedPrintableStream.cs
- WorkflowTraceTransfer.cs
- XmlNodeReader.cs
- DocumentGridPage.cs
- SerTrace.cs
- AsyncInvokeOperation.cs
- Transform.cs
- Point3DKeyFrameCollection.cs
- StylusButtonEventArgs.cs
- OutputCacheProfileCollection.cs
- InputLanguageEventArgs.cs
- CodeTypeDeclaration.cs
- SystemIPGlobalProperties.cs
- TypeUtils.cs
- KeyMatchBuilder.cs
- DocobjHost.cs
- Span.cs
- CodeActivity.cs
- CodeChecksumPragma.cs
- DbDataRecord.cs
- StylusPointPropertyInfoDefaults.cs
- WrappedKeySecurityToken.cs
- IList.cs
- ClientTargetSection.cs
- ToolStripDropDownButton.cs
- DataGridColumnCollection.cs
- WindowsTreeView.cs
- AssemblyFilter.cs
- Events.cs
- ServiceHostFactory.cs
- SizeAnimation.cs
- MultiPageTextView.cs
- DocumentEventArgs.cs
- MetadataCache.cs
- sqlcontext.cs
- TouchPoint.cs
- UpdateCompiler.cs
- AssemblyAttributes.cs
- NullRuntimeConfig.cs
- EnumValidator.cs
- PermissionAttributes.cs
- MultiAsyncResult.cs
- DesignerHost.cs
- StructuredCompositeActivityDesigner.cs
- Collection.cs
- HostProtectionPermission.cs
- Source.cs
- XhtmlBasicCalendarAdapter.cs
- SecurityPolicySection.cs
- ArraySubsetEnumerator.cs
- AttributeSetAction.cs
- Matrix3DConverter.cs
- TypeDescriptionProvider.cs
- MdImport.cs
- DecimalConverter.cs
- ConsoleCancelEventArgs.cs
- Vector3DConverter.cs
- DeclaredTypeValidator.cs
- MatrixCamera.cs
- SuppressMergeCheckAttribute.cs
- ZipFileInfoCollection.cs
- ResourceContainer.cs
- X509RawDataKeyIdentifierClause.cs
- IsolatedStorageFilePermission.cs
- Image.cs
- AccessDataSource.cs
- ProcessProtocolHandler.cs
- ThicknessAnimationBase.cs
- ToolStripPanel.cs
- FileDetails.cs
- PingReply.cs
- MimeMultiPart.cs
- M3DUtil.cs
- BindStream.cs
- SatelliteContractVersionAttribute.cs
- OverloadGroupAttribute.cs
- DataSourceControl.cs
- X509SubjectKeyIdentifierClause.cs
- CodeAttachEventStatement.cs
- Util.cs
- SecUtil.cs
- TraceSource.cs
- ApplicationDirectory.cs
- CodeStatementCollection.cs
- XmlDataLoader.cs
- MenuAdapter.cs
- DesignerDataStoredProcedure.cs