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
- CollectionChangedEventManager.cs
- FontConverter.cs
- Translator.cs
- FunctionQuery.cs
- Win32.cs
- Delay.cs
- SmtpReplyReaderFactory.cs
- XmlName.cs
- SingleAnimationBase.cs
- CommandConverter.cs
- JournalEntryStack.cs
- CreatingCookieEventArgs.cs
- TextBox.cs
- CodeThrowExceptionStatement.cs
- NullRuntimeConfig.cs
- UdpAnnouncementEndpoint.cs
- AsnEncodedData.cs
- UriExt.cs
- KerberosRequestorSecurityToken.cs
- ResizeBehavior.cs
- XmlException.cs
- ScrollProperties.cs
- GB18030Encoding.cs
- Pair.cs
- HandledEventArgs.cs
- DataControlButton.cs
- WebEvents.cs
- TabletDevice.cs
- HandlerMappingMemo.cs
- Help.cs
- TextOutput.cs
- TextEditor.cs
- AppDomainUnloadedException.cs
- DSASignatureFormatter.cs
- LayoutEditorPart.cs
- StateInitialization.cs
- _NegoStream.cs
- ExitEventArgs.cs
- GenericAuthenticationEventArgs.cs
- InkCanvasSelectionAdorner.cs
- PropertyInfoSet.cs
- LocalBuilder.cs
- DataGridViewCell.cs
- Point4DConverter.cs
- DelayedRegex.cs
- DetailsViewCommandEventArgs.cs
- XmlAutoDetectWriter.cs
- QilFunction.cs
- InteropAutomationProvider.cs
- HttpDebugHandler.cs
- SoundPlayerAction.cs
- DetailsView.cs
- Mappings.cs
- ScriptComponentDescriptor.cs
- TemplatedMailWebEventProvider.cs
- Triangle.cs
- SystemKeyConverter.cs
- HttpSessionStateWrapper.cs
- TableSectionStyle.cs
- FilteredDataSetHelper.cs
- NonSerializedAttribute.cs
- UserControlBuildProvider.cs
- PtsHelper.cs
- ControlIdConverter.cs
- WindowsIdentity.cs
- StrokeCollection2.cs
- TextRenderer.cs
- XsdValidatingReader.cs
- AuthenticatingEventArgs.cs
- ProcessModelSection.cs
- Page.cs
- ViewManager.cs
- XmlSchemaAttribute.cs
- GridViewRow.cs
- NavigationWindow.cs
- ArrayWithOffset.cs
- SelectionProviderWrapper.cs
- SqlBuilder.cs
- SettingsAttributeDictionary.cs
- MatrixAnimationBase.cs
- HotCommands.cs
- TokenDescriptor.cs
- EntityDataSourceView.cs
- SafeProcessHandle.cs
- CDSCollectionETWBCLProvider.cs
- PassportPrincipal.cs
- Site.cs
- SourceSwitch.cs
- CodeConstructor.cs
- MessageTraceRecord.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- RolePrincipal.cs
- CompositeCollection.cs
- ListControl.cs
- AccessibleObject.cs
- ButtonStandardAdapter.cs
- Vector3DCollectionConverter.cs
- Crc32.cs
- FileStream.cs
- AssociationSetEnd.cs