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
- FilteredDataSetHelper.cs
- Compiler.cs
- FreezableDefaultValueFactory.cs
- OpCodes.cs
- sqlmetadatafactory.cs
- UnorderedHashRepartitionStream.cs
- FlowLayout.cs
- KeyProperty.cs
- TypeLoadException.cs
- AutomationEventArgs.cs
- CompilationRelaxations.cs
- CompositeCollection.cs
- QueryCursorEventArgs.cs
- ListViewInsertionMark.cs
- DoubleLink.cs
- TemplateXamlTreeBuilder.cs
- OverflowException.cs
- BamlTreeMap.cs
- OuterGlowBitmapEffect.cs
- DBSchemaTable.cs
- GetPageNumberCompletedEventArgs.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ComponentCommands.cs
- BooleanFunctions.cs
- WithParamAction.cs
- AnnotationAuthorChangedEventArgs.cs
- DataQuery.cs
- SizeLimitedCache.cs
- AbstractExpressions.cs
- XPathPatternBuilder.cs
- Image.cs
- Transactions.cs
- ResXResourceReader.cs
- DockingAttribute.cs
- StringFreezingAttribute.cs
- DesignerTextWriter.cs
- ListViewItem.cs
- ValidationErrorEventArgs.cs
- ListBindingHelper.cs
- StringDictionary.cs
- SemaphoreSlim.cs
- RowUpdatedEventArgs.cs
- KeyValuePairs.cs
- SaveFileDialog.cs
- SocketPermission.cs
- DataMemberListEditor.cs
- ObjectComplexPropertyMapping.cs
- CollectionChange.cs
- EventTrigger.cs
- MD5CryptoServiceProvider.cs
- MergeEnumerator.cs
- SHA1Cng.cs
- WebPartMenu.cs
- UserControlDocumentDesigner.cs
- MessageHeaders.cs
- SoapEnumAttribute.cs
- IntegerCollectionEditor.cs
- ImageIndexEditor.cs
- DeferredTextReference.cs
- InfoCardKeyedHashAlgorithm.cs
- TableCellCollection.cs
- ToolboxItem.cs
- IntegerFacetDescriptionElement.cs
- OracleTransaction.cs
- RemotingConfiguration.cs
- PropertyValueChangedEvent.cs
- UnsafeNativeMethods.cs
- LogLogRecord.cs
- X509CertificateInitiatorServiceCredential.cs
- InputGestureCollection.cs
- ScrollViewer.cs
- QilPatternFactory.cs
- WebBrowserNavigatingEventHandler.cs
- DesignSurfaceServiceContainer.cs
- PieceNameHelper.cs
- MemberHolder.cs
- TemplateParser.cs
- TextPatternIdentifiers.cs
- CurrentChangedEventManager.cs
- RawStylusInputCustomDataList.cs
- TranslateTransform3D.cs
- AnnotationAuthorChangedEventArgs.cs
- CurrentChangingEventManager.cs
- SmtpNegotiateAuthenticationModule.cs
- Control.cs
- WindowsListViewSubItem.cs
- CustomValidator.cs
- UniqueIdentifierService.cs
- iisPickupDirectory.cs
- SecurityHelper.cs
- BeginEvent.cs
- ListView.cs
- WebHttpBinding.cs
- Attributes.cs
- OrCondition.cs
- RuntimeEnvironment.cs
- ExpressionNode.cs
- SplitterPanel.cs
- TabControlCancelEvent.cs
- DataStreams.cs