Skip to content

Commit e294559

Browse files
committed
Make the internal helper named IsTypeSupported to not conflict with mono's existing check
1 parent c3c8229 commit e294559

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

src/libraries/System.Private.CoreLib/src/System/Numerics/Vector_1.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public static int Count
152152
}
153153
}
154154

155-
internal static bool IsSupported
155+
internal static bool IsTypeSupported
156156
{
157157
[MethodImpl(MethodImplOptions.AggressiveInlining)]
158158
get => (typeof(T) == typeof(byte)) ||
@@ -193,7 +193,7 @@ internal unsafe string DisplayString
193193
{
194194
get
195195
{
196-
if (IsSupported)
196+
if (IsTypeSupported)
197197
{
198198
return ToString();
199199
}

src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector128_1.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static int Count
6161
}
6262
}
6363

64-
internal static bool IsSupported
64+
internal static bool IsTypeSupported
6565
{
6666
[MethodImpl(MethodImplOptions.AggressiveInlining)]
6767
get => (typeof(T) == typeof(byte)) ||
@@ -92,7 +92,7 @@ internal unsafe string DisplayString
9292
{
9393
get
9494
{
95-
if (IsSupported)
95+
if (IsTypeSupported)
9696
{
9797
return ToString();
9898
}

src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector256_1.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static int Count
6363
}
6464
}
6565

66-
internal static bool IsSupported
66+
internal static bool IsTypeSupported
6767
{
6868
[MethodImpl(MethodImplOptions.AggressiveInlining)]
6969
get => (typeof(T) == typeof(byte)) ||
@@ -94,7 +94,7 @@ internal unsafe string DisplayString
9494
{
9595
get
9696
{
97-
if (IsSupported)
97+
if (IsTypeSupported)
9898
{
9999
return ToString();
100100
}

src/libraries/System.Private.CoreLib/src/System/Runtime/Intrinsics/Vector64_1.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static int Count
4444
}
4545
}
4646

47-
internal static bool IsSupported
47+
internal static bool IsTypeSupported
4848
{
4949
[MethodImpl(MethodImplOptions.AggressiveInlining)]
5050
get => (typeof(T) == typeof(byte)) ||
@@ -75,7 +75,7 @@ internal unsafe string DisplayString
7575
{
7676
get
7777
{
78-
if (IsSupported)
78+
if (IsTypeSupported)
7979
{
8080
return ToString();
8181
}

src/libraries/System.Private.CoreLib/src/System/ThrowHelper.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ internal static void IfNullAndNullsAreIllegalThenThrow<T>(object? value, Excepti
560560
[MethodImpl(MethodImplOptions.AggressiveInlining)]
561561
internal static void ThrowForUnsupportedNumericsVectorBaseType<T>() where T : struct
562562
{
563-
if (!Vector<T>.IsSupported)
563+
if (!Vector<T>.IsTypeSupported)
564564
{
565565
ThrowNotSupportedException(ExceptionResource.Arg_TypeNotSupported);
566566
}
@@ -572,7 +572,7 @@ internal static void ThrowForUnsupportedNumericsVectorBaseType<T>() where T : st
572572
[MethodImpl(MethodImplOptions.AggressiveInlining)]
573573
internal static void ThrowForUnsupportedIntrinsicsVector64BaseType<T>() where T : struct
574574
{
575-
if (!Vector64<T>.IsSupported)
575+
if (!Vector64<T>.IsTypeSupported)
576576
{
577577
ThrowNotSupportedException(ExceptionResource.Arg_TypeNotSupported);
578578
}
@@ -584,7 +584,7 @@ internal static void ThrowForUnsupportedIntrinsicsVector64BaseType<T>() where T
584584
[MethodImpl(MethodImplOptions.AggressiveInlining)]
585585
internal static void ThrowForUnsupportedIntrinsicsVector128BaseType<T>() where T : struct
586586
{
587-
if (!Vector128<T>.IsSupported)
587+
if (!Vector128<T>.IsTypeSupported)
588588
{
589589
ThrowNotSupportedException(ExceptionResource.Arg_TypeNotSupported);
590590
}
@@ -596,7 +596,7 @@ internal static void ThrowForUnsupportedIntrinsicsVector128BaseType<T>() where T
596596
[MethodImpl(MethodImplOptions.AggressiveInlining)]
597597
internal static void ThrowForUnsupportedIntrinsicsVector256BaseType<T>() where T : struct
598598
{
599-
if (!Vector256<T>.IsSupported)
599+
if (!Vector256<T>.IsTypeSupported)
600600
{
601601
ThrowNotSupportedException(ExceptionResource.Arg_TypeNotSupported);
602602
}

0 commit comments

Comments
 (0)