Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- TabControlAutomationPeer.cs
- SplitterEvent.cs
- DBParameter.cs
- SerializationEventsCache.cs
- MarginCollapsingState.cs
- UnionExpr.cs
- PathGeometry.cs
- WindowsSlider.cs
- OdbcConnectionFactory.cs
- XslVisitor.cs
- IOException.cs
- UpdatableWrapper.cs
- RankException.cs
- TemplateInstanceAttribute.cs
- PersonalizationEntry.cs
- Trace.cs
- NameSpaceExtractor.cs
- BypassElementCollection.cs
- RunWorkerCompletedEventArgs.cs
- CodeMemberProperty.cs
- UInt16.cs
- MemberAccessException.cs
- InlinedAggregationOperator.cs
- CustomAttributeFormatException.cs
- FormatterServices.cs
- SelectingProviderEventArgs.cs
- SoapObjectInfo.cs
- TextProviderWrapper.cs
- Shared.cs
- DynamicValueConverter.cs
- ThreadAttributes.cs
- ActivationServices.cs
- ScopelessEnumAttribute.cs
- ExpressionConverter.cs
- EpmSyndicationContentSerializer.cs
- ChtmlLinkAdapter.cs
- MexServiceChannelBuilder.cs
- ConfigXmlElement.cs
- ObfuscationAttribute.cs
- QilInvokeLateBound.cs
- SmiEventSink.cs
- Range.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- PasswordBox.cs
- InternalRelationshipCollection.cs
- Knowncolors.cs
- DiagnosticTraceSource.cs
- SystemUnicastIPAddressInformation.cs
- Int64KeyFrameCollection.cs
- RemoteCryptoDecryptRequest.cs
- XmlNavigatorFilter.cs
- BookmarkCallbackWrapper.cs
- SystemDropShadowChrome.cs
- GatewayDefinition.cs
- BitmapEffectGeneralTransform.cs
- MimeObjectFactory.cs
- DataGridViewCellStateChangedEventArgs.cs
- SQLByteStorage.cs
- documentsequencetextcontainer.cs
- CellCreator.cs
- MiniMapControl.xaml.cs
- ConfigurationManager.cs
- InvalidWMPVersionException.cs
- SafeCertificateStore.cs
- DependencyPropertyHelper.cs
- ProcessHostFactoryHelper.cs
- XmlBinaryReaderSession.cs
- _ChunkParse.cs
- QilExpression.cs
- Interop.cs
- PropertyPathWorker.cs
- SoapIncludeAttribute.cs
- BorderGapMaskConverter.cs
- relpropertyhelper.cs
- TreeNode.cs
- CodeIdentifiers.cs
- WebPermission.cs
- OleDbConnectionInternal.cs
- StateDesignerConnector.cs
- Int16.cs
- XmlSchemaSimpleContentExtension.cs
- UiaCoreTypesApi.cs
- TextTrailingCharacterEllipsis.cs
- ClientConfigPaths.cs
- EventNotify.cs
- InstanceCompleteException.cs
- WMIGenerator.cs
- DynamicEntity.cs
- WebBrowserUriTypeConverter.cs
- TextAutomationPeer.cs
- ClientRolePrincipal.cs
- WebPartPersonalization.cs
- ConfigXmlText.cs
- ListControlBuilder.cs
- SendingRequestEventArgs.cs
- SendAgentStatusRequest.cs
- HttpListenerRequest.cs
- ErrorFormatter.cs
- FlowDocumentFormatter.cs
- XmlNode.cs