提交 3a2e7716 编写于 作者: J Jonathan Chambers

Use ReadOnlyCollectionBase for ProcessModuleCollection and...

Use ReadOnlyCollectionBase for ProcessModuleCollection and ProcessThreadCollection on unity profile to have compatibility with 2.0 profile (case 678271, case 614318)
上级 58c9bfa2
......@@ -33,7 +33,7 @@ using System.Collections;
namespace System.Diagnostics
{
#if NET_2_1
#if NET_2_1 && !UNITY
public class ProcessModuleCollectionBase : System.Collections.Generic.List<ProcessModule>
{
protected ProcessModuleCollectionBase InnerList {
......@@ -43,10 +43,10 @@ namespace System.Diagnostics
#endif
public class ProcessModuleCollection :
#if !NET_2_1
ReadOnlyCollectionBase
#else
#if NET_2_1 && !UNITY
ProcessModuleCollectionBase
#else
ReadOnlyCollectionBase
#endif
{
protected ProcessModuleCollection()
......
......@@ -33,7 +33,7 @@ using System.Collections;
namespace System.Diagnostics
{
#if NET_2_1
#if NET_2_1 && !UNITY
public class ProcessThreadCollectionBase : System.Collections.Generic.List<ProcessThread>
{
protected ProcessThreadCollectionBase InnerList {
......@@ -49,10 +49,10 @@ namespace System.Diagnostics
#endif
public class ProcessThreadCollection :
#if !NET_2_1
ReadOnlyCollectionBase
#else
#if NET_2_1 && !UNITY
ProcessThreadCollectionBase
#else
ReadOnlyCollectionBase
#endif
{
protected ProcessThreadCollection()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册