Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / BaseCollection.cs / 1305376 / 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
- DefaultCommandConverter.cs
- DefaultPropertyAttribute.cs
- smtpconnection.cs
- Transactions.cs
- Point4DValueSerializer.cs
- ProcessHostFactoryHelper.cs
- EntityViewGenerationAttribute.cs
- InputQueueChannel.cs
- OleDbRowUpdatingEvent.cs
- ExpressionQuoter.cs
- HttpModuleCollection.cs
- SelectionRangeConverter.cs
- DataView.cs
- PolicyUnit.cs
- UriExt.cs
- DocumentCollection.cs
- RolePrincipal.cs
- xml.cs
- Walker.cs
- XhtmlBasicLiteralTextAdapter.cs
- DataBindingCollection.cs
- HandleDictionary.cs
- HuffModule.cs
- CachingHintValidation.cs
- ForEachAction.cs
- BCLDebug.cs
- DocumentXPathNavigator.cs
- TrackingAnnotationCollection.cs
- SnapLine.cs
- SmtpAuthenticationManager.cs
- PropertyGeneratedEventArgs.cs
- XmlConverter.cs
- UIAgentCrashedException.cs
- SQLSingle.cs
- ExceptionHandlers.cs
- hebrewshape.cs
- HwndProxyElementProvider.cs
- WeakEventManager.cs
- XmlSchemaIdentityConstraint.cs
- IPAddress.cs
- FixedLineResult.cs
- DispatcherEventArgs.cs
- HebrewNumber.cs
- LazyInitializer.cs
- WebPartEditVerb.cs
- ConfigXmlReader.cs
- TemplateBindingExpressionConverter.cs
- XsdCachingReader.cs
- NegationPusher.cs
- BitStack.cs
- WebPartActionVerb.cs
- UInt64Converter.cs
- IdentitySection.cs
- DataGridViewHitTestInfo.cs
- KeyedPriorityQueue.cs
- ExpandSegment.cs
- Schema.cs
- DetailsView.cs
- ForEachAction.cs
- FileDialog.cs
- StrongName.cs
- InfoCardSymmetricCrypto.cs
- AxHost.cs
- DataGridViewColumnEventArgs.cs
- EmptyEnumerator.cs
- Base64Decoder.cs
- SerialStream.cs
- RequestCachePolicyConverter.cs
- SQLGuid.cs
- AdRotator.cs
- CrossAppDomainChannel.cs
- Item.cs
- BaseCollection.cs
- EntityDataSourceState.cs
- OutputCacheSettingsSection.cs
- PingReply.cs
- ReadOnlyDictionary.cs
- NominalTypeEliminator.cs
- Quaternion.cs
- TripleDESCryptoServiceProvider.cs
- ClientTargetCollection.cs
- nulltextcontainer.cs
- ProcessModuleDesigner.cs
- XhtmlBasicObjectListAdapter.cs
- TreeNodeStyleCollection.cs
- Pool.cs
- ClientSponsor.cs
- CodeDomSerializerException.cs
- UndoUnit.cs
- TableLayoutStyleCollection.cs
- PolicyConversionContext.cs
- BaseAppDomainProtocolHandler.cs
- SoundPlayer.cs
- SchemaElementDecl.cs
- WebPartMinimizeVerb.cs
- FormViewPageEventArgs.cs
- ButtonChrome.cs
- AspProxy.cs
- SqlDataAdapter.cs
- RemoteWebConfigurationHostServer.cs