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

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/Collections/ListDictionaryInternal.cs')
-rw-r--r--src/System.Private.CoreLib/shared/System/Collections/ListDictionaryInternal.cs36
1 files changed, 16 insertions, 20 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Collections/ListDictionaryInternal.cs b/src/System.Private.CoreLib/shared/System/Collections/ListDictionaryInternal.cs
index a8b7a187d..6045778ab 100644
--- a/src/System.Private.CoreLib/shared/System/Collections/ListDictionaryInternal.cs
+++ b/src/System.Private.CoreLib/shared/System/Collections/ListDictionaryInternal.cs
@@ -20,24 +20,20 @@ namespace System.Collections
/// This should not be used if performance is important for large numbers of elements.
[Serializable]
[System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
-#if CORERT
- public
-#else
- internal
-#endif
- class ListDictionaryInternal : IDictionary
+ // Needs to be public to support binary serialization compatibility
+ public class ListDictionaryInternal : IDictionary
{
private DictionaryNode head; // Do not rename (binary serialization)
private int version; // Do not rename (binary serialization)
private int count; // Do not rename (binary serialization)
[NonSerialized]
- private Object _syncRoot;
+ private object _syncRoot;
public ListDictionaryInternal()
{
}
- public Object this[Object key]
+ public object this[object key]
{
get
{
@@ -138,13 +134,13 @@ namespace System.Collections
}
}
- public Object SyncRoot
+ public object SyncRoot
{
get
{
if (_syncRoot == null)
{
- System.Threading.Interlocked.CompareExchange<Object>(ref _syncRoot, new Object(), null);
+ System.Threading.Interlocked.CompareExchange<object>(ref _syncRoot, new object(), null);
}
return _syncRoot;
}
@@ -158,7 +154,7 @@ namespace System.Collections
}
}
- public void Add(Object key, Object value)
+ public void Add(object key, object value)
{
if (key == null)
{
@@ -205,7 +201,7 @@ namespace System.Collections
version++;
}
- public bool Contains(Object key)
+ public bool Contains(object key)
{
if (key == null)
{
@@ -252,7 +248,7 @@ namespace System.Collections
return new NodeEnumerator(this);
}
- public void Remove(Object key)
+ public void Remove(object key)
{
if (key == null)
{
@@ -300,7 +296,7 @@ namespace System.Collections
current = null;
}
- public Object Current
+ public object Current
{
get
{
@@ -320,7 +316,7 @@ namespace System.Collections
}
}
- public Object Key
+ public object Key
{
get
{
@@ -332,7 +328,7 @@ namespace System.Collections
}
}
- public Object Value
+ public object Value
{
get
{
@@ -426,7 +422,7 @@ namespace System.Collections
}
}
- Object ICollection.SyncRoot
+ object ICollection.SyncRoot
{
get
{
@@ -457,7 +453,7 @@ namespace System.Collections
current = null;
}
- public Object Current
+ public object Current
{
get
{
@@ -505,8 +501,8 @@ namespace System.Collections
[Serializable]
private class DictionaryNode
{
- public Object key;
- public Object value;
+ public object key;
+ public object value;
public DictionaryNode next;
}
}