diff options
author | Jb Evain <jbevain@gmail.com> | 2007-08-03 21:32:44 +0400 |
---|---|---|
committer | Jb Evain <jbevain@gmail.com> | 2007-08-03 21:32:44 +0400 |
commit | e8dcf3eef81d37f367164bdfa5b181103e2b108f (patch) | |
tree | f8b425b556b9879275bd3aaf08d594a87c35c73f /mcs/class/System/System.Diagnostics/ProcessModuleCollection.cs | |
parent | 8d7c5a9f3dd01f389d7c3a7e0928c19a0214cee2 (diff) |
in System.Diagnostics:
2007-08-03 Jb Evain <jbevain@novell.com>
* ProcessThreadCollection.cs
ProcessModuleCollection.cs: use our own collection base
for the 2.1 profile, as ReadOnlyCollectionBase does not exist
in 2.1, and they are internalized by the linker.
in System.ComponentModel:
2007-08-03 Jb Evain <jbevain@novell.com>
* ComponentCollection.cs: use our own collection base
for the 2.1 profile, as ReadOnlyCollectionBase does not exist
in 2.1, and they are internalized by the linker.
svn path=/trunk/mcs/; revision=83421
Diffstat (limited to 'mcs/class/System/System.Diagnostics/ProcessModuleCollection.cs')
-rw-r--r-- | mcs/class/System/System.Diagnostics/ProcessModuleCollection.cs | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/mcs/class/System/System.Diagnostics/ProcessModuleCollection.cs b/mcs/class/System/System.Diagnostics/ProcessModuleCollection.cs index db11deedd46..7a29e8f83e3 100644 --- a/mcs/class/System/System.Diagnostics/ProcessModuleCollection.cs +++ b/mcs/class/System/System.Diagnostics/ProcessModuleCollection.cs @@ -33,9 +33,22 @@ using System.Collections; namespace System.Diagnostics { - public class ProcessModuleCollection : ReadOnlyCollectionBase +#if NET_2_1 + public class ProcessModuleCollectionBase : System.Collections.Generic.List<ProcessModule> + { + protected ProcessModuleCollectionBase InnerList { + get { return this; } + } + } +#endif + + public class ProcessModuleCollection : +#if !NET_2_1 + ReadOnlyCollectionBase +#else + ProcessModuleCollectionBase +#endif { - protected ProcessModuleCollection() { } |