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
- ParameterBinding.cs
- SmiMetaDataProperty.cs
- RenderDataDrawingContext.cs
- DataServiceQueryProvider.cs
- filewebresponse.cs
- ContainerControl.cs
- WSDualHttpBindingElement.cs
- WpfWebRequestHelper.cs
- ProcessingInstructionAction.cs
- AsymmetricSignatureDeformatter.cs
- SslStreamSecurityBindingElement.cs
- NamespaceList.cs
- TransformConverter.cs
- ToolStripButton.cs
- TextBox.cs
- Facet.cs
- SqlTriggerAttribute.cs
- WorkflowPrinting.cs
- ScrollableControlDesigner.cs
- ListenerServiceInstallComponent.cs
- ButtonRenderer.cs
- DataGridAutomationPeer.cs
- GetPageNumberCompletedEventArgs.cs
- CaseInsensitiveOrdinalStringComparer.cs
- XComponentModel.cs
- EditorPartCollection.cs
- SqlBinder.cs
- MaskedTextBox.cs
- DataBoundControl.cs
- XmlParserContext.cs
- SchemaEntity.cs
- ConfigXmlSignificantWhitespace.cs
- CLRBindingWorker.cs
- _SSPIWrapper.cs
- GuidelineCollection.cs
- ConfigurationLockCollection.cs
- InstanceKeyView.cs
- Message.cs
- CannotUnloadAppDomainException.cs
- TextTreeRootNode.cs
- SocketInformation.cs
- RtfFormatStack.cs
- MaskDescriptors.cs
- ForceCopyBuildProvider.cs
- ListViewUpdateEventArgs.cs
- StretchValidation.cs
- TreeNodeCollection.cs
- FontCacheUtil.cs
- OperationCanceledException.cs
- SoapEnumAttribute.cs
- SingleTagSectionHandler.cs
- ServiceInstallComponent.cs
- CachingHintValidation.cs
- FormViewRow.cs
- CannotUnloadAppDomainException.cs
- SQLMembershipProvider.cs
- BitArray.cs
- CompatibleIComparer.cs
- __TransparentProxy.cs
- ToolStripPanelCell.cs
- TextTrailingCharacterEllipsis.cs
- OracleFactory.cs
- DynamicDiscoSearcher.cs
- XmlArrayItemAttributes.cs
- DynamicActivityProperty.cs
- DispatcherSynchronizationContext.cs
- NativeMethods.cs
- SurrogateEncoder.cs
- DrawItemEvent.cs
- SQLInt64.cs
- WebSysDefaultValueAttribute.cs
- SqlTrackingWorkflowInstance.cs
- StreamGeometry.cs
- ServiceDeploymentInfo.cs
- AbsoluteQuery.cs
- Property.cs
- UnSafeCharBuffer.cs
- _NestedMultipleAsyncResult.cs
- SigningProgress.cs
- _RequestCacheProtocol.cs
- DbConnectionPool.cs
- StickyNoteContentControl.cs
- FrameworkReadOnlyPropertyMetadata.cs
- BindingParameterCollection.cs
- JoinElimination.cs
- SiteMapDataSource.cs
- GridViewSortEventArgs.cs
- SourceLineInfo.cs
- FirewallWrapper.cs
- AssemblyInfo.cs
- LZCodec.cs
- HttpResponseWrapper.cs
- ClipboardData.cs
- GPRECTF.cs
- JsonSerializer.cs
- WebBrowserBase.cs
- FixedPageStructure.cs
- Translator.cs
- GetPageCompletedEventArgs.cs
- UIntPtr.cs