Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / BaseCollection.cs / 1305376 / BaseCollection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Runtime.InteropServices; using System; using System.ComponentModel; using System.Collections; using ArrayList = System.Collections.ArrayList; ////// /// public class BaseCollection : MarshalByRefObject, ICollection { //================================================== // the ICollection methods //================================================== ///Provides the base functionality for creating collections. ////// /// [ Browsable(false), EditorBrowsable(EditorBrowsableState.Advanced) ] public virtual int Count { get { return List.Count; } } ///Gets the total number of elements in a collection. ////// /// public void CopyTo(Array ar, int index) { List.CopyTo(ar, index); } ///[To be supplied.] ////// /// public IEnumerator GetEnumerator() { return List.GetEnumerator(); } ///Gets an IEnumerator for the collection. ////// /// [ Browsable(false), EditorBrowsable(EditorBrowsableState.Advanced) ] public bool IsReadOnly { get { return false; } } ///[To be supplied.] ////// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Advanced)] public bool IsSynchronized { get { // so the user will know that it has to lock this object return false; } } ///[To be supplied.] ////// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Advanced)] public object SyncRoot { get { return this; } } ///[To be supplied.] ////// /// protected virtual ArrayList List { get { return null; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //[To be supplied.] ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Runtime.InteropServices; using System; using System.ComponentModel; using System.Collections; using ArrayList = System.Collections.ArrayList; ////// /// public class BaseCollection : MarshalByRefObject, ICollection { //================================================== // the ICollection methods //================================================== ///Provides the base functionality for creating collections. ////// /// [ Browsable(false), EditorBrowsable(EditorBrowsableState.Advanced) ] public virtual int Count { get { return List.Count; } } ///Gets the total number of elements in a collection. ////// /// public void CopyTo(Array ar, int index) { List.CopyTo(ar, index); } ///[To be supplied.] ////// /// public IEnumerator GetEnumerator() { return List.GetEnumerator(); } ///Gets an IEnumerator for the collection. ////// /// [ Browsable(false), EditorBrowsable(EditorBrowsableState.Advanced) ] public bool IsReadOnly { get { return false; } } ///[To be supplied.] ////// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Advanced)] public bool IsSynchronized { get { // so the user will know that it has to lock this object return false; } } ///[To be supplied.] ////// /// [Browsable(false), EditorBrowsable(EditorBrowsableState.Advanced)] public object SyncRoot { get { return this; } } ///[To be supplied.] ////// /// protected virtual ArrayList List { get { return null; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.[To be supplied.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextRenderer.cs
- AbstractSvcMapFileLoader.cs
- ObfuscationAttribute.cs
- IWorkflowDebuggerService.cs
- CellLabel.cs
- PointHitTestParameters.cs
- InstancePersistenceContext.cs
- RC2CryptoServiceProvider.cs
- CodeTypeReferenceCollection.cs
- MeasurementDCInfo.cs
- SelfIssuedAuthRSAPKCS1SignatureDeformatter.cs
- SendingRequestEventArgs.cs
- DataViewListener.cs
- BindingContext.cs
- ResourcePart.cs
- PersonalizationStateQuery.cs
- MappableObjectManager.cs
- MachineKeySection.cs
- CachedBitmap.cs
- QueryCreatedEventArgs.cs
- SharedPersonalizationStateInfo.cs
- PreloadedPackages.cs
- oledbconnectionstring.cs
- SHA1CryptoServiceProvider.cs
- ProfileSettingsCollection.cs
- DiscoveryDocumentReference.cs
- Fonts.cs
- M3DUtil.cs
- SoapMessage.cs
- NamespaceQuery.cs
- RangeBase.cs
- CompletionBookmark.cs
- GetMemberBinder.cs
- CharEnumerator.cs
- AggregateNode.cs
- PeerNameRecordCollection.cs
- PrintingPermission.cs
- DataBoundControl.cs
- ComContractElement.cs
- DateTimePickerDesigner.cs
- AccessDataSourceWizardForm.cs
- MediaSystem.cs
- DataObject.cs
- XmlSchemaGroup.cs
- HttpInputStream.cs
- ProfileProvider.cs
- TableDetailsCollection.cs
- InheritedPropertyChangedEventArgs.cs
- SID.cs
- DataFormats.cs
- WindowsFormsHelpers.cs
- CollectionViewSource.cs
- DbDeleteCommandTree.cs
- Publisher.cs
- SqlTypeConverter.cs
- SqlNotificationEventArgs.cs
- processwaithandle.cs
- RequestBringIntoViewEventArgs.cs
- MarkupWriter.cs
- ChannelSinkStacks.cs
- ToolStripMenuItem.cs
- NamedPermissionSet.cs
- ChangeDirector.cs
- SchemaImporterExtensionElementCollection.cs
- BuiltInPermissionSets.cs
- DataGridViewRowPrePaintEventArgs.cs
- InvokerUtil.cs
- AutomationFocusChangedEventArgs.cs
- TraceContextEventArgs.cs
- RoutedEvent.cs
- SqlFlattener.cs
- WebPartChrome.cs
- COM2FontConverter.cs
- DistributedTransactionPermission.cs
- RectangleGeometry.cs
- FilteredDataSetHelper.cs
- TypeGeneratedEventArgs.cs
- WindowsListViewItem.cs
- ElementHostAutomationPeer.cs
- EditorZone.cs
- BooleanExpr.cs
- SecureUICommand.cs
- CurrentChangedEventManager.cs
- ChainOfDependencies.cs
- mansign.cs
- CacheModeConverter.cs
- SuppressIldasmAttribute.cs
- PeerServiceMessageContracts.cs
- ElementFactory.cs
- AttributeCollection.cs
- ByteRangeDownloader.cs
- WebPartMinimizeVerb.cs
- SpellerInterop.cs
- ConfigurationPropertyCollection.cs
- Effect.cs
- COM2ExtendedUITypeEditor.cs
- Point.cs
- XmlAttributes.cs
- TypeDependencyAttribute.cs
- NetPipeSectionData.cs