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
- MachineSettingsSection.cs
- CodeExporter.cs
- RegisteredExpandoAttribute.cs
- SystemFonts.cs
- AsnEncodedData.cs
- StringSorter.cs
- ListViewUpdateEventArgs.cs
- ProgressBar.cs
- Trace.cs
- DiscoveryVersion.cs
- EncodingInfo.cs
- LocatorManager.cs
- SystemException.cs
- EntityDataSourceWrapper.cs
- TemplateApplicationHelper.cs
- TextMessageEncoder.cs
- TemplatedMailWebEventProvider.cs
- SettingsContext.cs
- RequestQueue.cs
- IgnoreSectionHandler.cs
- SerializationHelper.cs
- InternalReceiveMessage.cs
- Rotation3D.cs
- RotateTransform.cs
- CounterSample.cs
- OracleEncoding.cs
- EditorPartChrome.cs
- UmAlQuraCalendar.cs
- EncoderParameter.cs
- Grammar.cs
- EntityDataSourceMemberPath.cs
- CounterSampleCalculator.cs
- ApplicationGesture.cs
- ConfigurationSectionGroup.cs
- GridViewPageEventArgs.cs
- OrderPreservingPipeliningMergeHelper.cs
- UnsafeNativeMethods.cs
- ImplicitInputBrush.cs
- securitycriticaldataformultiplegetandset.cs
- CLSCompliantAttribute.cs
- KeyPressEvent.cs
- PeerTransportListenAddressConverter.cs
- XmlSchemaExternal.cs
- WriteStateInfoBase.cs
- RotateTransform.cs
- CalendarDataBindingHandler.cs
- XmlSchemaAnnotation.cs
- StructuralType.cs
- TimelineGroup.cs
- TemplateBindingExpression.cs
- TreeViewAutomationPeer.cs
- ActiveXContainer.cs
- ServicePointManagerElement.cs
- XsdCachingReader.cs
- sqlnorm.cs
- PointHitTestResult.cs
- HashAlgorithm.cs
- WebPartTransformerAttribute.cs
- Timeline.cs
- NotImplementedException.cs
- Token.cs
- sqlser.cs
- QuadraticBezierSegment.cs
- TypeConverterAttribute.cs
- FtpCachePolicyElement.cs
- TableCellCollection.cs
- UserControlParser.cs
- Context.cs
- MetaTable.cs
- CollectionMarkupSerializer.cs
- XPathSingletonIterator.cs
- LabelTarget.cs
- DataObjectEventArgs.cs
- StringInfo.cs
- GeometryDrawing.cs
- ProfilePropertySettingsCollection.cs
- PixelShader.cs
- InstalledFontCollection.cs
- UnitySerializationHolder.cs
- DoubleUtil.cs
- ShutDownListener.cs
- XappLauncher.cs
- ArraySubsetEnumerator.cs
- ReceiveParametersContent.cs
- DataTable.cs
- DirectoryNotFoundException.cs
- DataDocumentXPathNavigator.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- DefaultParameterValueAttribute.cs
- RepeaterItemCollection.cs
- NamedPipeConnectionPoolSettingsElement.cs
- MailFileEditor.cs
- CreateUserWizardStep.cs
- IPipelineRuntime.cs
- ThreadExceptionEvent.cs
- InstancePersistenceException.cs
- SmtpNtlmAuthenticationModule.cs
- Brush.cs
- WebHttpSecurity.cs
- ListViewUpdateEventArgs.cs