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
- Oid.cs
- ListMarkerLine.cs
- StoreItemCollection.Loader.cs
- oledbmetadatacollectionnames.cs
- TextEditorContextMenu.cs
- AutomationIdentifier.cs
- ConnectionProviderAttribute.cs
- XmlSchemaAnyAttribute.cs
- SizeAnimationUsingKeyFrames.cs
- SafeCryptHandles.cs
- CodeMemberMethod.cs
- Ipv6Element.cs
- BufferedReadStream.cs
- GroupBox.cs
- AttributeCollection.cs
- ObjectMemberMapping.cs
- PathGradientBrush.cs
- HelloOperationAsyncResult.cs
- WizardForm.cs
- propertytag.cs
- TrackingExtract.cs
- QueryableDataSource.cs
- XsltCompileContext.cs
- EventLogPermissionHolder.cs
- DynamicDocumentPaginator.cs
- LongValidator.cs
- WebBrowser.cs
- RequestChannelBinder.cs
- WpfPayload.cs
- AddInToken.cs
- OutputWindow.cs
- WindowsFont.cs
- DataGridViewSortCompareEventArgs.cs
- WindowInteropHelper.cs
- FormsAuthenticationCredentials.cs
- NamedPipeAppDomainProtocolHandler.cs
- RowCache.cs
- UnitControl.cs
- XamlInterfaces.cs
- JavascriptXmlWriterWrapper.cs
- CodeBlockBuilder.cs
- PeerNameRecordCollection.cs
- XamlSerializerUtil.cs
- AutomationPatternInfo.cs
- ContextMarshalException.cs
- FilteredAttributeCollection.cs
- DrawItemEvent.cs
- SqlProviderServices.cs
- TemplateKeyConverter.cs
- Condition.cs
- XPathNodeInfoAtom.cs
- DetailsViewRow.cs
- ScrollEventArgs.cs
- SqlNotificationRequest.cs
- ObjectSecurity.cs
- AuthenticationModulesSection.cs
- Wildcard.cs
- DataListItem.cs
- Array.cs
- MimeAnyImporter.cs
- CallbackValidatorAttribute.cs
- QueryContinueDragEvent.cs
- FuncCompletionCallbackWrapper.cs
- SqlMethods.cs
- LoadWorkflowByInstanceKeyCommand.cs
- PointLight.cs
- DataKey.cs
- HttpApplication.cs
- MasterPageCodeDomTreeGenerator.cs
- SqlRemoveConstantOrderBy.cs
- Part.cs
- LayoutManager.cs
- IssuanceLicense.cs
- StrongNameSignatureInformation.cs
- EventToken.cs
- MarkupProperty.cs
- ImageCodecInfoPrivate.cs
- OracleRowUpdatedEventArgs.cs
- ExecutionProperties.cs
- UnknownBitmapEncoder.cs
- DelegatingTypeDescriptionProvider.cs
- BindableAttribute.cs
- ZipIOLocalFileHeader.cs
- XmlAttributeCollection.cs
- EntityContainerEntitySet.cs
- BufferBuilder.cs
- SamlConditions.cs
- DelegatingChannelListener.cs
- CompilerCollection.cs
- ParserContext.cs
- Int16Animation.cs
- RuleAttributes.cs
- GlyphRunDrawing.cs
- AgileSafeNativeMemoryHandle.cs
- Pens.cs
- DebuggerAttributes.cs
- Thickness.cs
- GridViewRow.cs
- CapabilitiesState.cs
- SqlRetyper.cs