Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / WebControls / DetailsViewRowCollection.cs / 1 / DetailsViewRowCollection.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)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class DetailsViewRowCollection : ICollection { private ArrayList _rows; ///Represents the collection of ///objects. /// public DetailsViewRowCollection(ArrayList rows) { this._rows = rows; } ///Initializes a new instance of the ///class. /// public int Count { get { return _rows.Count; } } ///Gets the number of rows in the collection. This property is read-only. ////// public bool IsReadOnly { get { return false; } } ///Gets a value that specifies whether rows in the ///can be /// modified. This property is read-only. /// public bool IsSynchronized { get { return false; } } ///Gets a value that indicates whether the ///is /// thread-safe. This property is read-only. /// public object SyncRoot { get { return this; } } ///Gets the object used to synchronize access to the collection. This property is read-only. ////// public DetailsViewRow this[int index] { get { return(DetailsViewRow)_rows[index]; } } ///Gets a ///at the specified index in the /// collection. /// public void CopyTo(DetailsViewRow[] array, int index) { ((ICollection)this).CopyTo(array, index); } ///Copies the contents of the entire collection into an ///appending /// at the specified index of the . void ICollection.CopyTo(Array array, int index) { for (IEnumerator e = this.GetEnumerator(); e.MoveNext();) array.SetValue(e.Current, index++); } /// /// public IEnumerator GetEnumerator() { return _rows.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)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class DetailsViewRowCollection : ICollection { private ArrayList _rows; ///Represents the collection of ///objects. /// public DetailsViewRowCollection(ArrayList rows) { this._rows = rows; } ///Initializes a new instance of the ///class. /// public int Count { get { return _rows.Count; } } ///Gets the number of rows in the collection. This property is read-only. ////// public bool IsReadOnly { get { return false; } } ///Gets a value that specifies whether rows in the ///can be /// modified. This property is read-only. /// public bool IsSynchronized { get { return false; } } ///Gets a value that indicates whether the ///is /// thread-safe. This property is read-only. /// public object SyncRoot { get { return this; } } ///Gets the object used to synchronize access to the collection. This property is read-only. ////// public DetailsViewRow this[int index] { get { return(DetailsViewRow)_rows[index]; } } ///Gets a ///at the specified index in the /// collection. /// public void CopyTo(DetailsViewRow[] array, int index) { ((ICollection)this).CopyTo(array, index); } ///Copies the contents of the entire collection into an ///appending /// at the specified index of the . void ICollection.CopyTo(Array array, int index) { for (IEnumerator e = this.GetEnumerator(); e.MoveNext();) array.SetValue(e.Current, index++); } /// /// public IEnumerator GetEnumerator() { return _rows.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
- SqlClientMetaDataCollectionNames.cs
- AncestorChangedEventArgs.cs
- PersonalizationStateQuery.cs
- StrongNameKeyPair.cs
- OutputCacheSettings.cs
- BrowsableAttribute.cs
- LayoutEngine.cs
- BooleanStorage.cs
- COMException.cs
- Aggregates.cs
- BulletedList.cs
- LingerOption.cs
- PropertyPath.cs
- AxisAngleRotation3D.cs
- DataServiceContext.cs
- AutomationProperties.cs
- ResourceAttributes.cs
- PermissionSetEnumerator.cs
- ProxyWebPart.cs
- MappingItemCollection.cs
- TextDecorationCollectionConverter.cs
- DecimalAnimation.cs
- ZipIOLocalFileDataDescriptor.cs
- DictionaryItemsCollection.cs
- HashSetDebugView.cs
- RoleServiceManager.cs
- EntityWrapperFactory.cs
- HttpModulesSection.cs
- HwndSubclass.cs
- EdmTypeAttribute.cs
- CodeIterationStatement.cs
- MenuItemAutomationPeer.cs
- RectangleGeometry.cs
- ImageAutomationPeer.cs
- EntitySqlQueryCacheKey.cs
- ContentDisposition.cs
- RichTextBox.cs
- ExecutionContext.cs
- KeyedHashAlgorithm.cs
- NegationPusher.cs
- DataSysAttribute.cs
- AssemblyAttributes.cs
- RelatedEnd.cs
- HtmlTableCellCollection.cs
- ScaleTransform3D.cs
- Transform3DCollection.cs
- PropertyPath.cs
- X509Chain.cs
- NativeRecognizer.cs
- EntityViewContainer.cs
- Vector3DAnimation.cs
- OdbcCommandBuilder.cs
- InputLanguageEventArgs.cs
- TemplateControlParser.cs
- GlobalAllocSafeHandle.cs
- arclist.cs
- RandomNumberGenerator.cs
- Label.cs
- XPathDocumentNavigator.cs
- ILGenerator.cs
- DataGridViewRowConverter.cs
- DependencyPropertyAttribute.cs
- LineServices.cs
- AnnotationAdorner.cs
- GroupBoxRenderer.cs
- UrlAuthorizationModule.cs
- Tuple.cs
- DocumentSequence.cs
- ToolStripContainer.cs
- IisTraceListener.cs
- FormatVersion.cs
- ProcessProtocolHandler.cs
- DataGridCellInfo.cs
- _BaseOverlappedAsyncResult.cs
- CheckPair.cs
- DataGridViewComboBoxEditingControl.cs
- OperationGenerator.cs
- CapabilitiesUse.cs
- XPathNodeList.cs
- EventManager.cs
- webeventbuffer.cs
- UnsignedPublishLicense.cs
- SystemThemeKey.cs
- DataTableTypeConverter.cs
- StringFreezingAttribute.cs
- MatrixTransform3D.cs
- ScriptDescriptor.cs
- TextRangeEditLists.cs
- ResourcePart.cs
- WebPartHeaderCloseVerb.cs
- TextServicesManager.cs
- Int32AnimationUsingKeyFrames.cs
- FlagsAttribute.cs
- ConfigurationSection.cs
- ResourcePool.cs
- WindowsSolidBrush.cs
- ProxyWebPartConnectionCollection.cs
- MailMessageEventArgs.cs
- CertificateReferenceElement.cs
- AttributeQuery.cs