Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.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
- InheritanceRules.cs
- GroupBoxAutomationPeer.cs
- Events.cs
- DesignerEventService.cs
- EventManager.cs
- ChangePasswordAutoFormat.cs
- RectangleF.cs
- WebPartMinimizeVerb.cs
- MailWebEventProvider.cs
- PeerApplication.cs
- ListManagerBindingsCollection.cs
- TextEvent.cs
- CellConstantDomain.cs
- WinFormsSpinner.cs
- IConvertible.cs
- hwndwrapper.cs
- ExtensionQuery.cs
- LocalBuilder.cs
- SoapHelper.cs
- HitTestParameters3D.cs
- AsymmetricSecurityProtocol.cs
- StoreItemCollection.cs
- CustomErrorCollection.cs
- FormViewDeleteEventArgs.cs
- UrlMappingCollection.cs
- CompiledRegexRunnerFactory.cs
- DbConnectionInternal.cs
- SecurityRuntime.cs
- sqlnorm.cs
- UmAlQuraCalendar.cs
- SingleSelectRootGridEntry.cs
- EmbeddedMailObject.cs
- DataGridViewColumnStateChangedEventArgs.cs
- HtmlTableCell.cs
- FileLogRecordEnumerator.cs
- SoapInteropTypes.cs
- NativeMethods.cs
- RoleGroupCollection.cs
- MenuItemAutomationPeer.cs
- UIElementParaClient.cs
- ResXBuildProvider.cs
- DoubleIndependentAnimationStorage.cs
- TraceSource.cs
- EasingKeyFrames.cs
- FontClient.cs
- KeyTimeConverter.cs
- CultureData.cs
- SelectQueryOperator.cs
- ConfigViewGenerator.cs
- MobileContainerDesigner.cs
- CanonicalizationDriver.cs
- XpsFont.cs
- RowVisual.cs
- EnglishPluralizationService.cs
- DatatypeImplementation.cs
- MarshalByRefObject.cs
- PresentationTraceSources.cs
- TogglePattern.cs
- LabelEditEvent.cs
- ProcessInfo.cs
- ConfigurationValues.cs
- CodeIndexerExpression.cs
- MaterialGroup.cs
- CannotUnloadAppDomainException.cs
- InvalidCastException.cs
- SBCSCodePageEncoding.cs
- XamlVector3DCollectionSerializer.cs
- DataGridViewCell.cs
- TextServicesProperty.cs
- XDeferredAxisSource.cs
- ZoomingMessageFilter.cs
- BitVector32.cs
- TableNameAttribute.cs
- StylusPoint.cs
- ConstraintEnumerator.cs
- NameTable.cs
- ClientClassGenerator.cs
- CheckoutException.cs
- PropertyPath.cs
- RotateTransform.cs
- PageRanges.cs
- AstNode.cs
- PageThemeParser.cs
- SchemaImporter.cs
- SimpleTextLine.cs
- ReferentialConstraint.cs
- IResourceProvider.cs
- OutOfProcStateClientManager.cs
- CompressionTransform.cs
- OrderedDictionary.cs
- Span.cs
- HybridDictionary.cs
- WindowsIPAddress.cs
- HitTestFilterBehavior.cs
- GifBitmapDecoder.cs
- ArrayElementGridEntry.cs
- KeyedQueue.cs
- WebScriptClientGenerator.cs
- HttpException.cs
- SecurityPolicySection.cs