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
- InternalsVisibleToAttribute.cs
- ByteRangeDownloader.cs
- AutomationPatternInfo.cs
- HttpDebugHandler.cs
- WindowsToolbarAsMenu.cs
- TextElementAutomationPeer.cs
- DataGridViewIntLinkedList.cs
- ContourSegment.cs
- MSAAWinEventWrap.cs
- Crypto.cs
- SecurityAttributeGenerationHelper.cs
- MiniConstructorInfo.cs
- InlineObject.cs
- ContractNamespaceAttribute.cs
- SortedDictionary.cs
- DiagnosticTraceSource.cs
- TemplateEditingService.cs
- HtmlElementEventArgs.cs
- ExpressionEvaluator.cs
- OdbcDataReader.cs
- SqlDelegatedTransaction.cs
- CriticalHandle.cs
- HwndSource.cs
- PackWebResponse.cs
- LineBreak.cs
- SharedDp.cs
- EdmConstants.cs
- IDReferencePropertyAttribute.cs
- ProviderException.cs
- MemberAccessException.cs
- Rectangle.cs
- TraceInternal.cs
- TypeCodeDomSerializer.cs
- DataSourceSerializationException.cs
- PrintEvent.cs
- SecUtil.cs
- AlternationConverter.cs
- ListItemCollection.cs
- RecommendedAsConfigurableAttribute.cs
- TextFormatterContext.cs
- SoapIncludeAttribute.cs
- Condition.cs
- DataListDesigner.cs
- Effect.cs
- TextViewDesigner.cs
- RowTypeElement.cs
- XXXOnTypeBuilderInstantiation.cs
- ObjectDataSourceStatusEventArgs.cs
- Scalars.cs
- XmlDictionary.cs
- AutomationEventArgs.cs
- HttpCookie.cs
- WebPartVerbCollection.cs
- ObjectMemberMapping.cs
- ComponentCodeDomSerializer.cs
- SymbolEqualComparer.cs
- PerformanceCounterPermissionAttribute.cs
- SByteStorage.cs
- BaseTransportHeaders.cs
- UriScheme.cs
- InvalidAsynchronousStateException.cs
- FileVersion.cs
- ColorPalette.cs
- ToolTipAutomationPeer.cs
- ListViewUpdatedEventArgs.cs
- XsltCompileContext.cs
- ClockGroup.cs
- Converter.cs
- WebPartConnectionsEventArgs.cs
- TrackingDataItem.cs
- Pts.cs
- XhtmlStyleClass.cs
- SystemInformation.cs
- JoinElimination.cs
- MasterPageBuildProvider.cs
- LocalizableAttribute.cs
- LocalizedNameDescriptionPair.cs
- typedescriptorpermissionattribute.cs
- NamespaceDecl.cs
- WebEventCodes.cs
- OutKeywords.cs
- PersianCalendar.cs
- CommonObjectSecurity.cs
- Pen.cs
- CommunicationException.cs
- EventDescriptorCollection.cs
- ContainerCodeDomSerializer.cs
- QilValidationVisitor.cs
- EntityViewContainer.cs
- UnsafeNativeMethods.cs
- DefaultAsyncDataDispatcher.cs
- SQLInt16Storage.cs
- TemplateLookupAction.cs
- MobileSysDescriptionAttribute.cs
- OracleMonthSpan.cs
- ValidationRuleCollection.cs
- OperatorExpressions.cs
- ADRoleFactoryConfiguration.cs
- SharingService.cs
- KeyFrames.cs