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
- BamlMapTable.cs
- XhtmlBasicFormAdapter.cs
- XmlCodeExporter.cs
- DetailsViewPageEventArgs.cs
- ReflectPropertyDescriptor.cs
- TextAdaptor.cs
- PageParserFilter.cs
- FileEnumerator.cs
- ProvideValueServiceProvider.cs
- FlowDocumentScrollViewer.cs
- FrameSecurityDescriptor.cs
- RangeBase.cs
- Decorator.cs
- TakeQueryOptionExpression.cs
- DbConnectionOptions.cs
- SignatureToken.cs
- RangeContentEnumerator.cs
- QuaternionAnimation.cs
- ProtocolViolationException.cs
- Int32Rect.cs
- GroupBoxRenderer.cs
- BooleanConverter.cs
- ObjectItemConventionAssemblyLoader.cs
- SafeSecurityHandles.cs
- InfoCardAsymmetricCrypto.cs
- ToolStripLocationCancelEventArgs.cs
- EUCJPEncoding.cs
- SpAudioStreamWrapper.cs
- XmlElementElement.cs
- DataGridSortCommandEventArgs.cs
- WebFormDesignerActionService.cs
- Transactions.cs
- ReflectionServiceProvider.cs
- Input.cs
- Attributes.cs
- HttpCacheParams.cs
- MultipartContentParser.cs
- FloaterBaseParaClient.cs
- MessageTransmitTraceRecord.cs
- ISAPIWorkerRequest.cs
- LicenseManager.cs
- MimeParameter.cs
- control.ime.cs
- TrackingServices.cs
- SweepDirectionValidation.cs
- Triangle.cs
- OdbcConnectionHandle.cs
- Effect.cs
- PowerStatus.cs
- DrawListViewItemEventArgs.cs
- HttpModulesSection.cs
- RuleInfoComparer.cs
- File.cs
- PasswordDeriveBytes.cs
- BinaryObjectWriter.cs
- DataGridItemEventArgs.cs
- AddressAccessDeniedException.cs
- SQLUtility.cs
- SQLMembershipProvider.cs
- BooleanAnimationUsingKeyFrames.cs
- ControlCachePolicy.cs
- HttpPostClientProtocol.cs
- xsdvalidator.cs
- DependencyPropertyConverter.cs
- DesignerCategoryAttribute.cs
- SecurityPermission.cs
- HtmlInputImage.cs
- MSAAEventDispatcher.cs
- TiffBitmapDecoder.cs
- TextWriterEngine.cs
- BuildTopDownAttribute.cs
- Vector.cs
- CodeBlockBuilder.cs
- DataPointer.cs
- ImageFormatConverter.cs
- Vector3D.cs
- DescendantOverDescendantQuery.cs
- SiteMapNodeItemEventArgs.cs
- CodeDirectiveCollection.cs
- ComponentSerializationService.cs
- ScriptRegistrationManager.cs
- PolicyChain.cs
- SQLGuidStorage.cs
- DnsPermission.cs
- ErrorHandler.cs
- XmlSchemaAny.cs
- ISO2022Encoding.cs
- SqlMethodAttribute.cs
- InvalidPrinterException.cs
- ErrorHandler.cs
- XPathPatternParser.cs
- LoginUtil.cs
- VisualStyleElement.cs
- FirstMatchCodeGroup.cs
- _ShellExpression.cs
- SiteMapNode.cs
- LinqDataSourceValidationException.cs
- LineProperties.cs
- DragEventArgs.cs
- RangeValuePattern.cs