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
- connectionpool.cs
- Message.cs
- SqlClientWrapperSmiStream.cs
- ActivitySurrogate.cs
- ClosableStream.cs
- cookiecollection.cs
- CommandID.cs
- PropertyGridEditorPart.cs
- Quad.cs
- DataControlImageButton.cs
- PolicyUnit.cs
- Size.cs
- WorkerRequest.cs
- OutOfMemoryException.cs
- XmlSchemaRedefine.cs
- HttpValueCollection.cs
- SqlResolver.cs
- PackUriHelper.cs
- AccessDataSourceView.cs
- PartialArray.cs
- MetricEntry.cs
- UserCancellationException.cs
- FixedFlowMap.cs
- ElementMarkupObject.cs
- ContextProperty.cs
- HtmlToClrEventProxy.cs
- TemplateBindingExpressionConverter.cs
- TextParaLineResult.cs
- AccessText.cs
- WorkflowServiceAttributes.cs
- IndexerNameAttribute.cs
- CryptoSession.cs
- ConstrainedDataObject.cs
- MenuItemStyle.cs
- AdornedElementPlaceholder.cs
- RegexTree.cs
- ToolStripCodeDomSerializer.cs
- RemotingHelper.cs
- DataServiceHost.cs
- SafeFileMapViewHandle.cs
- XmlWriterSettings.cs
- dataprotectionpermission.cs
- DnsPermission.cs
- GPRECT.cs
- BitSet.cs
- RegexCapture.cs
- RectangleGeometry.cs
- ViewStateModeByIdAttribute.cs
- ListMarkerSourceInfo.cs
- HealthMonitoringSection.cs
- CacheAxisQuery.cs
- LogConverter.cs
- DataBindingCollection.cs
- UriParserTemplates.cs
- IdleTimeoutMonitor.cs
- ToolboxComponentsCreatedEventArgs.cs
- CookieParameter.cs
- DesignerOptionService.cs
- DataBinding.cs
- EventEntry.cs
- LogEntrySerializer.cs
- RoleService.cs
- Sql8ConformanceChecker.cs
- EntityTemplateFactory.cs
- Stacktrace.cs
- WorkflowViewManager.cs
- CompensationDesigner.cs
- ValidatedControlConverter.cs
- DirectoryObjectSecurity.cs
- IOThreadTimer.cs
- VisualStyleInformation.cs
- EmptyStringExpandableObjectConverter.cs
- CodeAccessSecurityEngine.cs
- PrimitiveCodeDomSerializer.cs
- XmlWrappingReader.cs
- FormsAuthenticationUser.cs
- EventProperty.cs
- MaskInputRejectedEventArgs.cs
- URLString.cs
- HttpServerVarsCollection.cs
- ClipboardProcessor.cs
- DocumentPaginator.cs
- CodeCompiler.cs
- BitmapEffect.cs
- StringAnimationBase.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- XmlUtf8RawTextWriter.cs
- AttributeUsageAttribute.cs
- DataBinding.cs
- _UriTypeConverter.cs
- Input.cs
- FullTextLine.cs
- OverrideMode.cs
- SchemeSettingElement.cs
- DirtyTextRange.cs
- ByteStreamMessageUtility.cs
- DateTimeAutomationPeer.cs
- SqlMethodTransformer.cs
- NamedPipeHostedTransportConfiguration.cs
- NavigationPropertyAccessor.cs