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
- WebPartEditorOkVerb.cs
- StandardToolWindows.cs
- ContextMarshalException.cs
- BinaryUtilClasses.cs
- DataSourceXmlSubItemAttribute.cs
- GridViewRowCollection.cs
- BinHexEncoding.cs
- OleServicesContext.cs
- MailSettingsSection.cs
- CodeGenerationManager.cs
- XmlSchemaValidator.cs
- MailMessageEventArgs.cs
- ObjectSecurity.cs
- SecurityContext.cs
- ChangeProcessor.cs
- DateTimeAutomationPeer.cs
- XmlWriterSettings.cs
- CodeCatchClause.cs
- DrawingGroup.cs
- GetResponse.cs
- MetadataArtifactLoaderResource.cs
- precedingquery.cs
- XamlSerializer.cs
- GridItemProviderWrapper.cs
- PartialClassGenerationTask.cs
- FragmentQuery.cs
- ReplacementText.cs
- PerformanceCounterLib.cs
- Logging.cs
- WhitespaceRule.cs
- GcHandle.cs
- StreamGeometry.cs
- CustomCategoryAttribute.cs
- Rfc4050KeyFormatter.cs
- SignedInfo.cs
- UnicodeEncoding.cs
- SymbolMethod.cs
- ObjectHandle.cs
- XNameTypeConverter.cs
- DetailsView.cs
- HtmlGenericControl.cs
- ConnectionStringsExpressionBuilder.cs
- StrokeCollectionConverter.cs
- AsyncOperationLifetimeManager.cs
- MD5.cs
- MSAAEventDispatcher.cs
- Add.cs
- Propagator.Evaluator.cs
- TraceShell.cs
- FileEnumerator.cs
- ListViewItem.cs
- FontDifferentiator.cs
- DataContext.cs
- Guid.cs
- IdentityValidationException.cs
- TextBox.cs
- CollectionsUtil.cs
- CodeNamespaceImportCollection.cs
- ChannelTokenTypeConverter.cs
- DataSourceXmlClassAttribute.cs
- CodeParameterDeclarationExpressionCollection.cs
- DataRelationCollection.cs
- PerSessionInstanceContextProvider.cs
- MouseGestureConverter.cs
- BitmapMetadataEnumerator.cs
- shaperfactoryquerycacheentry.cs
- SaveFileDialog.cs
- SqlCommand.cs
- SettingsProperty.cs
- DrawingContextDrawingContextWalker.cs
- PerformanceCounterCategory.cs
- Calendar.cs
- AnnouncementEndpointElement.cs
- Point4DConverter.cs
- InvalidCastException.cs
- XmlSchemaValidationException.cs
- XappLauncher.cs
- XPathBinder.cs
- EntityDataSourceContextDisposingEventArgs.cs
- Stylus.cs
- _NegotiateClient.cs
- DataGridViewAutoSizeModeEventArgs.cs
- SynchronizedDispatch.cs
- Hex.cs
- Win32.cs
- LZCodec.cs
- TextViewElement.cs
- DynamicQueryableWrapper.cs
- UnaryExpression.cs
- EntityCollection.cs
- DetailsViewUpdateEventArgs.cs
- DriveNotFoundException.cs
- MaterialGroup.cs
- ProviderCollection.cs
- HandlerBase.cs
- ToolZone.cs
- TableLayoutColumnStyleCollection.cs
- ResourcePool.cs
- AstTree.cs
- Help.cs