Skip to content

Commit 105bdf0

Browse files
committed
Updating the ordering of the checked keyword for the commented out checked operators
1 parent 0875a0c commit 105bdf0

8 files changed

+7
-13
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ public interface IAdditionOperators<TSelf, TOther, TResult>
2121
// /// <param name="right">The value which is added to <paramref name="left" />.</param>
2222
// /// <returns>The sum of <paramref name="left" /> and <paramref name="right" />.</returns>
2323
// /// <exception cref="OverflowException">The sum of <paramref name="left" /> and <paramref name="right" /> is not representable by <typeparamref name="TResult" />.</exception>
24-
// static abstract checked TResult operator +(TSelf left, TOther right);
24+
// static abstract TResult operator checked +(TSelf left, TOther right);
2525
}
2626
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ public interface IDecrementOperators<TSelf>
1717
// /// <param name="value">The value to decrement.</param>
1818
// /// <returns>The result of decrementing <paramref name="value" />.</returns>
1919
// /// <exception cref="OverflowException">The result of decrementing <paramref name="value" /> is not representable by <typeparamref name="TSelf" />.</exception>
20-
// static abstract checked TSelf operator --(TSelf value);
20+
// static abstract TSelf operator checked --(TSelf value);
2121
}
2222
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ public interface IDivisionOperators<TSelf, TOther, TResult>
2121
// /// <param name="right">The value which divides <paramref name="left" />.</param>
2222
// /// <returns>The quotient of <paramref name="left" /> divided-by <paramref name="right" />.</returns>
2323
// /// <exception cref="OverflowException">The quotient of <paramref name="left" /> divided-by <paramref name="right" /> is not representable by <typeparamref name="TResult" />.</exception>
24-
// static abstract checked TResult operator /(TSelf left, TOther right);
24+
// static abstract TResult operator checked /(TSelf left, TOther right);
2525
}
2626
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ public interface IIncrementOperators<TSelf>
1717
// /// <param name="value">The value to increment.</param>
1818
// /// <returns>The result of incrementing <paramref name="value" />.</returns>
1919
// /// <exception cref="OverflowException">The result of incrementing <paramref name="value" /> is not representable by <typeparamref name="TSelf" />.</exception>
20-
// static abstract checked TSelf operator ++(TSelf value);
20+
// static abstract TSelf operator checked ++(TSelf value);
2121
}
2222
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ public interface IMultiplyOperators<TSelf, TOther, TResult>
2121
// /// <param name="right">The value which multiplies <paramref name="left" />.</param>
2222
// /// <returns>The product of <paramref name="left" /> divided-by <paramref name="right" />.</returns>
2323
// /// <exception cref="OverflowException">The product of <paramref name="left" /> multiplied-by <paramref name="right" /> is not representable by <typeparamref name="TResult" />.</exception>
24-
// static abstract checked TResult operator *(TSelf left, TOther right);
24+
// static abstract TResult operator checked *(TSelf left, TOther right);
2525
}
2626
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ public interface ISubtractionOperators<TSelf, TOther, TResult>
2121
// /// <param name="right">The value which is subtracted from <paramref name="left" />.</param>
2222
// /// <returns>The difference of <paramref name="right" /> subtracted from <paramref name="left" />.</returns>
2323
// /// <exception cref="OverflowException">The difference of <paramref name="right" /> subtracted from <paramref name="left" /> is not representable by <typeparamref name="TResult" />.</exception>
24-
// static abstract checked TResult operator -(TSelf left, TOther right);
24+
// static abstract TResult operator checked -(TSelf left, TOther right);
2525
}
2626
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ public interface IUnaryNegationOperators<TSelf, TResult>
1818
// /// <param name="value">The value for which to compute its unary negation.</param>
1919
// /// <returns>The unary negation of <paramref name="value" />.</returns>
2020
// /// <exception cref="OverflowException">The unary negation of <paramref name="value" /> is not representable by <typeparamref name="TResult" />.</exception>
21-
// static abstract checked TResult operator -(TSelf value);
21+
// static abstract TResult operator checked -(TSelf value);
2222
}
2323
}

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

-6
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,5 @@ public interface IUnaryPlusOperators<TSelf, TResult>
1313
/// <param name="value">The value for which to compute its unary plus.</param>
1414
/// <returns>The unary plus of <paramref name="value" />.</returns>
1515
static abstract TResult operator +(TSelf value);
16-
17-
// /// <summary>Computes the unary plus of a value.</summary>
18-
// /// <param name="value">The value for which to compute its unary plus.</param>
19-
// /// <returns>The unary plus of <paramref name="value" />.</returns>
20-
// /// <exception cref="OverflowException">The unary plus of <paramref name="value" /> is not representable by <typeparamref name="TResult" />.</exception>
21-
// static abstract checked TResult operator +(TSelf value);
2216
}
2317
}

0 commit comments

Comments
 (0)