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/src/System/Array.CoreRT.cs')
-rw-r--r--src/System.Private.CoreLib/src/System/Array.CoreRT.cs46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/System.Private.CoreLib/src/System/Array.CoreRT.cs b/src/System.Private.CoreLib/src/System/Array.CoreRT.cs
index 80c4d2bbf..f4c57285a 100644
--- a/src/System.Private.CoreLib/src/System/Array.CoreRT.cs
+++ b/src/System.Private.CoreLib/src/System/Array.CoreRT.cs
@@ -445,7 +445,7 @@ namespace System
ref object refDestinationArray = ref Unsafe.As<byte, object>(ref destinationArray.GetRawArrayData());
for (int i = 0; i < length; i++)
{
- Object boxedValue = RuntimeImports.RhBox(sourceElementEEType, pElement);
+ object boxedValue = RuntimeImports.RhBox(sourceElementEEType, pElement);
Unsafe.Add(ref refDestinationArray, destinationIndex + i) = boxedValue;
pElement += sourceElementSize;
}
@@ -474,7 +474,7 @@ namespace System
for (int i = 0; i < length; i++)
{
- Object boxedValue = Unsafe.Add(ref refSourceArray, sourceIndex + i);
+ object boxedValue = Unsafe.Add(ref refSourceArray, sourceIndex + i);
if (boxedValue == null)
{
if (!isNullable)
@@ -918,7 +918,7 @@ namespace System
if (length > MaxArrayLength)
maxArrayDimensionLengthOverflow = true;
totalLength = totalLength * (ulong)length;
- if (totalLength > Int32.MaxValue)
+ if (totalLength > int.MaxValue)
throw new OutOfMemoryException(); // "Array dimensions exceeded supported range."
}
@@ -938,14 +938,14 @@ namespace System
}
// Wraps an IComparer inside an IComparer<Object>.
- private sealed class ComparerAsComparerT : IComparer<Object>
+ private sealed class ComparerAsComparerT : IComparer<object>
{
public ComparerAsComparerT(IComparer comparer)
{
_comparer = (comparer == null) ? Comparer.Default : comparer;
}
- public int Compare(Object x, Object y)
+ public int Compare(object x, object y)
{
return _comparer.Compare(x, y);
}
@@ -999,7 +999,7 @@ namespace System
return Length - 1;
}
- public unsafe Object GetValue(int index)
+ public unsafe object GetValue(int index)
{
if (!IsSzArray)
{
@@ -1018,7 +1018,7 @@ namespace System
return GetValueWithFlattenedIndex_NoErrorCheck(index);
}
- public unsafe Object GetValue(int index1, int index2)
+ public unsafe object GetValue(int index1, int index2)
{
if (Rank != 2)
throw new ArgumentException(SR.Arg_Need2DArray);
@@ -1029,7 +1029,7 @@ namespace System
return GetValue(pIndices, 2);
}
- public unsafe Object GetValue(int index1, int index2, int index3)
+ public unsafe object GetValue(int index1, int index2, int index3)
{
if (Rank != 3)
throw new ArgumentException(SR.Arg_Need3DArray);
@@ -1041,7 +1041,7 @@ namespace System
return GetValue(pIndices, 3);
}
- public unsafe Object GetValue(params int[] indices)
+ public unsafe object GetValue(params int[] indices)
{
if (indices == null)
throw new ArgumentNullException(nameof(indices));
@@ -1059,7 +1059,7 @@ namespace System
return GetValue(pIndices, length);
}
- private unsafe Object GetValue(int* pIndices, int rank)
+ private unsafe object GetValue(int* pIndices, int rank)
{
Debug.Assert(Rank == rank);
Debug.Assert(!IsSzArray);
@@ -1085,7 +1085,7 @@ namespace System
return GetValueWithFlattenedIndex_NoErrorCheck(flattenedIndex);
}
- private Object GetValueWithFlattenedIndex_NoErrorCheck(int flattenedIndex)
+ private object GetValueWithFlattenedIndex_NoErrorCheck(int flattenedIndex)
{
ref byte element = ref Unsafe.AddByteOffset(ref GetRawArrayData(), (nuint)flattenedIndex * ElementSize);
@@ -1101,7 +1101,7 @@ namespace System
}
}
- public unsafe void SetValue(Object value, int index)
+ public unsafe void SetValue(object value, int index)
{
if (!IsSzArray)
{
@@ -1146,7 +1146,7 @@ namespace System
}
}
- public unsafe void SetValue(Object value, int index1, int index2)
+ public unsafe void SetValue(object value, int index1, int index2)
{
if (Rank != 2)
throw new ArgumentException(SR.Arg_Need2DArray);
@@ -1157,7 +1157,7 @@ namespace System
SetValue(value, pIndices, 2);
}
- public unsafe void SetValue(Object value, int index1, int index2, int index3)
+ public unsafe void SetValue(object value, int index1, int index2, int index3)
{
if (Rank != 3)
throw new ArgumentException(SR.Arg_Need3DArray);
@@ -1169,7 +1169,7 @@ namespace System
SetValue(value, pIndices, 3);
}
- public unsafe void SetValue(Object value, params int[] indices)
+ public unsafe void SetValue(object value, params int[] indices)
{
if (indices == null)
throw new ArgumentNullException(nameof(indices));
@@ -1193,7 +1193,7 @@ namespace System
}
}
- private unsafe void SetValue(Object value, int* pIndices, int rank)
+ private unsafe void SetValue(object value, int* pIndices, int rank)
{
Debug.Assert(Rank == rank);
Debug.Assert(!IsSzArray);
@@ -1241,7 +1241,7 @@ namespace System
{
throw new InvalidCastException(SR.InvalidCast_StoreArrayElement);
}
- Unsafe.As<byte, Object>(ref element) = value;
+ Unsafe.As<byte, object>(ref element) = value;
}
}
@@ -1255,7 +1255,7 @@ namespace System
private sealed partial class ArrayEnumerator : IEnumerator, ICloneable
{
- public Object Current
+ public object Current
{
get
{
@@ -1332,9 +1332,9 @@ namespace System
static void SortImpl(Array keys, Array items, int index, int length, IComparer comparer)
{
- IComparer<Object> comparerT = new ComparerAsComparerT(comparer);
- Object[] objKeys = keys as Object[];
- Object[] objItems = items as Object[];
+ IComparer<object> comparerT = new ComparerAsComparerT(comparer);
+ object[] objKeys = keys as object[];
+ object[] objItems = items as object[];
// Unfortunately, on Project N, we don't have the ability to specialize ArraySortHelper<> on demand
// for value types. Rather than incur a boxing cost on every compare and every swap (and maintain a separate introsort algorithm
@@ -1343,12 +1343,12 @@ namespace System
// Check if either of the arrays need to be copied.
if (objKeys == null)
{
- objKeys = new Object[index + length];
+ objKeys = new object[index + length];
Array.CopyImplValueTypeArrayToReferenceArray(keys, index, objKeys, index, length, reliable: false);
}
if (objItems == null && items != null)
{
- objItems = new Object[index + length];
+ objItems = new object[index + length];
Array.CopyImplValueTypeArrayToReferenceArray(items, index, objItems, index, length, reliable: false);
}