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
- MultiPageTextView.cs
- Variant.cs
- DiscreteKeyFrames.cs
- BitmapImage.cs
- InputScope.cs
- GenericsInstances.cs
- WebPartCollection.cs
- MimeXmlImporter.cs
- uribuilder.cs
- ProfileModule.cs
- XmlIgnoreAttribute.cs
- Emitter.cs
- XPathAncestorQuery.cs
- DataGridViewDataConnection.cs
- AsymmetricSignatureDeformatter.cs
- DateTimeConverter2.cs
- FileReader.cs
- TimelineGroup.cs
- XPSSignatureDefinition.cs
- ArcSegment.cs
- InvalidFilterCriteriaException.cs
- XmlSignatureProperties.cs
- Vector3DCollectionConverter.cs
- EditingCoordinator.cs
- ButtonChrome.cs
- PointAnimationUsingPath.cs
- ReadOnlyDataSource.cs
- OptimalTextSource.cs
- NavigationProperty.cs
- DataGridViewColumnStateChangedEventArgs.cs
- SecurityVerifiedMessage.cs
- ManagementPath.cs
- PowerStatus.cs
- _Rfc2616CacheValidators.cs
- ServiceNameElementCollection.cs
- IdentityModelStringsVersion1.cs
- SpellCheck.cs
- codemethodreferenceexpression.cs
- BaseCollection.cs
- _ServiceNameStore.cs
- RenderingEventArgs.cs
- PreparingEnlistment.cs
- BaseContextMenu.cs
- GridViewPageEventArgs.cs
- EntitySqlException.cs
- WebSysDisplayNameAttribute.cs
- DataGridViewImageColumn.cs
- BamlMapTable.cs
- DesignerUtility.cs
- ScriptResourceDefinition.cs
- LeaseManager.cs
- SapiAttributeParser.cs
- DbConnectionStringCommon.cs
- FileDialogCustomPlacesCollection.cs
- ControlValuePropertyAttribute.cs
- SoapHelper.cs
- SqlTopReducer.cs
- ResourceProviderFactory.cs
- AutomationPeer.cs
- UnaryExpression.cs
- XmlSerializerOperationBehavior.cs
- GridView.cs
- OperationPerformanceCounters.cs
- AnnotationStore.cs
- WindowsRegion.cs
- TextParaClient.cs
- DateTimeFormatInfoScanner.cs
- CodeDOMUtility.cs
- BamlStream.cs
- ReversePositionQuery.cs
- ToolStripSeparator.cs
- PartialClassGenerationTask.cs
- XamlToRtfWriter.cs
- ByteViewer.cs
- PointAnimationUsingPath.cs
- Descriptor.cs
- DataBoundLiteralControl.cs
- ApplicationFileCodeDomTreeGenerator.cs
- SBCSCodePageEncoding.cs
- DataRecordInfo.cs
- XPathSingletonIterator.cs
- WhitespaceRuleReader.cs
- TraversalRequest.cs
- Int16Converter.cs
- CustomAssemblyResolver.cs
- EntityViewContainer.cs
- PointCollectionConverter.cs
- LoginView.cs
- ConstrainedDataObject.cs
- CellIdBoolean.cs
- CustomGrammar.cs
- SafeCertificateContext.cs
- NavigateEvent.cs
- ErrorEventArgs.cs
- EncoderExceptionFallback.cs
- EndpointDispatcher.cs
- EntityModelSchemaGenerator.cs
- listitem.cs
- DataServiceQueryOfT.cs
- WebPartsPersonalizationAuthorization.cs