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
- EventWaitHandleSecurity.cs
- DnsEndpointIdentity.cs
- ProxySimple.cs
- ModelVisual3D.cs
- OutputCacheProfile.cs
- TableProviderWrapper.cs
- ContractAdapter.cs
- BitmapVisualManager.cs
- TypeInfo.cs
- PickBranchDesigner.xaml.cs
- TargetConverter.cs
- BaseParaClient.cs
- JsonFormatReaderGenerator.cs
- InputScopeConverter.cs
- AnnotationResourceChangedEventArgs.cs
- DataGridLinkButton.cs
- MessageBox.cs
- ClockController.cs
- TableRow.cs
- Dynamic.cs
- CodeTypeDelegate.cs
- InputMethod.cs
- ModelPropertyImpl.cs
- ProfileGroupSettings.cs
- MatchingStyle.cs
- EmptyStringExpandableObjectConverter.cs
- ConstructorBuilder.cs
- DictionaryCustomTypeDescriptor.cs
- FillRuleValidation.cs
- AuthorizationSection.cs
- TrustLevel.cs
- CryptoConfig.cs
- WindowsEditBoxRange.cs
- CompilerLocalReference.cs
- EntityDataSourceEntitySetNameItem.cs
- WebPartExportVerb.cs
- Translator.cs
- DispatcherExceptionEventArgs.cs
- EntityDataSourceStatementEditorForm.cs
- HMACMD5.cs
- FlowDocumentPage.cs
- ResourceReader.cs
- PnrpPeerResolverElement.cs
- LoginView.cs
- ProcessHostConfigUtils.cs
- HttpListenerPrefixCollection.cs
- TextRunCache.cs
- XmlNavigatorStack.cs
- WebSysDefaultValueAttribute.cs
- ChannelCacheDefaults.cs
- LocatorBase.cs
- HitTestWithPointDrawingContextWalker.cs
- ObjectDataSource.cs
- XPathNavigatorException.cs
- ResourcePermissionBase.cs
- XpsS0ValidatingLoader.cs
- XmlSchemaChoice.cs
- Figure.cs
- StyleModeStack.cs
- DbProviderFactoriesConfigurationHandler.cs
- PrivilegedConfigurationManager.cs
- ErrorTableItemStyle.cs
- Cursors.cs
- UnsafeNetInfoNativeMethods.cs
- FixedStringLookup.cs
- BaseHashHelper.cs
- SqlRemoveConstantOrderBy.cs
- InputLanguageProfileNotifySink.cs
- SiteIdentityPermission.cs
- SeverityFilter.cs
- MultilineStringConverter.cs
- XmlNotation.cs
- ScrollContentPresenter.cs
- SystemKeyConverter.cs
- OwnerDrawPropertyBag.cs
- Descriptor.cs
- ObjectViewQueryResultData.cs
- InputElement.cs
- MenuCommandsChangedEventArgs.cs
- WebPartZoneCollection.cs
- SmiRecordBuffer.cs
- SmiGettersStream.cs
- PerspectiveCamera.cs
- _ProxyChain.cs
- arclist.cs
- WebPartConnectionsConnectVerb.cs
- TableCellCollection.cs
- UnknownBitmapEncoder.cs
- AliasedExpr.cs
- NetworkInterface.cs
- Listener.cs
- QuaternionAnimation.cs
- HttpHandlerAction.cs
- ProgressChangedEventArgs.cs
- ReadingWritingEntityEventArgs.cs
- SerialPort.cs
- ReferenceEqualityComparer.cs
- OSFeature.cs
- InvokeProviderWrapper.cs
- CalloutQueueItem.cs