Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / DataListItemCollection.cs / 1305376 / DataListItemCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web.UI.WebControls { using System; using System.Collections; ////// 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.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
- ParallelLoopState.cs
- CqlBlock.cs
- ResponseBodyWriter.cs
- Asn1IntegerConverter.cs
- DesignerLinkAdapter.cs
- PreloadedPackages.cs
- RegistryKey.cs
- BindingContext.cs
- PermissionSetEnumerator.cs
- DataGridView.cs
- AffineTransform3D.cs
- Comparer.cs
- TraceHwndHost.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ToolStripPanelRow.cs
- BrowserDefinition.cs
- CodeDOMUtility.cs
- ToolStripDesignerUtils.cs
- TreePrinter.cs
- AdRotator.cs
- _StreamFramer.cs
- ReplyChannelBinder.cs
- ObjectDataSourceFilteringEventArgs.cs
- ConnectionStringsExpressionBuilder.cs
- AttributeEmitter.cs
- SeverityFilter.cs
- CustomError.cs
- BrowserCapabilitiesCompiler.cs
- VariableExpressionConverter.cs
- DetailsViewInsertEventArgs.cs
- ListViewUpdatedEventArgs.cs
- DataStreamFromComStream.cs
- MessageSmuggler.cs
- StrokeNodeOperations.cs
- InputScopeManager.cs
- DataGridViewButtonCell.cs
- GPRECT.cs
- ClientBuildManagerCallback.cs
- GradientStop.cs
- LookupBindingPropertiesAttribute.cs
- ListViewItem.cs
- DataSetFieldSchema.cs
- NullableIntSumAggregationOperator.cs
- WebBrowserUriTypeConverter.cs
- EntityDataSource.cs
- MetadataArtifactLoader.cs
- GeometryValueSerializer.cs
- ListViewGroupItemCollection.cs
- _NegoStream.cs
- XsltArgumentList.cs
- InvokeMemberBinder.cs
- HotSpot.cs
- Int32RectValueSerializer.cs
- XmlSerializerFactory.cs
- XPathCompileException.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- MethodToken.cs
- TimeStampChecker.cs
- Int16Animation.cs
- ExtenderProvidedPropertyAttribute.cs
- X509ServiceCertificateAuthenticationElement.cs
- TextWriterTraceListener.cs
- DbDeleteCommandTree.cs
- MetafileHeaderWmf.cs
- UInt32.cs
- PrincipalPermission.cs
- Decoder.cs
- ProcessThread.cs
- COSERVERINFO.cs
- XmlAttributeCollection.cs
- BufferedStream.cs
- nulltextcontainer.cs
- NotifyParentPropertyAttribute.cs
- LongTypeConverter.cs
- AsyncOperation.cs
- TextEditorParagraphs.cs
- SoapFault.cs
- QualifiedId.cs
- TileModeValidation.cs
- WindowExtensionMethods.cs
- DataGridViewColumnHeaderCell.cs
- User.cs
- RevocationPoint.cs
- BackgroundFormatInfo.cs
- StructuralCache.cs
- InstallerTypeAttribute.cs
- CompModSwitches.cs
- ToolboxBitmapAttribute.cs
- CodeExporter.cs
- objectresult_tresulttype.cs
- HyperlinkAutomationPeer.cs
- EmptyEnumerator.cs
- dbenumerator.cs
- IxmlLineInfo.cs
- WebPartVerb.cs
- JpegBitmapDecoder.cs
- OrthographicCamera.cs
- ExclusiveTcpTransportManager.cs
- XmlSchemaExporter.cs
- WebPartDisplayModeEventArgs.cs