Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / BaseCollection.cs / 1 / 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
- EntityCommand.cs
- CorrelationTokenInvalidatedHandler.cs
- WorkflowTransactionOptions.cs
- PeerName.cs
- TextFormatter.cs
- DiagnosticTrace.cs
- ReaderWriterLockWrapper.cs
- HtmlMeta.cs
- _SafeNetHandles.cs
- XmlNodeChangedEventManager.cs
- FixedPosition.cs
- SqlBooleanizer.cs
- GridViewColumn.cs
- keycontainerpermission.cs
- XmlSchemaInclude.cs
- StyleCollection.cs
- DataAccessException.cs
- DESCryptoServiceProvider.cs
- ScrollProperties.cs
- MultiByteCodec.cs
- BooleanSwitch.cs
- GridViewSelectEventArgs.cs
- Identity.cs
- RecognizedWordUnit.cs
- COMException.cs
- SqlCachedBuffer.cs
- XmlCharacterData.cs
- MemoryResponseElement.cs
- ImageAnimator.cs
- ResolveMatchesMessage11.cs
- WindowsIPAddress.cs
- DesignerAttribute.cs
- ZoneMembershipCondition.cs
- SamlAdvice.cs
- DBSqlParserTable.cs
- EventDescriptor.cs
- CommandSet.cs
- NTAccount.cs
- LexicalChunk.cs
- ContextMenu.cs
- OdbcConnectionStringbuilder.cs
- FontStyleConverter.cs
- SectionUpdates.cs
- DbConnectionInternal.cs
- _SafeNetHandles.cs
- ResourceReferenceExpressionConverter.cs
- DynamicObject.cs
- ScriptModule.cs
- SelectionItemProviderWrapper.cs
- CopyOfAction.cs
- DictionaryCustomTypeDescriptor.cs
- ByteAnimationBase.cs
- SafeProcessHandle.cs
- ComponentEditorPage.cs
- BindingValueChangedEventArgs.cs
- ColumnHeader.cs
- XmlValidatingReader.cs
- _DisconnectOverlappedAsyncResult.cs
- ToolStripItemEventArgs.cs
- EntityTransaction.cs
- PenCursorManager.cs
- BitSet.cs
- PasswordDeriveBytes.cs
- CqlLexerHelpers.cs
- NoPersistProperty.cs
- DocumentsTrace.cs
- SearchForVirtualItemEventArgs.cs
- UserControl.cs
- XslCompiledTransform.cs
- QilDataSource.cs
- DetailsViewModeEventArgs.cs
- InvalidComObjectException.cs
- VectorAnimationBase.cs
- SqlDeflator.cs
- FileSecurity.cs
- Token.cs
- CompilerInfo.cs
- PointAnimationBase.cs
- TrustLevel.cs
- InstrumentationTracker.cs
- BindingListCollectionView.cs
- HorizontalAlignConverter.cs
- SoundPlayer.cs
- EmptyElement.cs
- TimeSpanConverter.cs
- ToolStripDropDownClosingEventArgs.cs
- AlignmentXValidation.cs
- TextBoxBase.cs
- MdiWindowListStrip.cs
- AssemblyBuilder.cs
- SafeHandles.cs
- EventsTab.cs
- InstanceDataCollection.cs
- localization.cs
- Storyboard.cs
- ToolStripRendererSwitcher.cs
- ToolStripDropDownButton.cs
- ProtectedProviderSettings.cs
- BamlReader.cs
- MarshalByRefObject.cs