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
- Transform3DGroup.cs
- Int32Rect.cs
- TrackingProfileCache.cs
- DecimalAnimationBase.cs
- Cloud.cs
- BeginEvent.cs
- FormClosingEvent.cs
- UnaryNode.cs
- GetMemberBinder.cs
- SQlBooleanStorage.cs
- VisualStyleInformation.cs
- ChannelManager.cs
- RectangleGeometry.cs
- SqlCacheDependencyDatabase.cs
- WebSysDisplayNameAttribute.cs
- DecimalStorage.cs
- OleDbConnectionFactory.cs
- OdbcReferenceCollection.cs
- EditingCommands.cs
- WebBrowserHelper.cs
- ProxyAttribute.cs
- ResourcesGenerator.cs
- SizeChangedEventArgs.cs
- CustomAttributeFormatException.cs
- CodeRegionDirective.cs
- ConfigDefinitionUpdates.cs
- WindowsListViewScroll.cs
- Stacktrace.cs
- _ListenerRequestStream.cs
- DataStorage.cs
- GlobalizationSection.cs
- ScriptIgnoreAttribute.cs
- ProtectedConfigurationSection.cs
- ReadWriteObjectLock.cs
- MetadataItem_Static.cs
- OdbcDataAdapter.cs
- ArrayElementGridEntry.cs
- ToolStripContentPanelDesigner.cs
- DataContractSerializerOperationFormatter.cs
- SqlDataSource.cs
- CatalogPartChrome.cs
- XPathDocumentNavigator.cs
- GenericUriParser.cs
- MultilineStringConverter.cs
- RegexGroupCollection.cs
- TextServicesDisplayAttributePropertyRanges.cs
- BindingNavigator.cs
- TemplatedMailWebEventProvider.cs
- DataExpression.cs
- CheckBoxList.cs
- SponsorHelper.cs
- MethodCallTranslator.cs
- XmlIterators.cs
- XmlSchemaSimpleTypeUnion.cs
- ResizeGrip.cs
- SynchronizedMessageSource.cs
- BaseCAMarshaler.cs
- PropertyReference.cs
- DataShape.cs
- XmlResolver.cs
- ListItemCollection.cs
- CustomTrackingRecord.cs
- ImageKeyConverter.cs
- HtmlTernaryTree.cs
- DataGridViewBand.cs
- _TimerThread.cs
- CodeEntryPointMethod.cs
- MenuCommands.cs
- PropertyDescriptors.cs
- MemberDomainMap.cs
- OleDbCommand.cs
- TraceContextEventArgs.cs
- GACMembershipCondition.cs
- GridViewRow.cs
- JapaneseLunisolarCalendar.cs
- IndexerReference.cs
- ConditionalAttribute.cs
- XmlDeclaration.cs
- FlowNode.cs
- ObjectItemAssemblyLoader.cs
- Constants.cs
- StubHelpers.cs
- BindingNavigator.cs
- OracleBFile.cs
- FatalException.cs
- EntityDataSourceDesignerHelper.cs
- SQLConvert.cs
- VarRefManager.cs
- Main.cs
- FrameworkReadOnlyPropertyMetadata.cs
- FileChangesMonitor.cs
- LayoutInformation.cs
- StylusSystemGestureEventArgs.cs
- Int32Storage.cs
- HttpResponseWrapper.cs
- DataColumnSelectionConverter.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- SystemDiagnosticsSection.cs
- XPathEmptyIterator.cs
- HttpStreamMessage.cs