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
- XmlNodeChangedEventArgs.cs
- CommandLibraryHelper.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- AvTrace.cs
- WithParamAction.cs
- WindowsIdentity.cs
- SecurityElement.cs
- WebPageTraceListener.cs
- GenericQueueSurrogate.cs
- RegexWriter.cs
- Control.cs
- AsyncSerializedWorker.cs
- SqlPersonalizationProvider.cs
- UndoManager.cs
- BamlRecords.cs
- StrokeNode.cs
- MemberPath.cs
- TextFormatter.cs
- EventDescriptorCollection.cs
- XmlHelper.cs
- SspiSecurityTokenParameters.cs
- DataFormats.cs
- RoutedEventArgs.cs
- CodeStatementCollection.cs
- ScrollChrome.cs
- ColumnTypeConverter.cs
- Document.cs
- DataGridCellsPresenter.cs
- Rotation3DAnimation.cs
- PrintingPermissionAttribute.cs
- XmlCodeExporter.cs
- DiagnosticTraceSource.cs
- datacache.cs
- ServiceContractViewControl.Designer.cs
- DataTableCollection.cs
- PopOutPanel.cs
- ToolboxItemImageConverter.cs
- TextContainerHelper.cs
- CharAnimationBase.cs
- XmlConvert.cs
- BindingListCollectionView.cs
- SerializableTypeCodeDomSerializer.cs
- ChoiceConverter.cs
- InkPresenterAutomationPeer.cs
- TextTreeNode.cs
- ReadOnlyDataSource.cs
- QueryMatcher.cs
- DataList.cs
- TTSEngineTypes.cs
- AsyncStreamReader.cs
- ViewCellSlot.cs
- ServicesUtilities.cs
- DataSourceCacheDurationConverter.cs
- UpdateManifestForBrowserApplication.cs
- SyntaxCheck.cs
- FileStream.cs
- FormViewInsertedEventArgs.cs
- XmlSchemaInferenceException.cs
- SqlRowUpdatedEvent.cs
- ParagraphResult.cs
- JapaneseLunisolarCalendar.cs
- MediaContextNotificationWindow.cs
- DirectoryNotFoundException.cs
- FactoryMaker.cs
- Operator.cs
- RuntimeHelpers.cs
- DataGridColumnCollection.cs
- CreateUserErrorEventArgs.cs
- StorageModelBuildProvider.cs
- ValidationSummary.cs
- PartialToken.cs
- TargetControlTypeCache.cs
- Queue.cs
- DependencyProperty.cs
- WebPartEditorOkVerb.cs
- SingleTagSectionHandler.cs
- EntityReference.cs
- ObjectStateManager.cs
- OledbConnectionStringbuilder.cs
- CapabilitiesUse.cs
- SafeProcessHandle.cs
- StrokeNodeOperations2.cs
- FormatException.cs
- AssociationEndMember.cs
- HttpFormatExtensions.cs
- WriteTimeStream.cs
- ToolStripDesigner.cs
- DataGridViewCellFormattingEventArgs.cs
- StringBlob.cs
- RsaSecurityTokenParameters.cs
- OperatorExpressions.cs
- WebPartsPersonalization.cs
- ValueUtilsSmi.cs
- TraceHandler.cs
- Win32MouseDevice.cs
- ConnectionOrientedTransportChannelFactory.cs
- TraceHwndHost.cs
- EntityClientCacheEntry.cs
- SineEase.cs
- TransformValueSerializer.cs