Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebParts / ConnectionInterfaceCollection.cs / 1 / ConnectionInterfaceCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.Collections; using System.ComponentModel; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FilterEventArgs.cs
- PropertyItemInternal.cs
- Debug.cs
- ItemsControlAutomationPeer.cs
- ArrayExtension.cs
- XhtmlBasicSelectionListAdapter.cs
- ToolStripDropDownClosingEventArgs.cs
- ForAllOperator.cs
- Stylesheet.cs
- PtsHelper.cs
- CqlGenerator.cs
- ObjectCloneHelper.cs
- BaseInfoTable.cs
- PersistChildrenAttribute.cs
- AlphaSortedEnumConverter.cs
- XmlLoader.cs
- ToolboxItemAttribute.cs
- DescendantOverDescendantQuery.cs
- ClientFormsAuthenticationCredentials.cs
- AutomationElementIdentifiers.cs
- FunctionGenerator.cs
- MatrixTransform3D.cs
- cryptoapiTransform.cs
- RegistrationServices.cs
- InstanceDataCollection.cs
- ScalarConstant.cs
- MouseButtonEventArgs.cs
- WebBrowserNavigatedEventHandler.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- Effect.cs
- TextServicesCompartment.cs
- RbTree.cs
- StateMachine.cs
- Serializer.cs
- SqlFlattener.cs
- Decoder.cs
- CodeRemoveEventStatement.cs
- TimeSpanConverter.cs
- _ListenerResponseStream.cs
- AsyncPostBackErrorEventArgs.cs
- XPathNodeHelper.cs
- ChineseLunisolarCalendar.cs
- PropertyMetadata.cs
- DictionaryEntry.cs
- ContainerParagraph.cs
- TableCell.cs
- MethodRental.cs
- ListBoxAutomationPeer.cs
- ZoomPercentageConverter.cs
- Baml6ConstructorInfo.cs
- TextViewElement.cs
- SHA1Managed.cs
- SqlEnums.cs
- DetailsViewActionList.cs
- EventItfInfo.cs
- SqlCharStream.cs
- UrlPath.cs
- AnnotationStore.cs
- ZipIOLocalFileBlock.cs
- Funcletizer.cs
- UnmanagedMarshal.cs
- WebPartVerbsEventArgs.cs
- KnownIds.cs
- SystemIPAddressInformation.cs
- Point.cs
- SpanIndex.cs
- BoolLiteral.cs
- SystemInfo.cs
- SubclassTypeValidatorAttribute.cs
- baseshape.cs
- TypographyProperties.cs
- ToolTip.cs
- HostingEnvironmentSection.cs
- TableLayoutColumnStyleCollection.cs
- IndexedWhereQueryOperator.cs
- DiscardableAttribute.cs
- SecurityChannelListener.cs
- AssemblySettingAttributes.cs
- NoPersistProperty.cs
- SizeConverter.cs
- BindingCompleteEventArgs.cs
- NativeCompoundFileAPIs.cs
- WorkflowMarkupSerializationException.cs
- SchemaElementLookUpTable.cs
- CancellationTokenSource.cs
- BitmapEffectInput.cs
- Blend.cs
- Transactions.cs
- DefaultPropertyAttribute.cs
- CodeCommentStatement.cs
- AssertFilter.cs
- TcpSocketManager.cs
- EntityViewGenerationAttribute.cs
- DetailsView.cs
- SignatureToken.cs
- XmlSignificantWhitespace.cs
- WebBrowserPermission.cs
- SemanticResultKey.cs
- ISFTagAndGuidCache.cs
- SqlBuffer.cs