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
- AssemblyHash.cs
- XmlSchemaProviderAttribute.cs
- PersonalizationStateQuery.cs
- AppDomain.cs
- SessionStateUtil.cs
- DefaultWorkflowLoaderService.cs
- WebRequest.cs
- OdbcEnvironment.cs
- SqlProviderServices.cs
- ToolBarButton.cs
- ObjectMaterializedEventArgs.cs
- ModelTreeEnumerator.cs
- XmlSerializableWriter.cs
- SafeLocalMemHandle.cs
- SettingsBase.cs
- XamlHttpHandlerFactory.cs
- TransportSecurityProtocolFactory.cs
- EventWaitHandle.cs
- BroadcastEventHelper.cs
- TemplateBamlTreeBuilder.cs
- ETagAttribute.cs
- PathGeometry.cs
- ContentOperations.cs
- AsyncOperationManager.cs
- SerTrace.cs
- NativeMethods.cs
- TemplatedMailWebEventProvider.cs
- RegisteredHiddenField.cs
- QueryCorrelationInitializer.cs
- DataBoundControlParameterTarget.cs
- LoadRetryHandler.cs
- EditingCommands.cs
- InkSerializer.cs
- CryptoStream.cs
- CodeCommentStatement.cs
- DocumentReferenceCollection.cs
- FixedSOMTableCell.cs
- OutputCacheProviderCollection.cs
- LazyTextWriterCreator.cs
- ServicePointManager.cs
- HttpClientProtocol.cs
- RemotingException.cs
- CodeGeneratorOptions.cs
- DirectionalLight.cs
- XomlCompilerParameters.cs
- Int32AnimationUsingKeyFrames.cs
- MD5CryptoServiceProvider.cs
- HttpApplication.cs
- ResourceReader.cs
- StackSpiller.Bindings.cs
- ModelVisual3D.cs
- ConfigurationValue.cs
- DecimalFormatter.cs
- TemplateBindingExpressionConverter.cs
- DataGridViewDataErrorEventArgs.cs
- CacheSection.cs
- HttpChannelBindingToken.cs
- ArrayExtension.cs
- ProfileManager.cs
- Win32Native.cs
- FieldAccessException.cs
- DataSourceCollectionBase.cs
- SymbolEqualComparer.cs
- CollectionView.cs
- SharedPerformanceCounter.cs
- GroupedContextMenuStrip.cs
- ACE.cs
- CodeDOMUtility.cs
- ReadWriteSpinLock.cs
- EntityDataSourceStatementEditor.cs
- RayMeshGeometry3DHitTestResult.cs
- FixUp.cs
- DataRowComparer.cs
- diagnosticsswitches.cs
- WindowCollection.cs
- NumberAction.cs
- DecimalAnimation.cs
- WebEvents.cs
- EndpointAddressMessageFilter.cs
- SQLSingle.cs
- LocalizableResourceBuilder.cs
- IResourceProvider.cs
- LinkDescriptor.cs
- SystemDiagnosticsSection.cs
- OleDbParameterCollection.cs
- SectionRecord.cs
- PointKeyFrameCollection.cs
- Hex.cs
- QilLiteral.cs
- BamlBinaryReader.cs
- ResourcePool.cs
- ConnectionInterfaceCollection.cs
- ProfilePropertySettingsCollection.cs
- FactoryRecord.cs
- TrailingSpaceComparer.cs
- ResourceCategoryAttribute.cs
- RemotingException.cs
- HMACSHA1.cs
- GraphicsContainer.cs
- MemoryMappedView.cs