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
- PageParserFilter.cs
- CompiledQuery.cs
- ShaperBuffers.cs
- SqlNodeAnnotation.cs
- Guid.cs
- ScriptControlManager.cs
- StreamWithDictionary.cs
- RuntimeWrappedException.cs
- WorkflowInstance.cs
- QuestionEventArgs.cs
- PersonalizationEntry.cs
- StubHelpers.cs
- Point3DCollection.cs
- XamlTypeMapper.cs
- UTF7Encoding.cs
- HttpsChannelFactory.cs
- LinkLabel.cs
- SoundPlayerAction.cs
- StrongNameUtility.cs
- TreeViewItem.cs
- DbRetry.cs
- DesignerCommandSet.cs
- Label.cs
- CodeValidator.cs
- SortableBindingList.cs
- MediaPlayerState.cs
- ActiveXContainer.cs
- FlowDocumentReader.cs
- UntypedNullExpression.cs
- TabPageDesigner.cs
- XDRSchema.cs
- PlatformNotSupportedException.cs
- PerformanceCounterPermission.cs
- TextSpan.cs
- WmpBitmapDecoder.cs
- ServerIdentity.cs
- SQLInt16.cs
- RoutedEventHandlerInfo.cs
- AffineTransform3D.cs
- ReferentialConstraint.cs
- XamlToRtfParser.cs
- DbCommandTree.cs
- Compensation.cs
- FieldAccessException.cs
- SoapExtensionStream.cs
- ScriptHandlerFactory.cs
- FlowchartDesigner.Helpers.cs
- FontStretchConverter.cs
- Source.cs
- DataObjectMethodAttribute.cs
- PlatformCulture.cs
- ValidationError.cs
- UTF7Encoding.cs
- CacheEntry.cs
- ConfigXmlSignificantWhitespace.cs
- TableSectionStyle.cs
- NavigationPropertyEmitter.cs
- StructuralType.cs
- GPPOINTF.cs
- ThreadInterruptedException.cs
- FontStretchConverter.cs
- FileEnumerator.cs
- IconHelper.cs
- ProtocolsConfigurationHandler.cs
- XmlReflectionImporter.cs
- FamilyCollection.cs
- RootProjectionNode.cs
- TextServicesPropertyRanges.cs
- ChannelEndpointElementCollection.cs
- BaseCAMarshaler.cs
- InternalBufferOverflowException.cs
- isolationinterop.cs
- XsltContext.cs
- BufferedGraphics.cs
- RectAnimationBase.cs
- InvalidWMPVersionException.cs
- FixedSOMTable.cs
- XmlSerializationGeneratedCode.cs
- InvalidAsynchronousStateException.cs
- DataGridColumnReorderingEventArgs.cs
- CreatingCookieEventArgs.cs
- Int32Rect.cs
- ConstNode.cs
- FontUnitConverter.cs
- BufferBuilder.cs
- UseAttributeSetsAction.cs
- filewebrequest.cs
- StateRuntime.cs
- Marshal.cs
- WebControl.cs
- Size3DValueSerializer.cs
- ToolStripContainer.cs
- _AutoWebProxyScriptHelper.cs
- UnsafeNativeMethods.cs
- Rfc2898DeriveBytes.cs
- ToggleButtonAutomationPeer.cs
- Pool.cs
- ObjectDataSourceMethodEditor.cs
- TextChange.cs
- DispatcherTimer.cs