Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / 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. //------------------------------------------------------------------------------ //// 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
- InfoCardArgumentException.cs
- serverconfig.cs
- XNodeValidator.cs
- _NtlmClient.cs
- XmlEntity.cs
- CqlIdentifiers.cs
- NotifyParentPropertyAttribute.cs
- RectangleGeometry.cs
- ActivityIdHeader.cs
- Thumb.cs
- DataGridViewCellConverter.cs
- XamlVector3DCollectionSerializer.cs
- Animatable.cs
- ImageDrawing.cs
- EntitySqlException.cs
- DtrList.cs
- DbExpressionVisitor_TResultType.cs
- DocumentPageTextView.cs
- Activator.cs
- X509SecurityTokenAuthenticator.cs
- HttpSessionStateWrapper.cs
- RuntimeHandles.cs
- MemberMaps.cs
- StateManagedCollection.cs
- GridViewColumnCollection.cs
- FileDialog_Vista.cs
- FloaterBaseParaClient.cs
- ContentTextAutomationPeer.cs
- PropertyKey.cs
- GridViewRowCollection.cs
- SendingRequestEventArgs.cs
- SiteMapNode.cs
- MenuCommand.cs
- Evidence.cs
- SqlClientFactory.cs
- ToggleProviderWrapper.cs
- ErrorWebPart.cs
- RuleSetReference.cs
- StickyNoteAnnotations.cs
- StructuredProperty.cs
- SimpleApplicationHost.cs
- SystemGatewayIPAddressInformation.cs
- CodeMemberField.cs
- Control.cs
- OverflowException.cs
- ConfigurationPermission.cs
- CodeArgumentReferenceExpression.cs
- OptimalTextSource.cs
- SpellerStatusTable.cs
- RepeatBehaviorConverter.cs
- SqlErrorCollection.cs
- MailDefinition.cs
- SectionVisual.cs
- SafePEFileHandle.cs
- DesignerHierarchicalDataSourceView.cs
- XmlDigitalSignatureProcessor.cs
- MSHTMLHostUtil.cs
- CompilerLocalReference.cs
- DataServices.cs
- RtfToXamlLexer.cs
- ViewStateModeByIdAttribute.cs
- XmlSerializationWriter.cs
- Highlights.cs
- PersistChildrenAttribute.cs
- MaskedTextBoxTextEditor.cs
- Stream.cs
- DataGridViewCellValidatingEventArgs.cs
- PerformanceCounter.cs
- InvalidWorkflowException.cs
- QilLiteral.cs
- SymDocumentType.cs
- CardSpaceSelector.cs
- TextElementEnumerator.cs
- ActiveXSite.cs
- SettingsSavedEventArgs.cs
- SHA384Managed.cs
- _ListenerRequestStream.cs
- AssemblyFilter.cs
- IsolatedStorageSecurityState.cs
- PngBitmapEncoder.cs
- OrthographicCamera.cs
- UrlPath.cs
- Pen.cs
- ExpressionCopier.cs
- SafeThemeHandle.cs
- BasicBrowserDialog.designer.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- DataServiceHost.cs
- TrimSurroundingWhitespaceAttribute.cs
- DesignerCommandAdapter.cs
- ToolStripKeyboardHandlingService.cs
- ToolStripGripRenderEventArgs.cs
- PkcsUtils.cs
- WebEventCodes.cs
- ObjectHandle.cs
- SecureStringHasher.cs
- PasswordBox.cs
- X509Certificate2Collection.cs
- FileDialogCustomPlaces.cs
- PortCache.cs