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
- ExtenderProvidedPropertyAttribute.cs
- SmiConnection.cs
- TraceListeners.cs
- StylusSystemGestureEventArgs.cs
- NavigationWindow.cs
- WaitForChangedResult.cs
- Int64Storage.cs
- StylusOverProperty.cs
- FieldDescriptor.cs
- MobileFormsAuthentication.cs
- DefaultValueTypeConverter.cs
- Clipboard.cs
- SplitterEvent.cs
- ListViewItemSelectionChangedEvent.cs
- WsdlImporterElementCollection.cs
- dtdvalidator.cs
- WorkflowQueueInfo.cs
- EntityDataSourceWrapper.cs
- ModuleBuilder.cs
- SrgsElement.cs
- Cursors.cs
- Subtree.cs
- StrokeCollectionConverter.cs
- SubstitutionList.cs
- Events.cs
- Authorization.cs
- PageTrueTypeFont.cs
- RoutedEventArgs.cs
- CompositeActivityDesigner.cs
- SchemaHelper.cs
- EntityTemplateUserControl.cs
- WorkItem.cs
- DataPagerCommandEventArgs.cs
- EventsTab.cs
- SrgsText.cs
- SHA256.cs
- VectorCollection.cs
- ContextItem.cs
- CollectionViewProxy.cs
- BamlLocalizabilityResolver.cs
- HeaderedContentControl.cs
- _ShellExpression.cs
- MasterPageCodeDomTreeGenerator.cs
- TagElement.cs
- IDQuery.cs
- AspCompat.cs
- TransformationRules.cs
- ReachPageContentSerializer.cs
- PolyQuadraticBezierSegment.cs
- TextElementEditingBehaviorAttribute.cs
- PreviewPageInfo.cs
- Vector3DAnimationUsingKeyFrames.cs
- RankException.cs
- WindowsAltTab.cs
- ThicknessAnimationBase.cs
- HttpListenerResponse.cs
- TreeViewBindingsEditorForm.cs
- FastEncoderWindow.cs
- ModelVisual3D.cs
- DesignConnectionCollection.cs
- CommandBinding.cs
- SecurityPolicySection.cs
- StringSource.cs
- TraceSource.cs
- CrossSiteScriptingValidation.cs
- ContextCorrelationInitializer.cs
- DataError.cs
- ToolStripSeparatorRenderEventArgs.cs
- TemplateXamlParser.cs
- BufferModesCollection.cs
- FilePresentation.cs
- HotSpotCollection.cs
- MeasureItemEvent.cs
- XmlNavigatorStack.cs
- CancellationState.cs
- XmlReturnReader.cs
- PageRanges.cs
- DataGridDesigner.cs
- MonthChangedEventArgs.cs
- ScrollContentPresenter.cs
- MultiplexingFormatMapping.cs
- counter.cs
- XamlTreeBuilder.cs
- LayoutEngine.cs
- ConfigurationValidatorAttribute.cs
- SharedPerformanceCounter.cs
- QueueAccessMode.cs
- UserControlBuildProvider.cs
- ProfileSettings.cs
- IssuanceLicense.cs
- BitmapMetadata.cs
- FamilyTypefaceCollection.cs
- ModelItemDictionaryImpl.cs
- XmlSchemaObjectTable.cs
- DBProviderConfigurationHandler.cs
- CachedPathData.cs
- COSERVERINFO.cs
- TextParagraphCache.cs
- xsdvalidator.cs
- LinkedList.cs