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
- Compiler.cs
- RegexParser.cs
- ElementUtil.cs
- DetailsViewDesigner.cs
- ParamArrayAttribute.cs
- InputLangChangeEvent.cs
- HttpRequestWrapper.cs
- RectConverter.cs
- MediaPlayer.cs
- HitTestResult.cs
- MetadataCollection.cs
- PropertyDescriptorGridEntry.cs
- ToolStripProgressBar.cs
- X509ChainElement.cs
- MergeFailedEvent.cs
- EditingScope.cs
- ValidatorCollection.cs
- DES.cs
- RedistVersionInfo.cs
- ParentQuery.cs
- StandardTransformFactory.cs
- EntityDataSourceStatementEditor.cs
- TypeToTreeConverter.cs
- CanonicalFontFamilyReference.cs
- SqlDependency.cs
- DynamicMethod.cs
- AdvancedBindingEditor.cs
- HGlobalSafeHandle.cs
- ObjectStateFormatter.cs
- PermissionRequestEvidence.cs
- TreeNodeCollection.cs
- PenLineJoinValidation.cs
- InteropAutomationProvider.cs
- Cursors.cs
- ProofTokenCryptoHandle.cs
- Visual.cs
- InfoCardHelper.cs
- AudioFormatConverter.cs
- HexParser.cs
- KeyMatchBuilder.cs
- ResourceDescriptionAttribute.cs
- DetailsViewDesigner.cs
- NativeMethods.cs
- GridViewSelectEventArgs.cs
- util.cs
- DoubleAnimationUsingPath.cs
- List.cs
- OwnerDrawPropertyBag.cs
- DoubleLink.cs
- EdgeProfileValidation.cs
- PropertyGroupDescription.cs
- IDReferencePropertyAttribute.cs
- ToolTipAutomationPeer.cs
- ListItemCollection.cs
- ExpandedWrapper.cs
- IntSecurity.cs
- LoadRetryHandler.cs
- EncodingNLS.cs
- SafeNativeMemoryHandle.cs
- CodeDOMProvider.cs
- FileDialogCustomPlacesCollection.cs
- ExpandedWrapper.cs
- WbemException.cs
- ContextMarshalException.cs
- BaseUriHelper.cs
- Item.cs
- SqlStatistics.cs
- Button.cs
- DataGridPreparingCellForEditEventArgs.cs
- CultureSpecificCharacterBufferRange.cs
- SinglePageViewer.cs
- UnsafeNativeMethodsTablet.cs
- SoapAttributes.cs
- SHA384CryptoServiceProvider.cs
- IPPacketInformation.cs
- ClientUtils.cs
- SchemaDeclBase.cs
- CommonDialog.cs
- FixedStringLookup.cs
- SuppressMergeCheckAttribute.cs
- PanelStyle.cs
- ConnectionManagementElement.cs
- NativeMethods.cs
- Function.cs
- securestring.cs
- CursorInteropHelper.cs
- ChannelFactoryRefCache.cs
- SafeSerializationManager.cs
- ButtonBaseAutomationPeer.cs
- ListControlConvertEventArgs.cs
- DbParameterCollectionHelper.cs
- PageRouteHandler.cs
- ReadOnlyNameValueCollection.cs
- ActivationArguments.cs
- HttpProfileBase.cs
- ProjectedWrapper.cs
- Trace.cs
- RadioButton.cs
- DataRelationCollection.cs
- InternalPermissions.cs