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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HexParser.cs
- Size3DConverter.cs
- SecurityPolicyVersion.cs
- ListParagraph.cs
- XmlSchemaSimpleContentExtension.cs
- TraceUtility.cs
- IncrementalReadDecoders.cs
- XmlMemberMapping.cs
- ColumnCollectionEditor.cs
- ByteStack.cs
- ComplusEndpointConfigContainer.cs
- ConnectivityStatus.cs
- objectquery_tresulttype.cs
- PathParser.cs
- Viewport2DVisual3D.cs
- SQLInt32.cs
- UIElementCollection.cs
- BufferedGraphicsManager.cs
- MethodBuilder.cs
- ProtocolElementCollection.cs
- PreloadedPackages.cs
- FunctionUpdateCommand.cs
- OleDragDropHandler.cs
- PersistenceProviderElement.cs
- Int32CollectionValueSerializer.cs
- HtmlInputReset.cs
- NullReferenceException.cs
- MarginCollapsingState.cs
- XmlCustomFormatter.cs
- KeyEventArgs.cs
- CellConstantDomain.cs
- XpsDocument.cs
- AnnotationResource.cs
- DataServiceEntityAttribute.cs
- WorkflowApplicationCompletedException.cs
- OracleNumber.cs
- SettingsSavedEventArgs.cs
- AppSettingsExpressionBuilder.cs
- EngineSite.cs
- IResourceProvider.cs
- RSAPKCS1SignatureDeformatter.cs
- EditorPartDesigner.cs
- ServiceHttpHandlerFactory.cs
- AndAlso.cs
- FastEncoderWindow.cs
- CheckedListBox.cs
- DeviceFilterDictionary.cs
- SevenBitStream.cs
- InvalidPrinterException.cs
- CompilationRelaxations.cs
- FontDifferentiator.cs
- ThreadSafeList.cs
- RichTextBoxDesigner.cs
- InvokePatternIdentifiers.cs
- ToolboxBitmapAttribute.cs
- VBCodeProvider.cs
- Graphics.cs
- PersonalizationProviderHelper.cs
- ErrorsHelper.cs
- ConfigXmlElement.cs
- AutoResizedEvent.cs
- OracleInternalConnection.cs
- safex509handles.cs
- ListViewItemMouseHoverEvent.cs
- MouseEvent.cs
- HitTestDrawingContextWalker.cs
- ComplusTypeValidator.cs
- BitmapFrame.cs
- WindowsTokenRoleProvider.cs
- TextStore.cs
- ViewStateModeByIdAttribute.cs
- HttpHeaderCollection.cs
- LoadedOrUnloadedOperation.cs
- DescriptionAttribute.cs
- DateTimeOffset.cs
- MobileTemplatedControlDesigner.cs
- BindableTemplateBuilder.cs
- SQLInt64Storage.cs
- CorePropertiesFilter.cs
- DesignerForm.cs
- BaseParser.cs
- ObjectQuery.cs
- ExpressionBuilderContext.cs
- DbModificationClause.cs
- SecurityTokenTypes.cs
- FlowDocument.cs
- GreenMethods.cs
- SystemResources.cs
- TextPenaltyModule.cs
- XPathParser.cs
- SchemaMerger.cs
- Filter.cs
- ConnectionManager.cs
- DataTemplateKey.cs
- ComplexPropertyEntry.cs
- LineGeometry.cs
- HScrollProperties.cs
- CodeSubDirectoriesCollection.cs
- TraceSwitch.cs
- PageVisual.cs