Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Collections / ReadOnlyCollectionBase.cs / 1305376 / ReadOnlyCollectionBase.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //------------------------------------------------------------------------------ //----------------------------------------------------------------------------- //[....] // namespace System.Collections { using System; // Useful base class for typed readonly collections where items derive from object [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public abstract class ReadOnlyCollectionBase : ICollection { ArrayList list; protected ArrayList InnerList { get { if (list == null) list = new ArrayList(); return list; } } public virtual int Count { get { return InnerList.Count; } } bool ICollection.IsSynchronized { get { return InnerList.IsSynchronized; } } object ICollection.SyncRoot { get { return InnerList.SyncRoot; } } void ICollection.CopyTo(Array array, int index) { InnerList.CopyTo(array, index); } public virtual IEnumerator GetEnumerator() { return InnerList.GetEnumerator(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Point.cs
- SqlConnectionPoolGroupProviderInfo.cs
- HtmlInputCheckBox.cs
- LogArchiveSnapshot.cs
- PathParser.cs
- control.ime.cs
- HandlerBase.cs
- AnimatedTypeHelpers.cs
- HostedImpersonationContext.cs
- CompilationAssemblyInstallComponent.cs
- CompiledXpathExpr.cs
- RequestDescription.cs
- EncoderParameters.cs
- DropShadowBitmapEffect.cs
- OperationCanceledException.cs
- IpcChannelHelper.cs
- StrokeRenderer.cs
- RegistrationServices.cs
- NumberFormatInfo.cs
- SafeFileMappingHandle.cs
- TableRowCollection.cs
- InternalUserCancelledException.cs
- ProgressBar.cs
- UnsafeNativeMethods.cs
- RSAPKCS1SignatureFormatter.cs
- ObjectReaderCompiler.cs
- DataTableMapping.cs
- TextEffect.cs
- InvalidateEvent.cs
- Ray3DHitTestResult.cs
- DataBoundLiteralControl.cs
- PeerTransportElement.cs
- PropertyPushdownHelper.cs
- SecurityTokenSerializer.cs
- ArgumentException.cs
- CompilationUtil.cs
- QueryCorrelationInitializer.cs
- PolygonHotSpot.cs
- NavigationEventArgs.cs
- GregorianCalendarHelper.cs
- OdbcDataReader.cs
- QilInvoke.cs
- ApplicationId.cs
- AliasedSlot.cs
- XamlToRtfWriter.cs
- SimpleHandlerFactory.cs
- RemotingConfigParser.cs
- HMACSHA256.cs
- FixedPageStructure.cs
- ExpressionHelper.cs
- BuildManager.cs
- DNS.cs
- AssemblyUtil.cs
- StringStorage.cs
- LinkButton.cs
- SafeArrayTypeMismatchException.cs
- WsdlBuildProvider.cs
- ObjectMemberMapping.cs
- RightsManagementEncryptedStream.cs
- XmlDataImplementation.cs
- RepeatButton.cs
- ParserOptions.cs
- Automation.cs
- SchemaManager.cs
- WeakReferenceList.cs
- _SingleItemRequestCache.cs
- _UncName.cs
- SiteMembershipCondition.cs
- ParameterCollection.cs
- Overlapped.cs
- BaseProcessor.cs
- SecurityProtocolCorrelationState.cs
- Baml2006KeyRecord.cs
- NonParentingControl.cs
- HuffCodec.cs
- ValuePatternIdentifiers.cs
- ScaleTransform.cs
- EdmItemCollection.cs
- UrlUtility.cs
- WebBrowserNavigatedEventHandler.cs
- SystemFonts.cs
- XmlKeywords.cs
- TabControlCancelEvent.cs
- TypeCollectionDesigner.xaml.cs
- OracleCommand.cs
- TdsParserSafeHandles.cs
- BamlBinaryWriter.cs
- Pair.cs
- XsdDateTime.cs
- AttributeAction.cs
- Misc.cs
- CustomAttribute.cs
- OdbcConnectionPoolProviderInfo.cs
- AdvancedBindingEditor.cs
- BitStream.cs
- SingleAnimation.cs
- ToolStripProgressBar.cs
- Point4D.cs
- ParserContext.cs
- Formatter.cs