Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJb Evain <jbevain@gmail.com>2007-08-03 21:32:44 +0400
committerJb Evain <jbevain@gmail.com>2007-08-03 21:32:44 +0400
commite8dcf3eef81d37f367164bdfa5b181103e2b108f (patch)
treef8b425b556b9879275bd3aaf08d594a87c35c73f /mcs/class/System/System.Diagnostics/ProcessModuleCollection.cs
parent8d7c5a9f3dd01f389d7c3a7e0928c19a0214cee2 (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.cs17
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()
{
}