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
- OutputCacheSettingsSection.cs
- DoubleKeyFrameCollection.cs
- ArraySegment.cs
- AdRotator.cs
- TabControl.cs
- StoragePropertyMapping.cs
- ToolStripDropDownClosingEventArgs.cs
- BatchServiceHost.cs
- StoryFragments.cs
- Transform.cs
- PermissionSet.cs
- PackWebResponse.cs
- TemplateBamlTreeBuilder.cs
- OutOfMemoryException.cs
- CmsInterop.cs
- PreservationFileReader.cs
- NamedPermissionSet.cs
- DataTransferEventArgs.cs
- FormatException.cs
- OutputCacheModule.cs
- WebSysDisplayNameAttribute.cs
- HotSpot.cs
- DataGridViewAccessibleObject.cs
- StoreAnnotationsMap.cs
- WebPartConnectionsDisconnectVerb.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- DataGridCellAutomationPeer.cs
- CoTaskMemSafeHandle.cs
- SizeFConverter.cs
- Int16Animation.cs
- WebControlAdapter.cs
- ValidationError.cs
- PathFigure.cs
- WindowsRebar.cs
- RawStylusInputReport.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- Error.cs
- HtmlElement.cs
- InvalidFilterCriteriaException.cs
- EncryptedPackageFilter.cs
- MessageQueuePermission.cs
- ConstNode.cs
- HashLookup.cs
- PropertyGridEditorPart.cs
- SettingsPropertyWrongTypeException.cs
- AttachedPropertyBrowsableAttribute.cs
- Html32TextWriter.cs
- PersonalizableTypeEntry.cs
- XmlWriterTraceListener.cs
- XmlDocumentType.cs
- TypeListConverter.cs
- RemotingSurrogateSelector.cs
- Composition.cs
- HtmlTable.cs
- ImageButton.cs
- QilScopedVisitor.cs
- FixedDSBuilder.cs
- CreateUserWizardStep.cs
- ApplicationProxyInternal.cs
- FloatMinMaxAggregationOperator.cs
- BitmapPalette.cs
- InternalSafeNativeMethods.cs
- DataProtection.cs
- BuiltInExpr.cs
- Point.cs
- MsmqNonTransactedPoisonHandler.cs
- ObjectMemberMapping.cs
- DataGridSortCommandEventArgs.cs
- SqlGenericUtil.cs
- ToolBarButton.cs
- BuildManager.cs
- DataGridViewSelectedRowCollection.cs
- XmlSchemaSubstitutionGroup.cs
- ProxyWebPart.cs
- AbandonedMutexException.cs
- XmlSchemaIdentityConstraint.cs
- ArgIterator.cs
- FamilyTypefaceCollection.cs
- UpdateTracker.cs
- XmlAnyElementAttribute.cs
- StylusPointPropertyUnit.cs
- HtmlEmptyTagControlBuilder.cs
- StringSorter.cs
- control.ime.cs
- ContainerParaClient.cs
- CodeExpressionCollection.cs
- MethodAccessException.cs
- IPPacketInformation.cs
- ModuleBuilder.cs
- DataSourceCache.cs
- EnumValidator.cs
- PageParser.cs
- AppDomainUnloadedException.cs
- WebPartActionVerb.cs
- EntitySet.cs
- OdbcCommand.cs
- UnsafePeerToPeerMethods.cs
- AppSettingsSection.cs
- GenericQueueSurrogate.cs
- SectionInput.cs