Skip to content

Commit

Permalink
These should have been private.
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed Aug 20, 2024
1 parent 55e17a5 commit acf5682
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/IKVM.Runtime/System/Index.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if NETSTANDARD2_1
#if NETSTANDARD2_1 || NET
using System.Runtime.CompilerServices;
[assembly: TypeForwardedTo(typeof(System.Index))]
#else
using System.Runtime.CompilerServices;
Expand All @@ -17,7 +18,7 @@ namespace System;
/// int lastElement = someArray[^1]; // lastElement = 5
/// </code>
/// </remarks>
public readonly struct Index : IEquatable<Index>
readonly struct Index : IEquatable<Index>
{
private readonly int _value;

Expand Down
5 changes: 3 additions & 2 deletions src/IKVM.Runtime/System/Range.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if NETSTANDARD2_1
#if NETSTANDARD2_1 || NET
using System.Runtime.CompilerServices;
[assembly: TypeForwardedTo(typeof(System.Range))]
#else
using System.Runtime.CompilerServices;
Expand All @@ -18,7 +19,7 @@ namespace System;
/// int[] subArray2 = someArray[1..^0]; // { 2, 3, 4, 5 }
/// </code>
/// </remarks>
public readonly struct Range : IEquatable<Range>
readonly struct Range : IEquatable<Range>
{
/// <summary>Represent the inclusive start index of the Range.</summary>
public Index Start { get; }
Expand Down

0 comments on commit acf5682

Please sign in to comment.