Code:
/ 4.0 / 4.0 / untmp / 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.] ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MimeObjectFactory.cs
- QuaternionRotation3D.cs
- RTLAwareMessageBox.cs
- SolidColorBrush.cs
- OleDbReferenceCollection.cs
- HotCommands.cs
- FullTrustAssemblyCollection.cs
- DoubleIndependentAnimationStorage.cs
- SizeIndependentAnimationStorage.cs
- XXXOnTypeBuilderInstantiation.cs
- HtmlInputHidden.cs
- ProfileParameter.cs
- WindowsFormsSynchronizationContext.cs
- CacheMemory.cs
- ResourceCategoryAttribute.cs
- TreeSet.cs
- EventPrivateKey.cs
- Dynamic.cs
- DefaultBinder.cs
- CaseInsensitiveComparer.cs
- SapiInterop.cs
- ApplicationHost.cs
- SqlBooleanizer.cs
- ErrorFormatter.cs
- Peer.cs
- ToggleButtonAutomationPeer.cs
- FullTrustAssemblyCollection.cs
- DataGridViewCellMouseEventArgs.cs
- WebPartConnectionsCancelEventArgs.cs
- AccessibleObject.cs
- Substitution.cs
- GridItemCollection.cs
- SQLBoolean.cs
- OpenFileDialog.cs
- AlternateViewCollection.cs
- ChangePasswordDesigner.cs
- TemplateXamlTreeBuilder.cs
- DescriptionAttribute.cs
- HtmlForm.cs
- MouseGestureValueSerializer.cs
- COM2ExtendedBrowsingHandler.cs
- TypeConstant.cs
- DropShadowEffect.cs
- RemoteDebugger.cs
- DBCommandBuilder.cs
- PolicyStatement.cs
- SemanticResultValue.cs
- RegexRunner.cs
- GenericTypeParameterBuilder.cs
- StrokeRenderer.cs
- querybuilder.cs
- SecurityState.cs
- OleCmdHelper.cs
- OptimalTextSource.cs
- NativeMethodsOther.cs
- oledbmetadatacollectionnames.cs
- QueryValue.cs
- AlternateViewCollection.cs
- HitTestWithGeometryDrawingContextWalker.cs
- EventManager.cs
- KeyToListMap.cs
- MoveSizeWinEventHandler.cs
- MouseGestureValueSerializer.cs
- ServiceOperationInfoTypeConverter.cs
- EmptyReadOnlyDictionaryInternal.cs
- ChooseAction.cs
- TypeRefElement.cs
- UidManager.cs
- PolicyImporterElementCollection.cs
- UpDownBase.cs
- SecurityPermission.cs
- CompressionTransform.cs
- XmlConvert.cs
- Models.cs
- TypeBuilder.cs
- AccessDataSource.cs
- Message.cs
- MSG.cs
- XmlDataDocument.cs
- TextTreeTextNode.cs
- UpdateManifestForBrowserApplication.cs
- ByeOperationAsyncResult.cs
- IisNotInstalledException.cs
- ResumeStoryboard.cs
- RegistryKey.cs
- PropertyBuilder.cs
- DocumentGridPage.cs
- NegotiateStream.cs
- GeometryGroup.cs
- CatalogPartCollection.cs
- HasCopySemanticsAttribute.cs
- XPathSelectionIterator.cs
- AnimatedTypeHelpers.cs
- FontDriver.cs
- TraceUtils.cs
- PointF.cs
- SortableBindingList.cs
- CompilerError.cs
- SymbolPair.cs
- ResourcesGenerator.cs