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
- IdentityValidationException.cs
- SrgsElementList.cs
- HTTPNotFoundHandler.cs
- TdsParser.cs
- wgx_render.cs
- CodeObject.cs
- InkCanvasAutomationPeer.cs
- TabControlEvent.cs
- SpeechSeg.cs
- PersonalizablePropertyEntry.cs
- ConfigurationSection.cs
- NavigationWindow.cs
- ProgressBarHighlightConverter.cs
- ObjectMaterializedEventArgs.cs
- TimeSpanValidatorAttribute.cs
- PageThemeBuildProvider.cs
- RawStylusSystemGestureInputReport.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- SystemKeyConverter.cs
- ExpandCollapsePattern.cs
- DelegatedStream.cs
- OpCodes.cs
- UserControl.cs
- StringInfo.cs
- GradientStopCollection.cs
- WsdlImporterElementCollection.cs
- DataObjectAttribute.cs
- UpDownBase.cs
- SchemaNamespaceManager.cs
- DocumentScope.cs
- FacetValueContainer.cs
- Marshal.cs
- glyphs.cs
- DataKey.cs
- CodeAccessPermission.cs
- ColorConverter.cs
- ContextMenu.cs
- ToolStripPanel.cs
- AutoGeneratedFieldProperties.cs
- ImageKeyConverter.cs
- ScriptingWebServicesSectionGroup.cs
- WeakReferenceKey.cs
- Triplet.cs
- TabControl.cs
- WorkflowWebHostingModule.cs
- SoapExtension.cs
- GPStream.cs
- ButtonField.cs
- DBNull.cs
- future.cs
- XmlSignatureProperties.cs
- URLAttribute.cs
- TagPrefixInfo.cs
- ListBoxDesigner.cs
- IssuanceTokenProviderBase.cs
- HashCodeCombiner.cs
- NavigationHelper.cs
- ImmutableObjectAttribute.cs
- xmlsaver.cs
- GuidelineCollection.cs
- WebPartConnectionsConfigureVerb.cs
- UTF32Encoding.cs
- FormsAuthenticationTicket.cs
- QueryContinueDragEvent.cs
- ConfigurationManagerInternal.cs
- Matrix.cs
- StringValidator.cs
- SerializationInfoEnumerator.cs
- TypeDescriptor.cs
- PreservationFileReader.cs
- ETagAttribute.cs
- IndexingContentUnit.cs
- Rectangle.cs
- DBConcurrencyException.cs
- ClipboardData.cs
- EventOpcode.cs
- CodeIdentifier.cs
- SmiMetaDataProperty.cs
- DispatcherOperation.cs
- __ConsoleStream.cs
- ConfigurationConverterBase.cs
- FacetDescription.cs
- TextRangeEditTables.cs
- AnimatedTypeHelpers.cs
- EditorZone.cs
- ZoneMembershipCondition.cs
- MemberPath.cs
- CodeIndexerExpression.cs
- VirtualPathUtility.cs
- BitmapEffectInputConnector.cs
- OleDbConnectionFactory.cs
- _DomainName.cs
- MsmqIntegrationBindingElement.cs
- StartUpEventArgs.cs
- GridEntryCollection.cs
- SystemResources.cs
- ConnectionOrientedTransportManager.cs
- ListBox.cs
- Ipv6Element.cs
- CodeTypeConstructor.cs