Code:
/ FX-1434 / FX-1434 / 1.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
- GB18030Encoding.cs
- IConvertible.cs
- UpdateExpressionVisitor.cs
- InvalidWMPVersionException.cs
- SqlParameter.cs
- ContentFilePart.cs
- TabControlAutomationPeer.cs
- TabControl.cs
- TextViewBase.cs
- WebPartTransformerCollection.cs
- Mutex.cs
- PageParser.cs
- HtmlButton.cs
- BitmapCache.cs
- BindingsSection.cs
- ObjectReaderCompiler.cs
- ClientTarget.cs
- NullReferenceException.cs
- DynamicPropertyReader.cs
- ServiceNotStartedException.cs
- Command.cs
- ZipIOCentralDirectoryFileHeader.cs
- FontFamilyConverter.cs
- ControlBuilderAttribute.cs
- XmlSiteMapProvider.cs
- DeriveBytes.cs
- DataControlLinkButton.cs
- XmlBoundElement.cs
- ServiceMoniker.cs
- OdbcException.cs
- RenderCapability.cs
- TextServicesCompartment.cs
- VScrollProperties.cs
- StringComparer.cs
- ClientSession.cs
- DataGridViewRow.cs
- ExpressionBindingCollection.cs
- HttpApplication.cs
- AspNetRouteServiceHttpHandler.cs
- MouseOverProperty.cs
- RequestQueryParser.cs
- DefaultPrintController.cs
- AttachedPropertyBrowsableAttribute.cs
- Dynamic.cs
- QilStrConcat.cs
- ParameterBuilder.cs
- PropertyDescriptorCollection.cs
- InternalDispatchObject.cs
- ButtonField.cs
- MultipleFilterMatchesException.cs
- ExpressionHelper.cs
- TemplateControlParser.cs
- TableRowCollection.cs
- FormClosedEvent.cs
- ThrowHelper.cs
- XmlAttribute.cs
- VectorValueSerializer.cs
- CodeExpressionRuleDeclaration.cs
- EpmContentDeSerializerBase.cs
- TextMarkerSource.cs
- SiteOfOriginContainer.cs
- FontStyle.cs
- ObjectAnimationBase.cs
- CssTextWriter.cs
- Command.cs
- WmlLabelAdapter.cs
- CallbackValidatorAttribute.cs
- SharedDp.cs
- RequestTimeoutManager.cs
- DataSetMappper.cs
- FaultImportOptions.cs
- TdsParser.cs
- PageWrapper.cs
- ServiceBusyException.cs
- OdbcException.cs
- XmlSchemaDatatype.cs
- dsa.cs
- MissingSatelliteAssemblyException.cs
- XmlCharCheckingWriter.cs
- SHA1.cs
- SessionStateSection.cs
- smtpconnection.cs
- CategoryNameCollection.cs
- CompositeDataBoundControl.cs
- CornerRadiusConverter.cs
- Vector.cs
- DoubleCollectionConverter.cs
- RowToParametersTransformer.cs
- CompilationLock.cs
- TraceHandlerErrorFormatter.cs
- TiffBitmapEncoder.cs
- MissingMethodException.cs
- EventEntry.cs
- ThreadInterruptedException.cs
- TextEditorSpelling.cs
- ProcessHostMapPath.cs
- SafeCertificateContext.cs
- MD5CryptoServiceProvider.cs
- WorkflowQueueInfo.cs
- HttpFileCollection.cs