Code:
/ DotNET / DotNET / 8.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
- SqlDataSourceSelectingEventArgs.cs
- ClientData.cs
- GPPOINTF.cs
- DataServices.cs
- TabletDeviceInfo.cs
- RectangleGeometry.cs
- sqlnorm.cs
- GridViewEditEventArgs.cs
- GrammarBuilderDictation.cs
- ServiceOperation.cs
- PagedControl.cs
- MultiView.cs
- DbDataSourceEnumerator.cs
- ZipIOLocalFileDataDescriptor.cs
- XmlSchemaInferenceException.cs
- PrinterSettings.cs
- HandlerBase.cs
- MailDefinition.cs
- PolicyManager.cs
- FaultDescriptionCollection.cs
- ListViewSortEventArgs.cs
- SiteOfOriginContainer.cs
- PermissionSetEnumerator.cs
- HttpListenerResponse.cs
- ConfigurationSchemaErrors.cs
- Scene3D.cs
- Rectangle.cs
- WhitespaceSignificantCollectionAttribute.cs
- Error.cs
- ToolStripItem.cs
- Page.cs
- FontFamilyIdentifier.cs
- EventProxy.cs
- EventBuilder.cs
- CodeNamespaceImport.cs
- UIPropertyMetadata.cs
- LinqDataSourceUpdateEventArgs.cs
- ButtonChrome.cs
- MenuItemBinding.cs
- AssemblyAssociatedContentFileAttribute.cs
- TextDecorations.cs
- ObjectIDGenerator.cs
- SessionPageStatePersister.cs
- DataGridViewCell.cs
- CustomError.cs
- Gdiplus.cs
- GuidConverter.cs
- BitmapEffect.cs
- DataGridViewImageColumn.cs
- FieldBuilder.cs
- Gdiplus.cs
- ActiveDocumentEvent.cs
- EnumerableCollectionView.cs
- DesignParameter.cs
- VirtualizedItemProviderWrapper.cs
- BasicKeyConstraint.cs
- ApplicationFileCodeDomTreeGenerator.cs
- WinEventQueueItem.cs
- MarshalByRefObject.cs
- MissingManifestResourceException.cs
- PageWrapper.cs
- ToolStripDropDownClosingEventArgs.cs
- ElementUtil.cs
- GridViewRowPresenterBase.cs
- DomainUpDown.cs
- TogglePattern.cs
- AbstractExpressions.cs
- IssuedTokenParametersEndpointAddressElement.cs
- MappingSource.cs
- ConstructorNeedsTagAttribute.cs
- Schema.cs
- GroupItem.cs
- WorkerRequest.cs
- RelationshipEndMember.cs
- BitmapEffect.cs
- CodeConstructor.cs
- TypeEnumerableViewSchema.cs
- OpenTypeLayoutCache.cs
- XPathNode.cs
- AnnotationAuthorChangedEventArgs.cs
- AnimationLayer.cs
- SettingsPropertyValue.cs
- TrackingProfileDeserializationException.cs
- DispatcherExceptionEventArgs.cs
- Soap.cs
- PageClientProxyGenerator.cs
- DataFormats.cs
- RewritingSimplifier.cs
- SystemIcmpV4Statistics.cs
- AddInToken.cs
- InputReportEventArgs.cs
- TemplateBindingExtensionConverter.cs
- EventWaitHandleSecurity.cs
- SignatureToken.cs
- MarkupCompilePass2.cs
- TrackingLocationCollection.cs
- FormViewDeleteEventArgs.cs
- TextTreeDeleteContentUndoUnit.cs
- ValidationSummaryDesigner.cs
- DataObjectEventArgs.cs