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
- AttributeEmitter.cs
- PropertyIDSet.cs
- ProfilePropertyMetadata.cs
- GenericRootAutomationPeer.cs
- XmlSerializerVersionAttribute.cs
- ValueType.cs
- EventWaitHandleSecurity.cs
- WebServiceTypeData.cs
- DataFieldConverter.cs
- PropertyGroupDescription.cs
- KeyboardNavigation.cs
- SystemInfo.cs
- SqlXmlStorage.cs
- List.cs
- RepeaterItem.cs
- DataObjectCopyingEventArgs.cs
- DynamicRendererThreadManager.cs
- ControlIdConverter.cs
- xsdvalidator.cs
- WebPartZoneAutoFormat.cs
- columnmapkeybuilder.cs
- CacheModeConverter.cs
- DataGridSortCommandEventArgs.cs
- EncoderReplacementFallback.cs
- UpdateTracker.cs
- HttpApplicationStateWrapper.cs
- ExpressionBuilder.cs
- AttachmentService.cs
- PropertyGridEditorPart.cs
- VirtualPathProvider.cs
- WebPartConnectionsEventArgs.cs
- UpDownEvent.cs
- SharedStream.cs
- ObjectDisposedException.cs
- ParallelTimeline.cs
- ResizeBehavior.cs
- ProviderUtil.cs
- ServiceSecurityAuditBehavior.cs
- ImageFormat.cs
- StatusBarPanel.cs
- ThemeDirectoryCompiler.cs
- SiteMap.cs
- CrossAppDomainChannel.cs
- EntityContainerEntitySet.cs
- ColumnMap.cs
- DocumentPaginator.cs
- XmlSchemaAttributeGroupRef.cs
- _TimerThread.cs
- UniqueContractNameValidationBehavior.cs
- MatrixValueSerializer.cs
- RelationshipConstraintValidator.cs
- DesignerAttributeInfo.cs
- AuthenticationModuleElementCollection.cs
- Gdiplus.cs
- RegionIterator.cs
- SqlDataSourceCommandEventArgs.cs
- DesignerOptionService.cs
- ChooseAction.cs
- DataTableClearEvent.cs
- QuaternionAnimationBase.cs
- SqlDataAdapter.cs
- SqlClientPermission.cs
- TextRunCache.cs
- SQLDateTimeStorage.cs
- MissingMemberException.cs
- TimeSpan.cs
- XmlSignatureProperties.cs
- PersonalizationStateInfo.cs
- GeneratedContractType.cs
- TextElementEnumerator.cs
- XLinq.cs
- StorageEndPropertyMapping.cs
- WebPartConnectionsConnectVerb.cs
- DocumentSequenceHighlightLayer.cs
- XmlnsDictionary.cs
- entitydatasourceentitysetnameconverter.cs
- x509store.cs
- OrderByLifter.cs
- Processor.cs
- SingleAnimationBase.cs
- CachedTypeface.cs
- Win32SafeHandles.cs
- Avt.cs
- DetailsViewPagerRow.cs
- CategoryNameCollection.cs
- HMACSHA512.cs
- CalendarDataBindingHandler.cs
- IntSecurity.cs
- RowParagraph.cs
- WindowsStreamSecurityBindingElement.cs
- DrawingContext.cs
- TextElementEnumerator.cs
- XmlWhitespace.cs
- ByteRangeDownloader.cs
- dsa.cs
- ParallelEnumerable.cs
- ObfuscationAttribute.cs
- VScrollBar.cs
- ComponentResourceKey.cs
- IndexOutOfRangeException.cs