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
- Bold.cs
- XmlAnyAttributeAttribute.cs
- ServiceProviders.cs
- BamlResourceDeserializer.cs
- XmlAttributeCache.cs
- SafeCoTaskMem.cs
- FormView.cs
- PropertySegmentSerializationProvider.cs
- precedingquery.cs
- Message.cs
- DocumentOrderComparer.cs
- PasswordBox.cs
- BackgroundWorker.cs
- SchemaCollectionCompiler.cs
- InstanceData.cs
- XPathChildIterator.cs
- HttpRuntimeSection.cs
- TransformerInfoCollection.cs
- FixedSOMPageElement.cs
- DataListItemEventArgs.cs
- ProtocolsConfigurationHandler.cs
- SafeNativeMethods.cs
- EntityDataSourceDataSelection.cs
- ToolStripPanelRow.cs
- EFColumnProvider.cs
- DocumentPageHost.cs
- EndpointDispatcherTable.cs
- InternalSafeNativeMethods.cs
- ManagementBaseObject.cs
- dataobject.cs
- MatrixTransform3D.cs
- HttpClientCertificate.cs
- InstanceOwnerQueryResult.cs
- DataGridRow.cs
- HttpContextWrapper.cs
- WebRequestModulesSection.cs
- Quad.cs
- XamlWrappingReader.cs
- MetadataArtifactLoaderCompositeResource.cs
- TdsParser.cs
- SpoolingTask.cs
- GradientStopCollection.cs
- Control.cs
- ServerValidateEventArgs.cs
- XmlTextWriter.cs
- WhitespaceRuleLookup.cs
- HashCryptoHandle.cs
- ProtocolElement.cs
- PointHitTestResult.cs
- TextTreeInsertUndoUnit.cs
- TextViewSelectionProcessor.cs
- UnionCqlBlock.cs
- MergeFailedEvent.cs
- SmtpMail.cs
- AssociationTypeEmitter.cs
- WebPartZoneBase.cs
- DataGridViewDataConnection.cs
- TabControl.cs
- Renderer.cs
- ListView.cs
- JpegBitmapEncoder.cs
- AsymmetricSignatureDeformatter.cs
- SystemWebCachingSectionGroup.cs
- QuaternionValueSerializer.cs
- Region.cs
- CompareValidator.cs
- HtmlSelect.cs
- EntityDataSourceContextCreatedEventArgs.cs
- Transform.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- ApplicationFileParser.cs
- FastEncoderWindow.cs
- InertiaExpansionBehavior.cs
- PresentationSource.cs
- SelectionManager.cs
- DebugHandleTracker.cs
- Char.cs
- ItemCheckedEvent.cs
- Transaction.cs
- DataSetMappper.cs
- AffineTransform3D.cs
- MDIWindowDialog.cs
- BuildProvidersCompiler.cs
- BCLDebug.cs
- DoubleIndependentAnimationStorage.cs
- SqlConnectionPoolGroupProviderInfo.cs
- WorkerProcess.cs
- SqlBuilder.cs
- SuppressMessageAttribute.cs
- DataMisalignedException.cs
- ThemeableAttribute.cs
- Decoder.cs
- CatalogPart.cs
- Menu.cs
- TableLayoutRowStyleCollection.cs
- TextElementEnumerator.cs
- FormattedTextSymbols.cs
- XmlSerializerFactory.cs
- EdmType.cs
- CodeSubDirectory.cs