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
- COM2PropertyDescriptor.cs
- TerminateSequence.cs
- TypeElementCollection.cs
- SoapIncludeAttribute.cs
- CodeNamespaceImportCollection.cs
- SoapAttributeOverrides.cs
- RsaKeyGen.cs
- Bold.cs
- WindowsFormsHelpers.cs
- WebConvert.cs
- WebSysDisplayNameAttribute.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- MimeMapping.cs
- SafeEventLogReadHandle.cs
- IntegerValidatorAttribute.cs
- FileDetails.cs
- DataTemplateKey.cs
- MouseButtonEventArgs.cs
- MenuBase.cs
- KerberosSecurityTokenAuthenticator.cs
- FormsAuthenticationCredentials.cs
- OlePropertyStructs.cs
- HtmlInputCheckBox.cs
- XamlPathDataSerializer.cs
- MetadataException.cs
- _OverlappedAsyncResult.cs
- SqlFactory.cs
- FileDetails.cs
- DataGridItemEventArgs.cs
- WCFServiceClientProxyGenerator.cs
- SqlDependency.cs
- HostDesigntimeLicenseContext.cs
- ScrollItemProviderWrapper.cs
- Logging.cs
- Trace.cs
- ThreadStartException.cs
- LogRecordSequence.cs
- latinshape.cs
- XmlMembersMapping.cs
- CustomErrorsSectionWrapper.cs
- Substitution.cs
- FontWeight.cs
- MsmqIntegrationProcessProtocolHandler.cs
- DES.cs
- MultipleViewProviderWrapper.cs
- ReversePositionQuery.cs
- KoreanCalendar.cs
- Stylesheet.cs
- ExtenderHelpers.cs
- FullTextBreakpoint.cs
- BuildManager.cs
- NamespaceInfo.cs
- VirtualizedContainerService.cs
- Pair.cs
- SkipStoryboardToFill.cs
- _SingleItemRequestCache.cs
- ProcessInfo.cs
- UIElementCollection.cs
- DataGridViewTextBoxEditingControl.cs
- InternalRelationshipCollection.cs
- LazyInitializer.cs
- QuaternionValueSerializer.cs
- ErrorTolerantObjectWriter.cs
- WmlValidationSummaryAdapter.cs
- AuthenticationService.cs
- GC.cs
- SoapRpcServiceAttribute.cs
- Int16.cs
- ListItemCollection.cs
- NumericExpr.cs
- RSAPKCS1SignatureFormatter.cs
- ScaleTransform3D.cs
- EventLogger.cs
- WindowAutomationPeer.cs
- WeakEventManager.cs
- WebBrowserBase.cs
- Columns.cs
- RecordManager.cs
- OrderedDictionary.cs
- RtfToXamlLexer.cs
- MetadataUtilsSmi.cs
- StyleCollection.cs
- TdsParserStateObject.cs
- Stacktrace.cs
- BitmapEffectInput.cs
- MouseEvent.cs
- DataSourceControlBuilder.cs
- SchemaMerger.cs
- TextEditorCharacters.cs
- DesignTimeTemplateParser.cs
- TypeNameConverter.cs
- WmiInstallComponent.cs
- PointUtil.cs
- Constants.cs
- __ComObject.cs
- GeneralTransform.cs
- ImageFormat.cs
- MarshalByRefObject.cs
- Themes.cs
- PhysicalAddress.cs