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
- DrawingAttributeSerializer.cs
- ImageFormat.cs
- TextServicesCompartmentContext.cs
- Bidi.cs
- RegexBoyerMoore.cs
- VideoDrawing.cs
- GPStream.cs
- KeyboardEventArgs.cs
- CommandDesigner.cs
- LineSegment.cs
- SkinBuilder.cs
- ChangeInterceptorAttribute.cs
- ToolboxComponentsCreatedEventArgs.cs
- CustomAttributeFormatException.cs
- LogReserveAndAppendState.cs
- CustomAttributeBuilder.cs
- DataTemplateSelector.cs
- GB18030Encoding.cs
- AttributeQuery.cs
- CacheSection.cs
- XDeferredAxisSource.cs
- InstallerTypeAttribute.cs
- SystemResourceKey.cs
- RequestQueryProcessor.cs
- XmlPreloadedResolver.cs
- XomlSerializationHelpers.cs
- FirewallWrapper.cs
- SecurityAlgorithmSuite.cs
- Form.cs
- RequestContext.cs
- CanonicalizationDriver.cs
- RTLAwareMessageBox.cs
- FileDialog.cs
- ReceiveErrorHandling.cs
- StyleModeStack.cs
- HebrewNumber.cs
- DataGridViewLinkColumn.cs
- SHA256CryptoServiceProvider.cs
- PrivilegedConfigurationManager.cs
- SectionInput.cs
- BitmapDecoder.cs
- WebContext.cs
- TimeSpanSecondsConverter.cs
- InfiniteIntConverter.cs
- ByeMessageApril2005.cs
- EventSourceCreationData.cs
- ProxyAttribute.cs
- SmtpDigestAuthenticationModule.cs
- DependencyPropertyValueSerializer.cs
- MenuScrollingVisibilityConverter.cs
- WindowsPen.cs
- StyleSelector.cs
- CompiledRegexRunner.cs
- ResourcePart.cs
- MSAANativeProvider.cs
- RepeaterItemEventArgs.cs
- QueryContext.cs
- EntityDataSourceWrapper.cs
- ConnectionConsumerAttribute.cs
- Line.cs
- ExpressionPrinter.cs
- LocatorGroup.cs
- SByteConverter.cs
- SchemaMapping.cs
- CheckBoxField.cs
- QilTargetType.cs
- MetadataSerializer.cs
- Grid.cs
- ellipse.cs
- InternalConfigConfigurationFactory.cs
- SectionInformation.cs
- RawStylusInputCustomDataList.cs
- ParentQuery.cs
- RegisterInfo.cs
- PrincipalPermission.cs
- NTAccount.cs
- TreeNodeStyleCollection.cs
- ToolStripSplitStackLayout.cs
- BorderGapMaskConverter.cs
- ClientProxyGenerator.cs
- Point3DAnimationBase.cs
- AspNetSynchronizationContext.cs
- XXXInfos.cs
- DetailsViewUpdatedEventArgs.cs
- VisualStyleTypesAndProperties.cs
- ViewManager.cs
- ObjectStateEntry.cs
- WindowHideOrCloseTracker.cs
- WebServiceData.cs
- PrimitiveXmlSerializers.cs
- OleServicesContext.cs
- Resources.Designer.cs
- CommandValueSerializer.cs
- DataGridViewElement.cs
- StringValidatorAttribute.cs
- XmlWriterSettings.cs
- WorkflowApplicationIdleEventArgs.cs
- PagerSettings.cs
- SqlStatistics.cs
- Vector3DCollection.cs