Code:
/ DotNET / DotNET / 8.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
- EditingCoordinator.cs
- HttpListenerRequestTraceRecord.cs
- EncryptedData.cs
- MissingSatelliteAssemblyException.cs
- KnownIds.cs
- TextBlockAutomationPeer.cs
- ClientSettingsProvider.cs
- NavigationService.cs
- TreeViewAutomationPeer.cs
- HMACRIPEMD160.cs
- ParameterReplacerVisitor.cs
- AggregateNode.cs
- SQLResource.cs
- LicFileLicenseProvider.cs
- XmlElementAttribute.cs
- HttpProxyCredentialType.cs
- DynamicActionMessageFilter.cs
- nulltextcontainer.cs
- ExpressionPrefixAttribute.cs
- TimerElapsedEvenArgs.cs
- WebContext.cs
- QuerySettings.cs
- Identity.cs
- _ConnectionGroup.cs
- KnownTypeAttribute.cs
- TraceInternal.cs
- ScrollItemProviderWrapper.cs
- SafeReadContext.cs
- DataAdapter.cs
- PointValueSerializer.cs
- CustomWebEventKey.cs
- COSERVERINFO.cs
- Control.cs
- FileUtil.cs
- ConfigurationManagerInternal.cs
- Select.cs
- WebEventTraceProvider.cs
- DynamicFilterExpression.cs
- IdleTimeoutMonitor.cs
- Resources.Designer.cs
- EmbeddedMailObject.cs
- GeometryCollection.cs
- ProviderConnectionPoint.cs
- FormClosingEvent.cs
- HostingEnvironment.cs
- DynamicPropertyReader.cs
- ObjectDataSourceEventArgs.cs
- _SecureChannel.cs
- ClientUrlResolverWrapper.cs
- ObjectAnimationUsingKeyFrames.cs
- SqlDependencyUtils.cs
- ReflectionPermission.cs
- DropTarget.cs
- RemotingAttributes.cs
- DbConnectionFactory.cs
- StorageModelBuildProvider.cs
- WebPartDisplayModeCancelEventArgs.cs
- JsonDeserializer.cs
- ProviderConnectionPointCollection.cs
- GB18030Encoding.cs
- WebHttpSecurity.cs
- ToolBar.cs
- PopupEventArgs.cs
- MimeMapping.cs
- ConfigurationSchemaErrors.cs
- RefreshInfo.cs
- DiagnosticEventProvider.cs
- ObjectStateManager.cs
- FixedSOMImage.cs
- TcpWorkerProcess.cs
- FaultPropagationQuery.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- WindowsStartMenu.cs
- AuthenticationModulesSection.cs
- EventHandlersStore.cs
- DataTableMapping.cs
- DefaultMemberAttribute.cs
- InvocationExpression.cs
- RequestContext.cs
- NotifyIcon.cs
- PageThemeParser.cs
- ListSurrogate.cs
- ConfigurationSettings.cs
- WebSysDescriptionAttribute.cs
- UnmanagedMarshal.cs
- MsmqHostedTransportConfiguration.cs
- PeerCollaborationPermission.cs
- DrawingContext.cs
- EmbeddedObject.cs
- _SSPISessionCache.cs
- TableProvider.cs
- RectKeyFrameCollection.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- MulticastIPAddressInformationCollection.cs
- TemplatedMailWebEventProvider.cs
- HttpModuleActionCollection.cs
- DBNull.cs
- DataObject.cs
- DependencyObject.cs
- OleDragDropHandler.cs