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
- ArcSegment.cs
- HebrewNumber.cs
- LocatorBase.cs
- RouteData.cs
- PlatformNotSupportedException.cs
- StandardTransformFactory.cs
- Calendar.cs
- TableStyle.cs
- EncryptedData.cs
- FamilyMapCollection.cs
- ProxyWebPartConnectionCollection.cs
- RelationshipEndCollection.cs
- HMACSHA384.cs
- OdbcEnvironment.cs
- PropertyContainer.cs
- ComponentSerializationService.cs
- SecurityPolicySection.cs
- SelectorAutomationPeer.cs
- EntryIndex.cs
- TemplatePropertyEntry.cs
- DnsPermission.cs
- SessionStateSection.cs
- TypeConverterAttribute.cs
- DeflateStreamAsyncResult.cs
- HTMLTagNameToTypeMapper.cs
- querybuilder.cs
- RawAppCommandInputReport.cs
- RuntimeHandles.cs
- SplineKeyFrames.cs
- PipelineModuleStepContainer.cs
- CodeGotoStatement.cs
- DesignerVerbCollection.cs
- TextBoxBase.cs
- DictionaryEntry.cs
- UpDownBase.cs
- ComponentCommands.cs
- XmlDocument.cs
- ConfigXmlElement.cs
- DataColumnPropertyDescriptor.cs
- ViewPort3D.cs
- DataSourceDesigner.cs
- AudienceUriMode.cs
- SpecialTypeDataContract.cs
- CodeEntryPointMethod.cs
- ListItem.cs
- HttpHandlerAction.cs
- ImageBrush.cs
- BlockingCollection.cs
- XmlSerializerSection.cs
- PageAdapter.cs
- HostingEnvironmentWrapper.cs
- ColumnPropertiesGroup.cs
- XmlBinaryWriter.cs
- TcpClientChannel.cs
- HuffCodec.cs
- PackagePart.cs
- Int32EqualityComparer.cs
- SymmetricAlgorithm.cs
- CodeIterationStatement.cs
- TimeSpanStorage.cs
- ReadOnlyDataSource.cs
- AnnotationHighlightLayer.cs
- WindowsNonControl.cs
- SqlCacheDependencyDatabase.cs
- CompiledQuery.cs
- SiteMembershipCondition.cs
- DocComment.cs
- PageAdapter.cs
- ObjectQuery.cs
- HtmlTitle.cs
- columnmapkeybuilder.cs
- ListBoxChrome.cs
- OrderingInfo.cs
- TableLayoutStyleCollection.cs
- ImageField.cs
- CompositionAdorner.cs
- XmlSchemaSet.cs
- SamlSubjectStatement.cs
- UnionExpr.cs
- DeleteStoreRequest.cs
- WebPartConnectionsCancelVerb.cs
- Sequence.cs
- CodeDomConfigurationHandler.cs
- TranslateTransform3D.cs
- FontUnit.cs
- ExpressionNode.cs
- IdentityHolder.cs
- LocatorManager.cs
- RC2.cs
- SqlDesignerDataSourceView.cs
- PropertyGeneratedEventArgs.cs
- SqlBooleanizer.cs
- SafeHandles.cs
- DialogDivider.cs
- TemplatePropertyEntry.cs
- WorkflowMarkupSerializationException.cs
- GeometryValueSerializer.cs
- DynamicPropertyReader.cs
- Matrix3DStack.cs
- FixedNode.cs