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
- SimpleTypesSurrogate.cs
- HTMLTextWriter.cs
- XPathSelectionIterator.cs
- StaticExtension.cs
- ProcessHostMapPath.cs
- __Error.cs
- ScriptComponentDescriptor.cs
- LinqDataView.cs
- BuildProviderAppliesToAttribute.cs
- Normalization.cs
- WpfSharedBamlSchemaContext.cs
- FixUp.cs
- StrongNameUtility.cs
- RoleManagerEventArgs.cs
- XamlPoint3DCollectionSerializer.cs
- ToggleButton.cs
- SQLGuid.cs
- DocumentApplication.cs
- CodeRegionDirective.cs
- ScriptHandlerFactory.cs
- URLMembershipCondition.cs
- EntityContainer.cs
- Metadata.cs
- LoadWorkflowCommand.cs
- TemplateBamlRecordReader.cs
- Console.cs
- TempEnvironment.cs
- CardSpacePolicyElement.cs
- BaseParaClient.cs
- MSHTMLHost.cs
- SHA384Managed.cs
- NavigationCommands.cs
- HoistedLocals.cs
- String.cs
- CodeExpressionCollection.cs
- FixedSOMImage.cs
- KernelTypeValidation.cs
- SecurityChannelFactory.cs
- mansign.cs
- SqlDataAdapter.cs
- WindowsTitleBar.cs
- WebPartMenuStyle.cs
- ImplicitInputBrush.cs
- AspNetSynchronizationContext.cs
- SqlBulkCopy.cs
- NewArrayExpression.cs
- SmtpDigestAuthenticationModule.cs
- FontWeights.cs
- SharedStatics.cs
- AuthorizationRuleCollection.cs
- DataGridAutoFormat.cs
- EmptyCollection.cs
- TextUtf8RawTextWriter.cs
- WebMessageFormatHelper.cs
- TreeViewHitTestInfo.cs
- XPathDocumentBuilder.cs
- ProxyWebPartConnectionCollection.cs
- XmlSchemaAttribute.cs
- WebSysDescriptionAttribute.cs
- Stopwatch.cs
- ErasingStroke.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- Helper.cs
- ModelItemCollectionImpl.cs
- AdPostCacheSubstitution.cs
- HitTestParameters.cs
- HWStack.cs
- XmlNodeWriter.cs
- MenuTracker.cs
- DateTimeParse.cs
- ObjectTag.cs
- EncryptedData.cs
- Int16Storage.cs
- SmtpReplyReader.cs
- BinaryObjectInfo.cs
- SqlErrorCollection.cs
- LinkArea.cs
- TextRangeEditTables.cs
- LabelLiteral.cs
- NetworkAddressChange.cs
- DataGridViewRow.cs
- DataSourceConverter.cs
- MediaScriptCommandRoutedEventArgs.cs
- FixedSOMContainer.cs
- Pair.cs
- COM2EnumConverter.cs
- EndPoint.cs
- ProviderCollection.cs
- DataFieldEditor.cs
- ShapeTypeface.cs
- Point3DAnimation.cs
- TimeSpanValidatorAttribute.cs
- ServiceChannel.cs
- SessionStateItemCollection.cs
- GridErrorDlg.cs
- TraceLevelHelper.cs
- UIPermission.cs
- PlaceHolder.cs
- XmlDownloadManager.cs
- MobileControlsSectionHelper.cs