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
- WebPartTransformerCollection.cs
- NamespaceQuery.cs
- DbParameterCollectionHelper.cs
- PassportPrincipal.cs
- StandardCommands.cs
- ConsoleEntryPoint.cs
- VarInfo.cs
- XhtmlConformanceSection.cs
- RoutingConfiguration.cs
- SQLInt16.cs
- ListViewItem.cs
- PropertyValueUIItem.cs
- NavigationProperty.cs
- BinaryEditor.cs
- DataServiceClientException.cs
- ObjectConverter.cs
- SymDocumentType.cs
- IRCollection.cs
- PasswordRecovery.cs
- CacheForPrimitiveTypes.cs
- TreePrinter.cs
- DataGridTablesFactory.cs
- xml.cs
- VectorAnimationBase.cs
- ManagedWndProcTracker.cs
- WindowsSysHeader.cs
- PropertyTabAttribute.cs
- ArraySegment.cs
- AnimatedTypeHelpers.cs
- DBDataPermissionAttribute.cs
- OraclePermission.cs
- RangeValuePatternIdentifiers.cs
- TypeConverter.cs
- MergeFilterQuery.cs
- MetabaseReader.cs
- GlyphCollection.cs
- DataShape.cs
- ValidationRule.cs
- DesignerRegionCollection.cs
- HebrewNumber.cs
- TdsValueSetter.cs
- HiddenFieldPageStatePersister.cs
- LambdaReference.cs
- EnumerationRangeValidationUtil.cs
- LightweightCodeGenerator.cs
- ListViewDeleteEventArgs.cs
- CurrentChangingEventArgs.cs
- Screen.cs
- XmlAtomicValue.cs
- PageThemeCodeDomTreeGenerator.cs
- StringInfo.cs
- CodeVariableDeclarationStatement.cs
- SoapMessage.cs
- CustomErrorsSection.cs
- ReadOnlyState.cs
- XmlValidatingReaderImpl.cs
- LinqDataSourceStatusEventArgs.cs
- DesignerToolboxInfo.cs
- SignedInfo.cs
- ProfilePropertySettingsCollection.cs
- ComplexObject.cs
- ElementProxy.cs
- FullTextState.cs
- StorageMappingItemCollection.cs
- WebPartUtil.cs
- WizardPanel.cs
- ListBoxItem.cs
- Pen.cs
- QilLiteral.cs
- securestring.cs
- XmlSerializer.cs
- File.cs
- SecureUICommand.cs
- Pkcs7Recipient.cs
- ClickablePoint.cs
- ObjectReaderCompiler.cs
- MappingSource.cs
- Size3DValueSerializer.cs
- Transform3D.cs
- RoutedPropertyChangedEventArgs.cs
- Lease.cs
- OutputCacheSection.cs
- NumberFunctions.cs
- AutoScrollHelper.cs
- ZipIOExtraFieldZip64Element.cs
- newinstructionaction.cs
- EventItfInfo.cs
- Form.cs
- X509Extension.cs
- XmlIlTypeHelper.cs
- OleDbFactory.cs
- SkewTransform.cs
- SoapDocumentServiceAttribute.cs
- LinkLabelLinkClickedEvent.cs
- ImageSourceValueSerializer.cs
- CalendarDateRangeChangingEventArgs.cs
- QilLiteral.cs
- SafeTimerHandle.cs
- InheritanceContextChangedEventManager.cs
- CalendarDay.cs