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
- WindowsListBox.cs
- TextRangeProviderWrapper.cs
- MobileTemplatedControlDesigner.cs
- ImmutableObjectAttribute.cs
- LambdaCompiler.Expressions.cs
- AssociationSetEnd.cs
- LocatorPart.cs
- XmlBinaryWriter.cs
- Configuration.cs
- DbReferenceCollection.cs
- CorrelationService.cs
- PropertyEmitterBase.cs
- SqlDataSourceFilteringEventArgs.cs
- ValueTypeFixupInfo.cs
- ProtocolInformationReader.cs
- StrongNameIdentityPermission.cs
- ConfigXmlDocument.cs
- HtmlTernaryTree.cs
- AutoGeneratedField.cs
- CalendarButton.cs
- recordstatefactory.cs
- XslAstAnalyzer.cs
- ColorMap.cs
- Animatable.cs
- CancellationHandler.cs
- ZoneButton.cs
- DocumentViewer.cs
- SingleAnimationUsingKeyFrames.cs
- MetadataUtil.cs
- AnimationStorage.cs
- CqlErrorHelper.cs
- EmptyCollection.cs
- shaperfactoryquerycacheentry.cs
- StorageInfo.cs
- GPStream.cs
- HtmlElementErrorEventArgs.cs
- ResXResourceSet.cs
- UserUseLicenseDictionaryLoader.cs
- CodeNamespaceImportCollection.cs
- XMLSyntaxException.cs
- LogSwitch.cs
- XmlSigningNodeWriter.cs
- FormConverter.cs
- TextContainer.cs
- CompilationUnit.cs
- VectorCollectionValueSerializer.cs
- ItemsChangedEventArgs.cs
- BitVector32.cs
- CalculatedColumn.cs
- VectorKeyFrameCollection.cs
- RightsManagementEncryptionTransform.cs
- DES.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- Crc32Helper.cs
- ToolStripSeparator.cs
- TemplateXamlParser.cs
- WebPartEditorApplyVerb.cs
- DataList.cs
- InputMethod.cs
- ParameterCollection.cs
- SafePointer.cs
- MessageHeader.cs
- URLMembershipCondition.cs
- BStrWrapper.cs
- ValidatedControlConverter.cs
- TimeManager.cs
- SqlCacheDependencyDatabaseCollection.cs
- CompiledELinqQueryState.cs
- MachineSettingsSection.cs
- EventQueueState.cs
- TabControlCancelEvent.cs
- CodeTypeMemberCollection.cs
- SecuritySessionServerSettings.cs
- Collection.cs
- XmlComplianceUtil.cs
- StyleBamlRecordReader.cs
- HttpDebugHandler.cs
- VSWCFServiceContractGenerator.cs
- NamespaceList.cs
- AmbiguousMatchException.cs
- XmlAttributeCache.cs
- GridViewRowPresenter.cs
- _OverlappedAsyncResult.cs
- StringArrayConverter.cs
- OleDbErrorCollection.cs
- RequestContext.cs
- ApplicationSecurityManager.cs
- SiteMapSection.cs
- OleDbCommandBuilder.cs
- ZoomPercentageConverter.cs
- PackUriHelper.cs
- UpdatePanelTrigger.cs
- MulticastDelegate.cs
- DurableEnlistmentState.cs
- InfoCardKeyedHashAlgorithm.cs
- FileLogRecordStream.cs
- CountdownEvent.cs
- CompensatableTransactionScopeActivityDesigner.cs
- PauseStoryboard.cs
- ManipulationLogic.cs