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
- TemplateLookupAction.cs
- WindowHideOrCloseTracker.cs
- PopOutPanel.cs
- MasterPage.cs
- BufferedStream.cs
- DataExpression.cs
- LoginUtil.cs
- Normalization.cs
- TemplateInstanceAttribute.cs
- TypeExtension.cs
- EdmSchemaError.cs
- TypeBuilder.cs
- oledbmetadatacolumnnames.cs
- XmlNamedNodeMap.cs
- ExtendedPropertiesHandler.cs
- ConfigurationErrorsException.cs
- XmlWrappingReader.cs
- PropertyToken.cs
- SkewTransform.cs
- SQLCharsStorage.cs
- Transform3D.cs
- TextEffectCollection.cs
- UnknownBitmapDecoder.cs
- EventData.cs
- CompiledQueryCacheKey.cs
- NumberAction.cs
- FontCollection.cs
- invalidudtexception.cs
- CodeObjectCreateExpression.cs
- followingsibling.cs
- UInt64Storage.cs
- PartialTrustValidationBehavior.cs
- ButtonPopupAdapter.cs
- NavigationExpr.cs
- MDIControlStrip.cs
- ViewStateModeByIdAttribute.cs
- KoreanCalendar.cs
- FocusChangedEventArgs.cs
- CorrelationHandle.cs
- SQLMembershipProvider.cs
- MorphHelpers.cs
- QuinticEase.cs
- Attributes.cs
- OracleRowUpdatingEventArgs.cs
- Int16AnimationUsingKeyFrames.cs
- FontFamilyIdentifier.cs
- infer.cs
- Inflater.cs
- UriTemplateTrieLocation.cs
- Misc.cs
- Trace.cs
- HtmlElement.cs
- FileDetails.cs
- CorrelationResolver.cs
- TemplateKey.cs
- FontFamilyConverter.cs
- FixedSOMPageConstructor.cs
- ApplicationProxyInternal.cs
- FormsAuthenticationModule.cs
- ConfigurationLocationCollection.cs
- Zone.cs
- DiagnosticTrace.cs
- URI.cs
- Helpers.cs
- PathFigureCollectionConverter.cs
- UxThemeWrapper.cs
- CodeAttributeArgumentCollection.cs
- ExclusiveHandle.cs
- CodeObjectCreateExpression.cs
- TextWriterTraceListener.cs
- AutoScrollExpandMessageFilter.cs
- Switch.cs
- HasCopySemanticsAttribute.cs
- SchemaInfo.cs
- DynamicResourceExtension.cs
- TokenDescriptor.cs
- DataGridViewMethods.cs
- WpfXamlMember.cs
- ResourcePool.cs
- SqlTransaction.cs
- filewebrequest.cs
- InputProcessorProfilesLoader.cs
- DataTable.cs
- SettingsAttributes.cs
- DataTableTypeConverter.cs
- SvcMapFileLoader.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- selecteditemcollection.cs
- ComponentResourceManager.cs
- TimeZone.cs
- DataQuery.cs
- COM2IProvidePropertyBuilderHandler.cs
- RayMeshGeometry3DHitTestResult.cs
- SetMemberBinder.cs
- CompiledRegexRunnerFactory.cs
- CircleEase.cs
- TableChangeProcessor.cs
- DBPropSet.cs
- SafeLibraryHandle.cs
- FormsAuthenticationUserCollection.cs