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
- FamilyTypeface.cs
- DBProviderConfigurationHandler.cs
- ErrorLog.cs
- EventPropertyMap.cs
- PersistNameAttribute.cs
- AsymmetricKeyExchangeDeformatter.cs
- NetworkInformationPermission.cs
- AsyncOperationManager.cs
- BaseResourcesBuildProvider.cs
- ObjectKeyFrameCollection.cs
- SynchronizedDispatch.cs
- FixedHyperLink.cs
- SchemaTableOptionalColumn.cs
- StyleReferenceConverter.cs
- CharConverter.cs
- MemoryFailPoint.cs
- Primitive.cs
- listitem.cs
- CatalogZoneBase.cs
- HttpRuntimeSection.cs
- Matrix3DConverter.cs
- DataTableReaderListener.cs
- __Filters.cs
- Normalization.cs
- SqlDataSourceStatusEventArgs.cs
- ControlBuilder.cs
- x509store.cs
- SchemaSetCompiler.cs
- Options.cs
- ErrorsHelper.cs
- EditorAttributeInfo.cs
- connectionpool.cs
- CharKeyFrameCollection.cs
- ManagedIStream.cs
- LocalClientSecuritySettingsElement.cs
- PluralizationService.cs
- WindowsScroll.cs
- SoapServerMethod.cs
- SqlTypeSystemProvider.cs
- DataGridViewElement.cs
- ProfileInfo.cs
- OneWayElement.cs
- XamlTreeBuilder.cs
- ProfilePropertyNameValidator.cs
- SapiGrammar.cs
- SqlBuilder.cs
- ActiveXHelper.cs
- TableParaClient.cs
- FilterableAttribute.cs
- InstallerTypeAttribute.cs
- ColorInterpolationModeValidation.cs
- InProcStateClientManager.cs
- GeneratedView.cs
- EdmRelationshipRoleAttribute.cs
- RawStylusInputCustomDataList.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ListViewUpdatedEventArgs.cs
- ThreadPool.cs
- BoolExpressionVisitors.cs
- MenuTracker.cs
- StoreItemCollection.Loader.cs
- ImageUrlEditor.cs
- SecurityKeyIdentifier.cs
- BuildResultCache.cs
- IxmlLineInfo.cs
- TdsValueSetter.cs
- ButtonStandardAdapter.cs
- PartManifestEntry.cs
- DbCommandDefinition.cs
- QueryContinueDragEvent.cs
- ManagedWndProcTracker.cs
- XamlReader.cs
- SynchronizationFilter.cs
- LogEntry.cs
- SevenBitStream.cs
- Pair.cs
- OracleDateTime.cs
- TreeViewBindingsEditorForm.cs
- CachedFontFamily.cs
- CapabilitiesRule.cs
- Cursors.cs
- CodeDomDesignerLoader.cs
- UnmanagedMemoryStream.cs
- LabelInfo.cs
- OneOfConst.cs
- XmlTextEncoder.cs
- TextSelectionProcessor.cs
- HttpWebRequest.cs
- DbBuffer.cs
- WebPartEditorCancelVerb.cs
- PrePrepareMethodAttribute.cs
- ProcessProtocolHandler.cs
- Internal.cs
- HandlerWithFactory.cs
- RtType.cs
- FileLogRecordEnumerator.cs
- BindingsCollection.cs
- Hex.cs
- DataTableTypeConverter.cs
- SynchronizationValidator.cs