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
- DelegatedStream.cs
- GenericArgumentsUpdater.cs
- XmlArrayItemAttribute.cs
- EventHandlerList.cs
- messageonlyhwndwrapper.cs
- HtmlGenericControl.cs
- PersonalizationStateInfoCollection.cs
- LogLogRecordHeader.cs
- SymDocumentType.cs
- StylusPointPropertyInfo.cs
- RemotingSurrogateSelector.cs
- ContentHostHelper.cs
- ExtenderProvidedPropertyAttribute.cs
- InputScopeNameConverter.cs
- Rect.cs
- BadImageFormatException.cs
- LowerCaseStringConverter.cs
- ServiceSettingsResponseInfo.cs
- DesignerAutoFormatCollection.cs
- MembershipValidatePasswordEventArgs.cs
- ADRoleFactoryConfiguration.cs
- NeutralResourcesLanguageAttribute.cs
- transactioncontext.cs
- DomNameTable.cs
- TraceListeners.cs
- CollectionChangeEventArgs.cs
- GiveFeedbackEventArgs.cs
- ToolBarButton.cs
- EntryIndex.cs
- SmtpFailedRecipientException.cs
- XmlnsPrefixAttribute.cs
- ApplicationHost.cs
- ModelProperty.cs
- SplashScreenNativeMethods.cs
- PrtTicket_Public.cs
- SchemaSetCompiler.cs
- AbsoluteQuery.cs
- SessionStateContainer.cs
- SessionStateContainer.cs
- HtmlUtf8RawTextWriter.cs
- SqlConnectionManager.cs
- MediaElementAutomationPeer.cs
- SspiSecurityTokenParameters.cs
- QuadraticBezierSegment.cs
- HwndProxyElementProvider.cs
- StringUtil.cs
- EmbeddedObject.cs
- PropertyGeneratedEventArgs.cs
- Int16Animation.cs
- PeerCollaborationPermission.cs
- RadioButton.cs
- SizeValueSerializer.cs
- EditingMode.cs
- TableParaClient.cs
- NetworkInterface.cs
- CommandArguments.cs
- WebPart.cs
- MostlySingletonList.cs
- DataSourceControlBuilder.cs
- XmlAttributeAttribute.cs
- ValueConversionAttribute.cs
- X509ScopedServiceCertificateElement.cs
- DispatchChannelSink.cs
- Scheduling.cs
- LedgerEntry.cs
- ApplicationHost.cs
- BaseDataBoundControl.cs
- RotateTransform3D.cs
- Wizard.cs
- AutoGeneratedFieldProperties.cs
- _LazyAsyncResult.cs
- JobStaple.cs
- TypeListConverter.cs
- Win32SafeHandles.cs
- FilterElement.cs
- Stacktrace.cs
- FileDialogCustomPlace.cs
- Adorner.cs
- DesignerOptionService.cs
- TypeGenericEnumerableViewSchema.cs
- MouseDevice.cs
- AuthenticationService.cs
- BCryptHashAlgorithm.cs
- JsonFormatWriterGenerator.cs
- XmlDataSourceNodeDescriptor.cs
- TypeResolver.cs
- CustomAttributeBuilder.cs
- Types.cs
- DataServiceOperationContext.cs
- ExpandCollapseProviderWrapper.cs
- BindingOperations.cs
- FacetChecker.cs
- EntityDataSourceDesigner.cs
- _SecureChannel.cs
- XmlSchemaAttributeGroup.cs
- UInt64Storage.cs
- RegexRunner.cs
- TimeZone.cs
- BooleanAnimationUsingKeyFrames.cs
- SrgsGrammarCompiler.cs