Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / BaseCollection.cs / 1305376 / 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.] ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SafeHandle.cs
- UrlAuthorizationModule.cs
- DefaultMemberAttribute.cs
- DataSourceSelectArguments.cs
- DataContractSet.cs
- ChangeInterceptorAttribute.cs
- ListenerElementsCollection.cs
- CompModHelpers.cs
- BaseAutoFormat.cs
- TdsValueSetter.cs
- TypeElement.cs
- ArglessEventHandlerProxy.cs
- SoapReflectionImporter.cs
- QuaternionRotation3D.cs
- PlainXmlDeserializer.cs
- ViewSimplifier.cs
- SqlDataSourceEnumerator.cs
- ModuleElement.cs
- mongolianshape.cs
- TraceSection.cs
- StringCollectionEditor.cs
- QueryTreeBuilder.cs
- WindowsListView.cs
- ManipulationStartedEventArgs.cs
- XPathAncestorQuery.cs
- LayoutManager.cs
- CLSCompliantAttribute.cs
- ComEventsSink.cs
- FileVersion.cs
- DataGridAutomationPeer.cs
- HitTestDrawingContextWalker.cs
- EnumerableRowCollectionExtensions.cs
- ConnectionProviderAttribute.cs
- COAUTHINFO.cs
- ComNativeDescriptor.cs
- AspNetSynchronizationContext.cs
- CodeAttributeArgumentCollection.cs
- TimeoutException.cs
- ProcessModuleCollection.cs
- RolePrincipal.cs
- SharedMemory.cs
- BordersPage.cs
- BuildProviderInstallComponent.cs
- LinqDataSourceEditData.cs
- ConfigurationStrings.cs
- AccessDataSourceWizardForm.cs
- WeakRefEnumerator.cs
- PathNode.cs
- ComponentEditorPage.cs
- WindowShowOrOpenTracker.cs
- HTMLTagNameToTypeMapper.cs
- WebPartExportVerb.cs
- DataMemberAttribute.cs
- TextSimpleMarkerProperties.cs
- ScriptManager.cs
- EditorPart.cs
- ConnectionConsumerAttribute.cs
- TreeNodeBinding.cs
- XslUrlEditor.cs
- WmlSelectionListAdapter.cs
- DataObjectSettingDataEventArgs.cs
- XmlWrappingReader.cs
- ControlBuilder.cs
- RuleAction.cs
- Suspend.cs
- DesignerAutoFormatCollection.cs
- X509ChainPolicy.cs
- TypedElement.cs
- AutomationElement.cs
- SingleAnimation.cs
- EntityDataSource.cs
- Point.cs
- WindowInteractionStateTracker.cs
- CryptographicAttribute.cs
- QueryReaderSettings.cs
- UnsupportedPolicyOptionsException.cs
- HtmlTitle.cs
- SHA256Managed.cs
- SiblingIterators.cs
- XmlIterators.cs
- PublisherMembershipCondition.cs
- AliasedExpr.cs
- JapaneseLunisolarCalendar.cs
- IdentifierService.cs
- LogEntrySerializationException.cs
- ExpandSegment.cs
- FastPropertyAccessor.cs
- MetadataArtifactLoaderFile.cs
- PageBreakRecord.cs
- MetricEntry.cs
- ErrorRuntimeConfig.cs
- HMACMD5.cs
- Lasso.cs
- SimpleTableProvider.cs
- DataGridViewCellMouseEventArgs.cs
- InternalsVisibleToAttribute.cs
- CustomAssemblyResolver.cs
- SplitContainer.cs
- GenericRootAutomationPeer.cs
- TemplateInstanceAttribute.cs