Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AuthenticationException.cs
- FileDetails.cs
- LinqDataSourceContextEventArgs.cs
- WebEventCodes.cs
- CompModHelpers.cs
- ValueType.cs
- CellConstantDomain.cs
- linebase.cs
- ProcessThreadCollection.cs
- ExpressionNode.cs
- XamlWriter.cs
- OleDbMetaDataFactory.cs
- InternalConfigSettingsFactory.cs
- HtmlTitle.cs
- ImageBrush.cs
- Version.cs
- ReaderOutput.cs
- CommandLibraryHelper.cs
- EdmPropertyAttribute.cs
- IndentedWriter.cs
- TransactionManager.cs
- BaseCollection.cs
- XmlSerializableWriter.cs
- AnnotationHelper.cs
- AddInStore.cs
- SpinLock.cs
- TaiwanLunisolarCalendar.cs
- SafeProcessHandle.cs
- WebBrowserPermission.cs
- X500Name.cs
- WebPartRestoreVerb.cs
- UntrustedRecipientException.cs
- ValidatedControlConverter.cs
- Encoder.cs
- HttpProfileGroupBase.cs
- KoreanCalendar.cs
- WebColorConverter.cs
- SmiRecordBuffer.cs
- SQLBinary.cs
- AssemblyNameProxy.cs
- SendingRequestEventArgs.cs
- SelectionEditor.cs
- SafeLibraryHandle.cs
- ObjectPropertyMapping.cs
- Queue.cs
- PageThemeParser.cs
- columnmapfactory.cs
- RadioButton.cs
- SafeWaitHandle.cs
- validation.cs
- HtmlControlPersistable.cs
- DataServiceEntityAttribute.cs
- BaseProcessProtocolHandler.cs
- GenericWebPart.cs
- FaultContext.cs
- RuleProcessor.cs
- QilInvokeEarlyBound.cs
- HtmlProps.cs
- AppDomainFactory.cs
- XPathAxisIterator.cs
- ChangeProcessor.cs
- BamlCollectionHolder.cs
- OperationDescriptionCollection.cs
- AudioSignalProblemOccurredEventArgs.cs
- CodeParameterDeclarationExpression.cs
- FormViewDeleteEventArgs.cs
- RequestCachePolicy.cs
- MemberJoinTreeNode.cs
- Claim.cs
- XmlElementCollection.cs
- ReachPageContentCollectionSerializerAsync.cs
- ValuePattern.cs
- ExpressionContext.cs
- ContainerUIElement3D.cs
- baseshape.cs
- Oid.cs
- DataGridCellAutomationPeer.cs
- QilXmlReader.cs
- Int64Converter.cs
- QueryCacheKey.cs
- ColorDialog.cs
- SqlClientWrapperSmiStream.cs
- shaperfactoryquerycachekey.cs
- ActivationProxy.cs
- QueryComponents.cs
- Geometry.cs
- SelfIssuedAuthProofToken.cs
- WebPartDisplayModeCancelEventArgs.cs
- Point4D.cs
- StateDesigner.TransitionInfo.cs
- AssemblyEvidenceFactory.cs
- UserControlCodeDomTreeGenerator.cs
- WebPartConnectionsConnectVerb.cs
- CustomValidator.cs
- WorkflowServiceAttributes.cs
- DbConnectionPool.cs
- RevocationPoint.cs
- PeerOutputChannel.cs
- FilterInvalidBodyAccessException.cs
- ContentElementAutomationPeer.cs