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
- BinaryExpressionHelper.cs
- TextEditorSelection.cs
- FolderBrowserDialog.cs
- TypeDescriptorContext.cs
- Lease.cs
- MemberNameValidator.cs
- ExtendedProtectionPolicy.cs
- CodeAccessSecurityEngine.cs
- StringFormat.cs
- SafeNativeMethods.cs
- SystemTcpStatistics.cs
- complextypematerializer.cs
- StoreUtilities.cs
- EndEvent.cs
- DispatcherHooks.cs
- LoginName.cs
- ListViewUpdatedEventArgs.cs
- ChangeDirector.cs
- ContractMapping.cs
- RayMeshGeometry3DHitTestResult.cs
- EntityCommandCompilationException.cs
- DynamicPropertyHolder.cs
- AuthorizationContext.cs
- XmlWellformedWriter.cs
- InlinedAggregationOperatorEnumerator.cs
- CodeTypeParameterCollection.cs
- NumberFunctions.cs
- IntersectQueryOperator.cs
- DataControlFieldCell.cs
- XmlEnumAttribute.cs
- StylusPlugInCollection.cs
- BrushConverter.cs
- SettingsBindableAttribute.cs
- _NegoStream.cs
- PEFileEvidenceFactory.cs
- ScriptControlManager.cs
- VersionValidator.cs
- AnnouncementSendsAsyncResult.cs
- SoapIncludeAttribute.cs
- TreeNodeClickEventArgs.cs
- PolyLineSegmentFigureLogic.cs
- TreeBuilder.cs
- EventRoute.cs
- Set.cs
- ContentType.cs
- CompiledIdentityConstraint.cs
- TabControl.cs
- BinaryFormatterWriter.cs
- WindowsScrollBar.cs
- DecimalMinMaxAggregationOperator.cs
- AutomationEventArgs.cs
- SmiConnection.cs
- StylusDevice.cs
- TypeBrowser.xaml.cs
- PolyBezierSegment.cs
- MULTI_QI.cs
- Padding.cs
- SerializationBinder.cs
- PropertyMetadata.cs
- HtmlControl.cs
- EntitySqlQueryState.cs
- ExpressionWriter.cs
- connectionpool.cs
- PerformanceCounterPermissionEntryCollection.cs
- __Filters.cs
- NotFiniteNumberException.cs
- ExtractorMetadata.cs
- UnhandledExceptionEventArgs.cs
- PasswordTextContainer.cs
- WindowVisualStateTracker.cs
- ValidationResult.cs
- SmtpDigestAuthenticationModule.cs
- WinEventWrap.cs
- StyleCollection.cs
- BindingValueChangedEventArgs.cs
- Classification.cs
- SqlFunctionAttribute.cs
- UnsafeNativeMethods.cs
- WebBrowser.cs
- NonParentingControl.cs
- SspiSafeHandles.cs
- TemplateKeyConverter.cs
- FileUpload.cs
- TableItemPatternIdentifiers.cs
- ListManagerBindingsCollection.cs
- BufferedGraphicsManager.cs
- RootAction.cs
- PropertyPath.cs
- FlowPanelDesigner.cs
- SubpageParaClient.cs
- InputMethodStateChangeEventArgs.cs
- BitmapEffectInputData.cs
- AssemblyAttributes.cs
- ThreadStateException.cs
- Int16Storage.cs
- PerformanceCounterPermissionEntry.cs
- ValueExpressions.cs
- WindowsHyperlink.cs
- GPRECT.cs
- KeyValuePairs.cs