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
- MobileControlBuilder.cs
- Pens.cs
- StatusBarPanel.cs
- PrintPreviewGraphics.cs
- ContentFileHelper.cs
- BuiltInExpr.cs
- ViewCellSlot.cs
- CheckBox.cs
- ObjectDataSourceDisposingEventArgs.cs
- IxmlLineInfo.cs
- DelimitedListTraceListener.cs
- BehaviorService.cs
- EntityDataSourceDesignerHelper.cs
- VectorConverter.cs
- SecurityPermission.cs
- PerfProviderCollection.cs
- RepeaterCommandEventArgs.cs
- SerializationObjectManager.cs
- ProtocolsConfigurationHandler.cs
- AlternateView.cs
- ActivationServices.cs
- CombinedTcpChannel.cs
- InputReportEventArgs.cs
- MetadataArtifactLoaderCompositeResource.cs
- MimeParameters.cs
- HtmlInputImage.cs
- MetadataItemEmitter.cs
- DiscoveryReferences.cs
- Message.cs
- NullRuntimeConfig.cs
- RemotingClientProxy.cs
- MemoryRecordBuffer.cs
- Int32EqualityComparer.cs
- MediaContextNotificationWindow.cs
- ColumnMapTranslator.cs
- DynamicUpdateCommand.cs
- MultipleFilterMatchesException.cs
- XmlResolver.cs
- ObjectDataSourceMethodEditor.cs
- DataGridViewHeaderCell.cs
- SectionUpdates.cs
- ExpressionNode.cs
- WriterOutput.cs
- SqlParameterCollection.cs
- WebPartTransformer.cs
- ToolStripScrollButton.cs
- NumberSubstitution.cs
- SessionEndedEventArgs.cs
- TraceEventCache.cs
- Timeline.cs
- XmlAttribute.cs
- CompiledQueryCacheKey.cs
- DrawingDrawingContext.cs
- SizeF.cs
- TextDecorationCollection.cs
- DataMember.cs
- IPPacketInformation.cs
- MemberPath.cs
- WebBrowserPermission.cs
- StorageTypeMapping.cs
- TabletDevice.cs
- Scheduler.cs
- Ref.cs
- SchemaImporter.cs
- RectangleGeometry.cs
- TreeView.cs
- Property.cs
- FontSizeConverter.cs
- SimplePropertyEntry.cs
- DuplicateDetector.cs
- MemoryStream.cs
- PropertyOrder.cs
- ScriptManager.cs
- AuthorizationPolicyTypeElementCollection.cs
- CatalogZone.cs
- Point3DAnimation.cs
- HttpApplicationFactory.cs
- BufferedGraphicsContext.cs
- DoubleConverter.cs
- TraceHandlerErrorFormatter.cs
- FloaterParagraph.cs
- StrokeFIndices.cs
- GlyphingCache.cs
- ListDataBindEventArgs.cs
- StreamSecurityUpgradeInitiator.cs
- XmlAutoDetectWriter.cs
- ListItemConverter.cs
- ModuleConfigurationInfo.cs
- SimpleApplicationHost.cs
- AutoResizedEvent.cs
- DeploymentSectionCache.cs
- PageThemeBuildProvider.cs
- SqlClientMetaDataCollectionNames.cs
- UIServiceHelper.cs
- XmlAttributeAttribute.cs
- ValidatorCollection.cs
- DataGridColumnCollection.cs
- ToolStripLabel.cs
- FieldInfo.cs
- DataGridViewCell.cs