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
- KeyFrames.cs
- Formatter.cs
- MenuCommands.cs
- UInt64.cs
- CheckedListBox.cs
- WebPartUtil.cs
- ContentHostHelper.cs
- CssClassPropertyAttribute.cs
- PeerNameRecord.cs
- OdbcConnectionStringbuilder.cs
- SafeLibraryHandle.cs
- RemotingConfiguration.cs
- IDReferencePropertyAttribute.cs
- ErrorEventArgs.cs
- InternalTransaction.cs
- DateTimeValueSerializerContext.cs
- WebPartVerbCollection.cs
- XmlDownloadManager.cs
- DetailsViewRow.cs
- ProviderBase.cs
- ProtectedConfigurationSection.cs
- MouseGestureValueSerializer.cs
- TreeView.cs
- GlobalizationSection.cs
- TypeConverterAttribute.cs
- ContentElement.cs
- FactoryGenerator.cs
- CustomGrammar.cs
- BitmapSource.cs
- Activity.cs
- ServiceMemoryGates.cs
- ISO2022Encoding.cs
- SelectionRange.cs
- SessionStateUtil.cs
- DispatcherEventArgs.cs
- EDesignUtil.cs
- AssertHelper.cs
- SystemIPGlobalStatistics.cs
- AbsoluteQuery.cs
- TypefaceMetricsCache.cs
- SqlBuilder.cs
- MutexSecurity.cs
- IList.cs
- CounterSampleCalculator.cs
- TableProviderWrapper.cs
- CodeDomSerializationProvider.cs
- SubMenuStyleCollection.cs
- MouseButton.cs
- FileLogRecordEnumerator.cs
- UInt64.cs
- unsafenativemethodstextservices.cs
- BehaviorEditorPart.cs
- StringCollection.cs
- MsmqPoisonMessageException.cs
- CqlLexer.cs
- DesignerLoader.cs
- processwaithandle.cs
- CommandSet.cs
- CommandEventArgs.cs
- ResXResourceSet.cs
- GridProviderWrapper.cs
- SparseMemoryStream.cs
- AssemblyFilter.cs
- TypeDefinition.cs
- Transform3D.cs
- DataControlField.cs
- ConfigurationSection.cs
- DataGridLinkButton.cs
- NamespaceQuery.cs
- WebPartZone.cs
- ComNativeDescriptor.cs
- WebPartAuthorizationEventArgs.cs
- WebSysDefaultValueAttribute.cs
- DataBindingExpressionBuilder.cs
- ActiveXSite.cs
- PropertyMap.cs
- RegexFCD.cs
- PointHitTestParameters.cs
- panel.cs
- WebPartDisplayMode.cs
- ObjectKeyFrameCollection.cs
- XmlTextAttribute.cs
- SqlEnums.cs
- _NTAuthentication.cs
- EventProxy.cs
- IProvider.cs
- WebHeaderCollection.cs
- DataServiceStreamProviderWrapper.cs
- ScrollBarAutomationPeer.cs
- ComponentEvent.cs
- ConsoleKeyInfo.cs
- TextRenderer.cs
- DataGridViewRowPrePaintEventArgs.cs
- ListViewCommandEventArgs.cs
- Configuration.cs
- MethodBody.cs
- EncryptedKeyIdentifierClause.cs
- ConfigsHelper.cs
- CachingHintValidation.cs
- ListBox.cs