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
- EnumUnknown.cs
- SupportsEventValidationAttribute.cs
- FormsAuthenticationCredentials.cs
- PromptStyle.cs
- IIS7ConfigurationLoader.cs
- COM2TypeInfoProcessor.cs
- TypeSystem.cs
- MenuCommands.cs
- VisualBasicSettingsHandler.cs
- SyndicationDeserializer.cs
- FontDifferentiator.cs
- TextRange.cs
- ChameleonKey.cs
- SoapRpcMethodAttribute.cs
- SimpleTextLine.cs
- DockPanel.cs
- GeneralTransform3DTo2D.cs
- CollectionsUtil.cs
- ContractMapping.cs
- CryptoApi.cs
- Html32TextWriter.cs
- RenderContext.cs
- DataSysAttribute.cs
- log.cs
- BitHelper.cs
- XmlSchemaDocumentation.cs
- MobileControlBuilder.cs
- WindowsListViewGroupHelper.cs
- WebPartMovingEventArgs.cs
- GlobalizationSection.cs
- StreamGeometryContext.cs
- XmlSchemaSimpleContentExtension.cs
- PropertyBuilder.cs
- SafeThreadHandle.cs
- FrugalList.cs
- GorillaCodec.cs
- TypeBuilderInstantiation.cs
- DynamicResourceExtension.cs
- ScrollEvent.cs
- SharedUtils.cs
- Size3DValueSerializer.cs
- HtmlInputCheckBox.cs
- DynamicFilterExpression.cs
- DataSourceCollectionBase.cs
- SettingsAttributes.cs
- XmlArrayItemAttributes.cs
- GeometryHitTestParameters.cs
- StrokeNodeData.cs
- SimplePropertyEntry.cs
- WpfWebRequestHelper.cs
- TextAnchor.cs
- DataGridViewCellMouseEventArgs.cs
- SqlNamer.cs
- XhtmlBasicObjectListAdapter.cs
- NameValueCollection.cs
- ProgressPage.cs
- URLIdentityPermission.cs
- BookmarkWorkItem.cs
- DataGridRelationshipRow.cs
- xmlformatgeneratorstatics.cs
- ProfileBuildProvider.cs
- EventLogPropertySelector.cs
- SelectionEditor.cs
- _TransmitFileOverlappedAsyncResult.cs
- XmlSignificantWhitespace.cs
- PerspectiveCamera.cs
- CharAnimationUsingKeyFrames.cs
- ActivationService.cs
- MultiSelector.cs
- Point3DCollectionConverter.cs
- DesignerVerb.cs
- DesignOnlyAttribute.cs
- FixUpCollection.cs
- OleDbDataReader.cs
- SerializationUtilities.cs
- SyndicationSerializer.cs
- ReadOnlyKeyedCollection.cs
- ReadOnlyTernaryTree.cs
- Types.cs
- Environment.cs
- RolePrincipal.cs
- odbcmetadatacollectionnames.cs
- BaseValidator.cs
- ProviderBase.cs
- Blend.cs
- RIPEMD160.cs
- WeakReadOnlyCollection.cs
- Bidi.cs
- Rfc2898DeriveBytes.cs
- MessageSmuggler.cs
- XmlKeywords.cs
- MimeTypePropertyAttribute.cs
- ThicknessKeyFrameCollection.cs
- GetWorkflowTree.cs
- basevalidator.cs
- TypedTableBaseExtensions.cs
- EditorZoneDesigner.cs
- HttpWebRequestElement.cs
- ToolStripContentPanelRenderEventArgs.cs
- UnsafeCollabNativeMethods.cs