Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebControls / DataListItemCollection.cs / 1 / DataListItemCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web.UI.WebControls { using System; using System.Collections; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class DataListItemCollection : ICollection { private ArrayList items; ///Represents the collection of ///objects /// public DataListItemCollection(ArrayList items) { this.items = items; } ///Initializes a new instance of the ///class. /// public int Count { get { return items.Count; } } ///Gets the number of items in the collection. ////// public bool IsReadOnly { get { return false; } } ///Gets a value that specifies whether items in the ///can be modified. /// public bool IsSynchronized { get { return false; } } ///Gets a value that indicates whether the ///is thread-safe. /// public object SyncRoot { get { return this; } } ///Gets the object used to synchronize access to the collection. ////// public DataListItem this[int index] { get { return(DataListItem)items[index]; } } ///Gets a ///at the specified index in the /// collection. /// public void CopyTo(Array array, int index) { for (IEnumerator e = this.GetEnumerator(); e.MoveNext();) array.SetValue(e.Current, index++); } ///Copies the contents of the entire collection into an ///appending at /// the specified index of the . /// public IEnumerator GetEnumerator() { return items.GetEnumerator(); } } }Creates an enumerator for the ///used to iterate /// through the collection.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TreeNodeStyleCollection.cs
- VirtualPathExtension.cs
- PrinterUnitConvert.cs
- __ComObject.cs
- ClientConfigPaths.cs
- ProbeMatchesApril2005.cs
- TextEffectCollection.cs
- EventLogPermissionEntryCollection.cs
- TextEffect.cs
- RectangleGeometry.cs
- Part.cs
- Peer.cs
- LocalizableAttribute.cs
- TextCompositionEventArgs.cs
- BackgroundWorker.cs
- DataGridViewRowPostPaintEventArgs.cs
- LineMetrics.cs
- ContractComponent.cs
- SymbolDocumentInfo.cs
- MultipleViewProviderWrapper.cs
- DataDocumentXPathNavigator.cs
- ToolStripDropTargetManager.cs
- AspNetRouteServiceHttpHandler.cs
- BitmapDecoder.cs
- DataGridViewColumnStateChangedEventArgs.cs
- ReceiveActivity.cs
- LinqDataSourceStatusEventArgs.cs
- ScrollViewer.cs
- ElementNotAvailableException.cs
- DataBindingCollectionConverter.cs
- TypeSystemHelpers.cs
- XsdValidatingReader.cs
- ApplicationContext.cs
- ArraySet.cs
- XmlWriterDelegator.cs
- UnsafeNetInfoNativeMethods.cs
- PrivilegedConfigurationManager.cs
- ChildDocumentBlock.cs
- XmlArrayAttribute.cs
- LocalIdKeyIdentifierClause.cs
- PrinterUnitConvert.cs
- DragEvent.cs
- ValueChangedEventManager.cs
- RuleSettingsCollection.cs
- JsonDeserializer.cs
- DesignerAttribute.cs
- CommentEmitter.cs
- DescendantOverDescendantQuery.cs
- MethodExpr.cs
- SqlUtil.cs
- TypeSystem.cs
- LocalizationComments.cs
- MetadataException.cs
- RemoteWebConfigurationHostServer.cs
- SqlNotificationEventArgs.cs
- DataGridPagerStyle.cs
- processwaithandle.cs
- Ipv6Element.cs
- ApplicationServicesHostFactory.cs
- CreationContext.cs
- ClientProxyGenerator.cs
- MatrixAnimationBase.cs
- ComplexTypeEmitter.cs
- MergablePropertyAttribute.cs
- StrongNameMembershipCondition.cs
- Instrumentation.cs
- SqlInfoMessageEvent.cs
- StatusBarDrawItemEvent.cs
- PropertyChangeTracker.cs
- ValidationErrorCollection.cs
- ToolStripSplitButton.cs
- ObjectDataSourceView.cs
- RecognizeCompletedEventArgs.cs
- InstanceKey.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- ALinqExpressionVisitor.cs
- OracleConnectionString.cs
- ParseNumbers.cs
- HttpListenerException.cs
- Button.cs
- FixedTextView.cs
- _NestedMultipleAsyncResult.cs
- GraphicsContext.cs
- MailFileEditor.cs
- AttachedPropertyBrowsableAttribute.cs
- CompositeDataBoundControl.cs
- DisplayInformation.cs
- DataServiceContext.cs
- SvcMapFile.cs
- WebServiceData.cs
- PropertyGridEditorPart.cs
- Literal.cs
- VarRefManager.cs
- CultureInfo.cs
- FileAuthorizationModule.cs
- CustomAttributeSerializer.cs
- wmiprovider.cs
- _FtpControlStream.cs
- SessionStateContainer.cs
- QueryStringConverter.cs