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
- _CookieModule.cs
- GACIdentityPermission.cs
- CodeBlockBuilder.cs
- EllipticalNodeOperations.cs
- ListViewCancelEventArgs.cs
- DoubleAnimationUsingPath.cs
- StringUtil.cs
- ModulesEntry.cs
- httpapplicationstate.cs
- TransformConverter.cs
- FlowDocumentReaderAutomationPeer.cs
- SimpleRecyclingCache.cs
- DeferredTextReference.cs
- HttpResponseInternalWrapper.cs
- DeferredSelectedIndexReference.cs
- WinFormsUtils.cs
- ParagraphResult.cs
- DbConnectionClosed.cs
- BinHexEncoder.cs
- QilName.cs
- Size3DValueSerializer.cs
- ToolStripItemRenderEventArgs.cs
- CorrelationResolver.cs
- FixedSOMLineCollection.cs
- UIAgentCrashedException.cs
- DnsPermission.cs
- XamlToRtfWriter.cs
- DbParameterCollectionHelper.cs
- StringAnimationBase.cs
- SecurityKeyUsage.cs
- NameValueSectionHandler.cs
- ViewStateChangedEventArgs.cs
- WebSysDescriptionAttribute.cs
- SeekableReadStream.cs
- RequestCacheValidator.cs
- IndexedSelectQueryOperator.cs
- PlatformNotSupportedException.cs
- EntitySqlQueryState.cs
- DbUpdateCommandTree.cs
- VectorCollectionConverter.cs
- ClientProxyGenerator.cs
- DnsPermission.cs
- ProfileGroupSettingsCollection.cs
- SqlPersonalizationProvider.cs
- StackOverflowException.cs
- TextModifierScope.cs
- RtfToken.cs
- GetTokenRequest.cs
- UserControl.cs
- DetailsViewCommandEventArgs.cs
- OrderedHashRepartitionEnumerator.cs
- CodeNamespaceCollection.cs
- SchemaElementLookUpTable.cs
- SqlTriggerAttribute.cs
- SerializationTrace.cs
- HostProtectionPermission.cs
- SimpleHandlerFactory.cs
- WebPartExportVerb.cs
- LayoutEditorPart.cs
- GZipDecoder.cs
- FrameworkElementFactoryMarkupObject.cs
- TreeWalkHelper.cs
- ResourceSet.cs
- LongTypeConverter.cs
- Stream.cs
- BufferModesCollection.cs
- WebPartTransformerAttribute.cs
- loginstatus.cs
- NativeMethods.cs
- TemplateComponentConnector.cs
- XmlDataLoader.cs
- OSEnvironmentHelper.cs
- XmlSchemaExternal.cs
- MiniModule.cs
- Monitor.cs
- KoreanCalendar.cs
- DateTimePickerDesigner.cs
- XmlSchemaInclude.cs
- TreeNodeEventArgs.cs
- AggregatePushdown.cs
- iisPickupDirectory.cs
- Border.cs
- HttpCapabilitiesBase.cs
- EarlyBoundInfo.cs
- OracleInfoMessageEventArgs.cs
- StringAnimationUsingKeyFrames.cs
- Permission.cs
- ContextMenuStripGroup.cs
- FixedTextPointer.cs
- FileDialog_Vista_Interop.cs
- ResXDataNode.cs
- SamlDelegatingWriter.cs
- ServiceNameElementCollection.cs
- ApplicationId.cs
- LineServicesRun.cs
- TrackingParticipant.cs
- SafeFileMappingHandle.cs
- PointAnimationUsingKeyFrames.cs
- MD5.cs
- DES.cs