Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / RepeaterItemCollection.cs / 1305376 / RepeaterItemCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web.UI.WebControls { using System; using System.Collections; ////// public sealed class RepeaterItemCollection : ICollection { private ArrayList items; ///Encapsulates the collection of ///objects within a control. /// Initializes a new instance of /// the public RepeaterItemCollection(ArrayList items) { this.items = items; } ///class with the specified items. /// /// public int Count { get { return items.Count; } } ///Gets the item count of the collection. ////// public bool IsReadOnly { get { return false; } } ///Gets a value indicating whether the collection is read-only. ////// public bool IsSynchronized { get { return false; } } ///Gets a value indicating whether access to the collection is synchronized /// (thread-safe). ////// public object SyncRoot { get { return this; } } ///Gets the object that can be used to synchronize access to the collection. In /// this case, it is the collection itself. ////// public RepeaterItem this[int index] { get { return(RepeaterItem)items[index]; } } ///Gets a ///referenced by the specified ordinal index value in /// the collection. /// public void CopyTo(Array array, int index) { for (IEnumerator e = this.GetEnumerator(); e.MoveNext();) array.SetValue(e.Current, index++); } ///Copies contents from the collection to a specified ///with a /// specified starting index. /// public IEnumerator GetEnumerator() { return items.GetEnumerator(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Returns an enumerator of all ///controls within the /// collection. // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web.UI.WebControls { using System; using System.Collections; ////// public sealed class RepeaterItemCollection : ICollection { private ArrayList items; ///Encapsulates the collection of ///objects within a control. /// Initializes a new instance of /// the public RepeaterItemCollection(ArrayList items) { this.items = items; } ///class with the specified items. /// /// public int Count { get { return items.Count; } } ///Gets the item count of the collection. ////// public bool IsReadOnly { get { return false; } } ///Gets a value indicating whether the collection is read-only. ////// public bool IsSynchronized { get { return false; } } ///Gets a value indicating whether access to the collection is synchronized /// (thread-safe). ////// public object SyncRoot { get { return this; } } ///Gets the object that can be used to synchronize access to the collection. In /// this case, it is the collection itself. ////// public RepeaterItem this[int index] { get { return(RepeaterItem)items[index]; } } ///Gets a ///referenced by the specified ordinal index value in /// the collection. /// public void CopyTo(Array array, int index) { for (IEnumerator e = this.GetEnumerator(); e.MoveNext();) array.SetValue(e.Current, index++); } ///Copies contents from the collection to a specified ///with a /// specified starting index. /// public IEnumerator GetEnumerator() { return items.GetEnumerator(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Returns an enumerator of all ///controls within the /// collection.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HtmlGenericControl.cs
- FileFormatException.cs
- ExpressionWriter.cs
- PermissionListSet.cs
- isolationinterop.cs
- Int32Animation.cs
- DataGridSortCommandEventArgs.cs
- InkPresenterAutomationPeer.cs
- ColorTranslator.cs
- TableDetailsCollection.cs
- MultiBindingExpression.cs
- MimeMultiPart.cs
- CardSpacePolicyElement.cs
- System.Data_BID.cs
- AssociatedControlConverter.cs
- UnsafeNativeMethodsCLR.cs
- ApplicationCommands.cs
- SwitchAttribute.cs
- CustomCredentialPolicy.cs
- StreamWithDictionary.cs
- _DomainName.cs
- HiddenField.cs
- ChannelServices.cs
- CheckBoxPopupAdapter.cs
- PolyBezierSegmentFigureLogic.cs
- DSASignatureFormatter.cs
- ClientScriptManager.cs
- FactoryGenerator.cs
- HtmlLink.cs
- DataControlFieldCell.cs
- EntityContainerEntitySet.cs
- shaperfactoryquerycacheentry.cs
- Image.cs
- XmlDataDocument.cs
- SpellerStatusTable.cs
- configsystem.cs
- Serializer.cs
- StateItem.cs
- OutputCacheSection.cs
- XmlValidatingReaderImpl.cs
- OutputCacheProfile.cs
- X509ImageLogo.cs
- CharacterBuffer.cs
- Hashtable.cs
- ServicePrincipalNameElement.cs
- Figure.cs
- TemplateKey.cs
- UserControlAutomationPeer.cs
- ControlBuilderAttribute.cs
- TCEAdapterGenerator.cs
- SelectionEditingBehavior.cs
- XmlTextEncoder.cs
- DSASignatureDeformatter.cs
- GridViewCommandEventArgs.cs
- RequestCacheEntry.cs
- SiteMapHierarchicalDataSourceView.cs
- ServiceObjectContainer.cs
- WebPartMenu.cs
- XmlCollation.cs
- Hash.cs
- CngKeyBlobFormat.cs
- ComponentResourceKey.cs
- TemplateBindingExtension.cs
- COM2EnumConverter.cs
- MaskedTextProvider.cs
- ProxyManager.cs
- ContentDisposition.cs
- SubMenuStyle.cs
- ParameterEditorUserControl.cs
- PageParser.cs
- ClientCultureInfo.cs
- BitmapSourceSafeMILHandle.cs
- PriorityItem.cs
- OuterGlowBitmapEffect.cs
- Geometry.cs
- WmlCalendarAdapter.cs
- XmlSchemaGroup.cs
- BinaryMethodMessage.cs
- ProcessRequestArgs.cs
- ClientTargetCollection.cs
- DeliveryStrategy.cs
- DoubleAnimationUsingPath.cs
- DbReferenceCollection.cs
- XmlSchemaExporter.cs
- HtmlAnchor.cs
- CodeRegionDirective.cs
- SupportingTokenParameters.cs
- COM2IProvidePropertyBuilderHandler.cs
- ProviderUtil.cs
- Util.cs
- AnnotationAdorner.cs
- SpeechRecognitionEngine.cs
- KeyValueConfigurationCollection.cs
- FixedTextBuilder.cs
- DrawTreeNodeEventArgs.cs
- EncryptedKey.cs
- HashRepartitionStream.cs
- CodeArrayIndexerExpression.cs
- XmlSchemaInclude.cs
- CompareInfo.cs