Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- PrivilegedConfigurationManager.cs
- MasterPage.cs
- WindowsFormsSynchronizationContext.cs
- ToolStripDropDownButton.cs
- KeyedQueue.cs
- ExceptionUtil.cs
- AttributeCollection.cs
- QueryContinueDragEventArgs.cs
- IfJoinedCondition.cs
- EventMappingSettings.cs
- ToolStripItemDesigner.cs
- PolicyStatement.cs
- DrawingBrush.cs
- TraceSwitch.cs
- DummyDataSource.cs
- Transform3D.cs
- CodeDomSerializerException.cs
- MembershipValidatePasswordEventArgs.cs
- LongValidator.cs
- WebUtil.cs
- webeventbuffer.cs
- ControlTemplate.cs
- MessageLogger.cs
- ProjectionNode.cs
- ImageButton.cs
- Assembly.cs
- FormatConvertedBitmap.cs
- ArglessEventHandlerProxy.cs
- ApplicationServiceManager.cs
- DependencyPropertyKind.cs
- SafeThemeHandle.cs
- ExpandCollapseProviderWrapper.cs
- WindowsContainer.cs
- OdbcCommand.cs
- InputProcessorProfiles.cs
- NameValueFileSectionHandler.cs
- RightsManagementEncryptedStream.cs
- TreeViewTemplateSelector.cs
- ParallelLoopState.cs
- RelationshipDetailsRow.cs
- ClientFormsAuthenticationMembershipProvider.cs
- PublisherMembershipCondition.cs
- RequestNavigateEventArgs.cs
- IItemProperties.cs
- RSAPKCS1SignatureFormatter.cs
- QilParameter.cs
- MissingMethodException.cs
- COM2ExtendedTypeConverter.cs
- ViewRendering.cs
- ButtonBase.cs
- CssTextWriter.cs
- SoapMessage.cs
- EntityDataSourceContainerNameItem.cs
- SiteIdentityPermission.cs
- EntityWithKeyStrategy.cs
- AspCompat.cs
- DataGridViewCellMouseEventArgs.cs
- AlphabetConverter.cs
- ObjectAssociationEndMapping.cs
- WebDisplayNameAttribute.cs
- HttpCookieCollection.cs
- InheritanceAttribute.cs
- MostlySingletonList.cs
- TcpProcessProtocolHandler.cs
- HitTestWithGeometryDrawingContextWalker.cs
- TransformProviderWrapper.cs
- EntityParameter.cs
- MessageBox.cs
- ApplicationDirectoryMembershipCondition.cs
- PropertyInfoSet.cs
- UrlPath.cs
- FilterableAttribute.cs
- PointF.cs
- RegistrationServices.cs
- DependencyPropertyHelper.cs
- AuthenticateEventArgs.cs
- AppDomainAttributes.cs
- KnownTypesHelper.cs
- ZipIOExtraFieldZip64Element.cs
- Int32EqualityComparer.cs
- AppModelKnownContentFactory.cs
- PointAnimationUsingPath.cs
- ActivityXRefConverter.cs
- StandardBindingOptionalReliableSessionElement.cs
- ChannelTracker.cs
- InlineUIContainer.cs
- XmlBinaryReaderSession.cs
- DependencyPropertyKey.cs
- VScrollBar.cs
- StylusDownEventArgs.cs
- InternalConfigEventArgs.cs
- RightsManagementInformation.cs
- InputProcessorProfilesLoader.cs
- XmlSerializableWriter.cs
- AnnotationAdorner.cs
- SignedXmlDebugLog.cs
- QueryUtil.cs
- ExpressionBinding.cs
- DataFormat.cs
- ListControlDesigner.cs