Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. //------------------------------------------------------------------------------ //Creates an enumerator for the ///used to iterate /// through the collection. // 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.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
- SparseMemoryStream.cs
- RootBrowserWindow.cs
- TypeBuilderInstantiation.cs
- PerformanceCounterCategory.cs
- LinkedResourceCollection.cs
- Attributes.cs
- UserPreferenceChangedEventArgs.cs
- MsmqReceiveParameters.cs
- MissingFieldException.cs
- Tokenizer.cs
- X509CertificateStore.cs
- BamlLocalizabilityResolver.cs
- TypedReference.cs
- Vector3dCollection.cs
- StaticSiteMapProvider.cs
- HtmlHead.cs
- PrintControllerWithStatusDialog.cs
- oledbconnectionstring.cs
- ProxyElement.cs
- HttpListener.cs
- ScrollItemPattern.cs
- DataGridViewRowStateChangedEventArgs.cs
- RelationshipEnd.cs
- FontDriver.cs
- BaseDataListPage.cs
- AmbientLight.cs
- Point3D.cs
- ModelService.cs
- HttpApplicationFactory.cs
- ColorTranslator.cs
- ByteConverter.cs
- HybridWebProxyFinder.cs
- DocumentXmlWriter.cs
- DataGridViewLayoutData.cs
- SQLDateTimeStorage.cs
- ConfigurationPropertyAttribute.cs
- XmlSerializerSection.cs
- IdentityHolder.cs
- ContextStaticAttribute.cs
- InOutArgument.cs
- FontDialog.cs
- CodeEntryPointMethod.cs
- QilLiteral.cs
- Operators.cs
- TerminatorSinks.cs
- FileDialog_Vista.cs
- ObjectManager.cs
- DragAssistanceManager.cs
- base64Transforms.cs
- ButtonBase.cs
- messageonlyhwndwrapper.cs
- Currency.cs
- ObjectQuery_EntitySqlExtensions.cs
- dbenumerator.cs
- PersonalizationAdministration.cs
- AssemblyAttributesGoHere.cs
- Object.cs
- CFStream.cs
- CodeMemberMethod.cs
- ClientSettings.cs
- QueryOutputWriter.cs
- TextPointer.cs
- TableTextElementCollectionInternal.cs
- ControlValuePropertyAttribute.cs
- DmlSqlGenerator.cs
- SimpleType.cs
- RoutedEvent.cs
- SiteMembershipCondition.cs
- MethodCallTranslator.cs
- TimeoutValidationAttribute.cs
- JpegBitmapEncoder.cs
- FlowPosition.cs
- NetDispatcherFaultException.cs
- ConnectorMovedEventArgs.cs
- TextFindEngine.cs
- QilFunction.cs
- ModelTreeEnumerator.cs
- LocalIdCollection.cs
- DatasetMethodGenerator.cs
- NativeObjectSecurity.cs
- DataSvcMapFileSerializer.cs
- HMACSHA1.cs
- ImageAutomationPeer.cs
- Faults.cs
- VariableQuery.cs
- ResourceIDHelper.cs
- XMLSchema.cs
- ProgressBarRenderer.cs
- RemoteWebConfigurationHost.cs
- ComponentTray.cs
- InsufficientMemoryException.cs
- _BaseOverlappedAsyncResult.cs
- TextParagraphProperties.cs
- LogicalExpr.cs
- CollectionConverter.cs
- CollectionAdapters.cs
- ModelItemExtensions.cs
- DummyDataSource.cs
- CodeMemberField.cs
- XdrBuilder.cs