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
- XPathSingletonIterator.cs
- SAPICategories.cs
- MessageQueueConverter.cs
- Evidence.cs
- NamespaceMapping.cs
- ChtmlTextWriter.cs
- TreeBuilderBamlTranslator.cs
- RouteData.cs
- StartUpEventArgs.cs
- SafeCryptContextHandle.cs
- EncodingNLS.cs
- ThrowOnMultipleAssignment.cs
- DataGridViewCheckBoxColumn.cs
- TransformerTypeCollection.cs
- AnnotationStore.cs
- SafeNativeMethodsMilCoreApi.cs
- UnsettableComboBox.cs
- mediaeventargs.cs
- FormViewCommandEventArgs.cs
- Inline.cs
- SqlWorkflowPersistenceService.cs
- _Win32.cs
- ZoomPercentageConverter.cs
- Query.cs
- HttpProcessUtility.cs
- CroppedBitmap.cs
- MemoryPressure.cs
- SQLMoney.cs
- QilInvokeLateBound.cs
- WebBrowserHelper.cs
- DataObject.cs
- XPathParser.cs
- IisTraceWebEventProvider.cs
- Thickness.cs
- PersistChildrenAttribute.cs
- PointCollection.cs
- StringToken.cs
- webeventbuffer.cs
- NetNamedPipeSecurity.cs
- QueryableDataSourceHelper.cs
- Animatable.cs
- DataBindingCollection.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- SmtpLoginAuthenticationModule.cs
- altserialization.cs
- FileLogRecordEnumerator.cs
- DefinitionBase.cs
- XmlObjectSerializerWriteContextComplex.cs
- BuilderElements.cs
- Command.cs
- DependencyObjectCodeDomSerializer.cs
- PreProcessor.cs
- OutputCacheEntry.cs
- SeekStoryboard.cs
- Image.cs
- Latin1Encoding.cs
- ImageConverter.cs
- XmlEncoding.cs
- DisplayInformation.cs
- ActivitySurrogate.cs
- CheckedPointers.cs
- SessionStateSection.cs
- MsmqInputSessionChannel.cs
- RemotingAttributes.cs
- RightsManagementEncryptedStream.cs
- RtType.cs
- Stream.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- RolePrincipal.cs
- ActionMismatchAddressingException.cs
- ControlDesigner.cs
- securestring.cs
- HtmlLink.cs
- SchemaNotation.cs
- _DomainName.cs
- DPTypeDescriptorContext.cs
- Stack.cs
- Pen.cs
- WebBrowserNavigatingEventHandler.cs
- HelpInfo.cs
- Point3DConverter.cs
- MyContact.cs
- ReleaseInstanceMode.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- ChannelToken.cs
- Internal.cs
- ApplicationProxyInternal.cs
- ContainerSelectorGlyph.cs
- PropertyMap.cs
- wgx_exports.cs
- AtomServiceDocumentSerializer.cs
- XPathNodePointer.cs
- LowerCaseStringConverter.cs
- _ConnectStream.cs
- XmlSchemaAnnotated.cs
- MetadataArtifactLoaderCompositeResource.cs
- HWStack.cs
- TypographyProperties.cs
- RectangleConverter.cs
- DataStorage.cs