Code:
/ 4.0 / 4.0 / 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.] ///// 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
- SpellerStatusTable.cs
- PackWebResponse.cs
- Types.cs
- PropertyChangeTracker.cs
- GcHandle.cs
- MetabaseSettings.cs
- ByteAnimationBase.cs
- GradientBrush.cs
- IInstanceContextProvider.cs
- _LocalDataStoreMgr.cs
- AsyncCompletedEventArgs.cs
- ScriptingRoleServiceSection.cs
- ResXDataNode.cs
- CqlParser.cs
- DataGridTableCollection.cs
- Panel.cs
- Point3DCollectionValueSerializer.cs
- FontSizeConverter.cs
- PropertyFilterAttribute.cs
- AdornerDecorator.cs
- ConfigurationSchemaErrors.cs
- CompilerScopeManager.cs
- InputReport.cs
- TypeLibConverter.cs
- TextContainerChangedEventArgs.cs
- AppAction.cs
- DataAdapter.cs
- basevalidator.cs
- XslAst.cs
- QilReference.cs
- DbCommandTree.cs
- Configuration.cs
- ObjectRef.cs
- TraceHwndHost.cs
- TemplateContainer.cs
- MaterialCollection.cs
- ProfileGroupSettingsCollection.cs
- InternalTypeHelper.cs
- SecurityTokenAuthenticator.cs
- XmlSignificantWhitespace.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- SqlTypeConverter.cs
- TagElement.cs
- ScriptControlDescriptor.cs
- UserControlAutomationPeer.cs
- ObjectIDGenerator.cs
- WebPartEventArgs.cs
- SecurityResources.cs
- SafeProcessHandle.cs
- ProfileService.cs
- ToolBar.cs
- ClientSponsor.cs
- XmlTypeMapping.cs
- DataGridViewCellStyle.cs
- DataGridViewCellCollection.cs
- BitmapDownload.cs
- HttpProfileBase.cs
- HighlightVisual.cs
- DynamicArgumentDesigner.xaml.cs
- XmlChildNodes.cs
- SocketElement.cs
- MostlySingletonList.cs
- MonthChangedEventArgs.cs
- ExceptionUtil.cs
- StickyNoteHelper.cs
- TextViewBase.cs
- DesignerPerfEventProvider.cs
- ToolStripDropDownClosedEventArgs.cs
- StringArrayConverter.cs
- SpotLight.cs
- MethodCallTranslator.cs
- RequestContextBase.cs
- DocumentReferenceCollection.cs
- TraceHwndHost.cs
- Rect3D.cs
- DateRangeEvent.cs
- CommonObjectSecurity.cs
- ObfuscateAssemblyAttribute.cs
- ProviderConnectionPointCollection.cs
- XsltOutput.cs
- EditorPartCollection.cs
- PasswordDeriveBytes.cs
- SafeCoTaskMem.cs
- ScriptRef.cs
- PagesSection.cs
- WindowsAuthenticationModule.cs
- ThousandthOfEmRealDoubles.cs
- CriticalHandle.cs
- SiteIdentityPermission.cs
- ArrayList.cs
- DeploymentExceptionMapper.cs
- Menu.cs
- PkcsUtils.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- TerminateSequence.cs
- DesignerWithHeader.cs
- Rectangle.cs
- TreeView.cs
- ImageDrawing.cs
- PagerSettings.cs