Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / WebControls / DataListItemCollection.cs / 1 / DataListItemCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web.UI.WebControls { using System; using System.Collections; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class DataListItemCollection : ICollection { private ArrayList items; ///Represents the collection of ///objects /// public DataListItemCollection(ArrayList items) { this.items = items; } ///Initializes a new instance of the ///class. /// public int Count { get { return items.Count; } } ///Gets the number of items in the collection. ////// public bool IsReadOnly { get { return false; } } ///Gets a value that specifies whether items in the ///can be modified. /// public bool IsSynchronized { get { return false; } } ///Gets a value that indicates whether the ///is thread-safe. /// public object SyncRoot { get { return this; } } ///Gets the object used to synchronize access to the collection. ////// public DataListItem this[int index] { get { return(DataListItem)items[index]; } } ///Gets a ///at the specified index in the /// collection. /// public void CopyTo(Array array, int index) { for (IEnumerator e = this.GetEnumerator(); e.MoveNext();) array.SetValue(e.Current, index++); } ///Copies the contents of the entire collection into an ///appending at /// the specified index of the . /// public IEnumerator GetEnumerator() { return items.GetEnumerator(); } } }Creates an enumerator for the ///used to iterate /// through the collection.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ObjectItemCachedAssemblyLoader.cs
- DependencyObjectPropertyDescriptor.cs
- RuleProcessor.cs
- HttpApplicationStateBase.cs
- RegexGroup.cs
- BindingManagerDataErrorEventArgs.cs
- ToolboxItemCollection.cs
- StringToken.cs
- XsdBuildProvider.cs
- Assert.cs
- GB18030Encoding.cs
- XmlEnumAttribute.cs
- ConfigurationManagerHelperFactory.cs
- DataSourceCache.cs
- NetStream.cs
- _ScatterGatherBuffers.cs
- __Filters.cs
- TextParagraphCache.cs
- WebScriptMetadataFormatter.cs
- ListItem.cs
- Control.cs
- DataObjectAttribute.cs
- RemotingAttributes.cs
- Identity.cs
- ValidationEventArgs.cs
- EntityContainerAssociationSet.cs
- TCPClient.cs
- MultiSelectRootGridEntry.cs
- InternalSafeNativeMethods.cs
- ColumnWidthChangingEvent.cs
- ModelServiceImpl.cs
- TreeViewCancelEvent.cs
- ContentHostHelper.cs
- UnsafeNativeMethods.cs
- TabControlCancelEvent.cs
- CheckBoxField.cs
- RuleProcessor.cs
- PageAsyncTask.cs
- TextWriterEngine.cs
- StylusCaptureWithinProperty.cs
- BuildResultCache.cs
- ListBox.cs
- DataBoundControl.cs
- DialogResultConverter.cs
- PropertyBuilder.cs
- _CookieModule.cs
- TextEditorLists.cs
- FieldNameLookup.cs
- OutputScope.cs
- SqlDeflator.cs
- ContentElementAutomationPeer.cs
- PagesSection.cs
- HtmlShimManager.cs
- DataObjectEventArgs.cs
- LOSFormatter.cs
- MatchAllMessageFilter.cs
- Descriptor.cs
- WebPartEditVerb.cs
- ContractInstanceProvider.cs
- DataMemberFieldConverter.cs
- QilInvokeEarlyBound.cs
- _ProxyChain.cs
- Line.cs
- Font.cs
- KnownBoxes.cs
- EmbeddedObject.cs
- ParameterRefs.cs
- TextBoxLine.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- ValidationErrorEventArgs.cs
- StyleXamlTreeBuilder.cs
- DbDataAdapter.cs
- TextTrailingCharacterEllipsis.cs
- DataGridLinkButton.cs
- PermissionAttributes.cs
- UnhandledExceptionEventArgs.cs
- ArrayElementGridEntry.cs
- TimeZone.cs
- Metadata.cs
- DataGridViewRowsRemovedEventArgs.cs
- AndCondition.cs
- datacache.cs
- RegionInfo.cs
- XmlAttribute.cs
- ModuleElement.cs
- AssemblyLoader.cs
- ManagementOptions.cs
- XmlAnyAttributeAttribute.cs
- CodeTryCatchFinallyStatement.cs
- TypeCodeDomSerializer.cs
- AggregateException.cs
- Identity.cs
- TemplateColumn.cs
- EmptyWorkItem.cs
- UnsafeNativeMethods.cs
- SectionVisual.cs
- Collection.cs
- CannotUnloadAppDomainException.cs
- _StreamFramer.cs
- X509RecipientCertificateServiceElement.cs