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
- Int32RectConverter.cs
- SystemResourceKey.cs
- ObjectStateManagerMetadata.cs
- PanelDesigner.cs
- TimeSpan.cs
- RoleManagerEventArgs.cs
- EpmCustomContentSerializer.cs
- GeometryDrawing.cs
- XPathSelectionIterator.cs
- ToolTip.cs
- BitmapEffectDrawing.cs
- EntityCollectionChangedParams.cs
- ZipArchive.cs
- TextOnlyOutput.cs
- DockEditor.cs
- NumericPagerField.cs
- HtmlTableRowCollection.cs
- UniqueEventHelper.cs
- XmlSchemaValidator.cs
- BrowserDefinitionCollection.cs
- SecurityMode.cs
- HttpCapabilitiesEvaluator.cs
- SymmetricAlgorithm.cs
- HttpMethodAttribute.cs
- ADMembershipUser.cs
- DataGridViewCellStyleChangedEventArgs.cs
- XmlComment.cs
- ListView.cs
- DetailsViewRowCollection.cs
- DiffuseMaterial.cs
- SendMailErrorEventArgs.cs
- Registry.cs
- InternalTypeHelper.cs
- QuadraticBezierSegment.cs
- NumericPagerField.cs
- Grid.cs
- ConditionCollection.cs
- OdbcEnvironment.cs
- SendActivityDesignerTheme.cs
- DrawingContextWalker.cs
- SevenBitStream.cs
- XPathScanner.cs
- DefaultValueConverter.cs
- MeasureData.cs
- XmlWriterDelegator.cs
- XmlSerializerVersionAttribute.cs
- Rule.cs
- LZCodec.cs
- MaskedTextBoxTextEditorDropDown.cs
- NativeMethods.cs
- EntityParameterCollection.cs
- TemplateFactory.cs
- AsyncWaitHandle.cs
- CodePageUtils.cs
- QilExpression.cs
- LogEntryUtils.cs
- TextTreeText.cs
- COM2ExtendedTypeConverter.cs
- ParseHttpDate.cs
- SettingsAttributeDictionary.cs
- ServiceNameElementCollection.cs
- CachedFontFace.cs
- FlowDocumentFormatter.cs
- XmlILOptimizerVisitor.cs
- XmlSchemaFacet.cs
- CommandBindingCollection.cs
- DiscoveryDocumentSearchPattern.cs
- ResourceReferenceExpression.cs
- RegexRunner.cs
- Subset.cs
- CodeBlockBuilder.cs
- PropertyValueEditor.cs
- DPAPIProtectedConfigurationProvider.cs
- ResourceDictionaryCollection.cs
- NetWebProxyFinder.cs
- _DisconnectOverlappedAsyncResult.cs
- NamespaceDecl.cs
- Timeline.cs
- StringConverter.cs
- CustomErrorsSectionWrapper.cs
- ChangeBlockUndoRecord.cs
- OdbcDataAdapter.cs
- RenamedEventArgs.cs
- DataGridRowEventArgs.cs
- WsatStrings.cs
- FixedLineResult.cs
- WebServiceEnumData.cs
- ScaleTransform3D.cs
- MetafileHeader.cs
- ForwardPositionQuery.cs
- CounterNameConverter.cs
- MarshalByRefObject.cs
- CodeIndexerExpression.cs
- SchemaMapping.cs
- MemoryStream.cs
- PartialCachingAttribute.cs
- DummyDataSource.cs
- ExportOptions.cs
- TimeoutException.cs
- EntityUtil.cs