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
- XamlDesignerSerializationManager.cs
- RadioButtonList.cs
- XmlChildEnumerator.cs
- CookielessHelper.cs
- Pair.cs
- ChainOfDependencies.cs
- MaterialGroup.cs
- CustomAttribute.cs
- SqlClientFactory.cs
- TouchEventArgs.cs
- SelectionRange.cs
- CustomTypeDescriptor.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- ReadWriteObjectLock.cs
- AssemblyCache.cs
- FixedPage.cs
- XMLDiffLoader.cs
- NativeCppClassAttribute.cs
- DataPagerFieldCommandEventArgs.cs
- GZipStream.cs
- SQLGuid.cs
- JpegBitmapEncoder.cs
- FixedTextView.cs
- WindowsTab.cs
- OutputCacheProfileCollection.cs
- ComplexType.cs
- ErrorFormatterPage.cs
- path.cs
- BatchServiceHost.cs
- InternalsVisibleToAttribute.cs
- CategoryGridEntry.cs
- CompilationRelaxations.cs
- AutoFocusStyle.xaml.cs
- MultipartContentParser.cs
- ActivityDesignerHelper.cs
- UserNameSecurityTokenProvider.cs
- CustomCategoryAttribute.cs
- ServiceMemoryGates.cs
- NativeMethodsCLR.cs
- TypeLoadException.cs
- DecoratedNameAttribute.cs
- NetCodeGroup.cs
- XmlBaseWriter.cs
- HwndHostAutomationPeer.cs
- ComponentSerializationService.cs
- NameTable.cs
- DataGridTextBoxColumn.cs
- QueryContinueDragEventArgs.cs
- SmiRecordBuffer.cs
- TypeElementCollection.cs
- ResolvedKeyFrameEntry.cs
- BamlRecordReader.cs
- MetadataHelper.cs
- XmlSchemaAny.cs
- PriorityBindingExpression.cs
- Table.cs
- C14NUtil.cs
- DataObjectCopyingEventArgs.cs
- ArgumentException.cs
- PageVisual.cs
- TerminatorSinks.cs
- SqlOuterApplyReducer.cs
- GenericQueueSurrogate.cs
- AlignmentXValidation.cs
- VoiceObjectToken.cs
- Confirm.cs
- ModelItem.cs
- AutoResetEvent.cs
- BinaryCommonClasses.cs
- KoreanCalendar.cs
- XPathNodeHelper.cs
- ParameterCollection.cs
- BinaryExpression.cs
- ScriptReference.cs
- DataGridColumnFloatingHeader.cs
- HttpBrowserCapabilitiesWrapper.cs
- ClientConfigurationHost.cs
- TitleStyle.cs
- RuleElement.cs
- ManagementEventArgs.cs
- WebOperationContext.cs
- DetailsViewPagerRow.cs
- _UriTypeConverter.cs
- BitmapVisualManager.cs
- XmlSchemaAll.cs
- HwndKeyboardInputProvider.cs
- SettingsBase.cs
- ColorContextHelper.cs
- IsolationInterop.cs
- arabicshape.cs
- MailAddress.cs
- DetailsViewInsertEventArgs.cs
- ContainerVisual.cs
- ColorTypeConverter.cs
- XmlValidatingReaderImpl.cs
- SmiContextFactory.cs
- IHttpResponseInternal.cs
- LaxModeSecurityHeaderElementInferenceEngine.cs
- ProxyElement.cs
- TreeBuilder.cs