Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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;
///
///
/// Provides the base functionality for creating collections.
///
public class BaseCollection : MarshalByRefObject, ICollection {
//==================================================
// the ICollection methods
//==================================================
///
///
/// Gets the total number of elements in a collection.
///
[
Browsable(false), EditorBrowsable(EditorBrowsableState.Advanced)
]
public virtual int Count {
get {
return List.Count;
}
}
///
///
/// [To be supplied.]
///
public void CopyTo(Array ar, int index) {
List.CopyTo(ar, index);
}
///
///
/// Gets an IEnumerator for the collection.
///
public IEnumerator GetEnumerator() {
return List.GetEnumerator();
}
///
///
/// [To be supplied.]
///
[
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.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BypassElement.cs
- DataControlFieldsEditor.cs
- _ChunkParse.cs
- WebFormsRootDesigner.cs
- ObjectDataSourceMethodEventArgs.cs
- ReliableMessagingHelpers.cs
- _SecureChannel.cs
- AgileSafeNativeMemoryHandle.cs
- NodeFunctions.cs
- FileDialogCustomPlace.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- QueryContinueDragEvent.cs
- ImageMapEventArgs.cs
- ExpandedWrapper.cs
- DesignerActionPanel.cs
- ComplexObject.cs
- SqlConnectionString.cs
- SharedPersonalizationStateInfo.cs
- ColumnWidthChangingEvent.cs
- FacetChecker.cs
- FileSystemInfo.cs
- Misc.cs
- GrammarBuilderDictation.cs
- CaseKeyBox.ViewModel.cs
- Vector3dCollection.cs
- StringKeyFrameCollection.cs
- AssemblyFilter.cs
- SeparatorAutomationPeer.cs
- HttpTransportSecurityElement.cs
- EncodingNLS.cs
- XhtmlBasicPhoneCallAdapter.cs
- SendMailErrorEventArgs.cs
- InstalledFontCollection.cs
- HGlobalSafeHandle.cs
- OutputWindow.cs
- TypeSystem.cs
- EdmError.cs
- StorageBasedPackageProperties.cs
- DefaultObjectMappingItemCollection.cs
- ComponentCommands.cs
- SplitterPanel.cs
- PrePostDescendentsWalker.cs
- sqlser.cs
- AuthenticationService.cs
- ZipFileInfo.cs
- ProfileServiceManager.cs
- GatewayDefinition.cs
- graph.cs
- VerificationAttribute.cs
- AddInBase.cs
- ScriptingSectionGroup.cs
- BaseResourcesBuildProvider.cs
- SqlDataSourceAdvancedOptionsForm.cs
- CanExecuteRoutedEventArgs.cs
- ImageInfo.cs
- WebRequest.cs
- TextParagraphCache.cs
- PageTextBox.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- SemanticBasicElement.cs
- TextFormatterImp.cs
- SeverityFilter.cs
- FileUtil.cs
- Pair.cs
- StringConverter.cs
- SqlFileStream.cs
- ReadOnlyState.cs
- Baml6ConstructorInfo.cs
- Odbc32.cs
- ThicknessAnimationUsingKeyFrames.cs
- WebFormDesignerActionService.cs
- ParseChildrenAsPropertiesAttribute.cs
- Vector3DKeyFrameCollection.cs
- Duration.cs
- FamilyMapCollection.cs
- BrowserCapabilitiesCodeGenerator.cs
- WebPartMovingEventArgs.cs
- CalendarDateRangeChangingEventArgs.cs
- PersonalizablePropertyEntry.cs
- Wizard.cs
- InkCanvasAutomationPeer.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- AnimationClockResource.cs
- CodeTypeConstructor.cs
- WindowsFormsHelpers.cs
- SudsWriter.cs
- XNameConverter.cs
- PageStatePersister.cs
- WinEventHandler.cs
- Rect.cs
- SqlUtils.cs
- TimersDescriptionAttribute.cs
- MeasurementDCInfo.cs
- Int16KeyFrameCollection.cs
- DataGridViewSelectedRowCollection.cs
- StringFormat.cs
- _SecureChannel.cs
- OleDbRowUpdatedEvent.cs
- SystemInformation.cs
- ProfileService.cs