diff --git a/eng/CodeAnalysis.src.globalconfig b/eng/CodeAnalysis.src.globalconfig
index e1a620e8a7fac..831a1b9cfb4ca 100644
--- a/eng/CodeAnalysis.src.globalconfig
+++ b/eng/CodeAnalysis.src.globalconfig
@@ -866,7 +866,8 @@ dotnet_diagnostic.IL3002.severity = warning
dotnet_diagnostic.SA0001.severity = none
# SA1000: Spacing around keywords
-dotnet_diagnostic.SA1000.severity = warning
+# suggestion until https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/3478 is resolved
+dotnet_diagnostic.SA1000.severity = suggestion
# SA1001: Commas should not be preceded by whitespace
dotnet_diagnostic.SA1001.severity = warning
diff --git a/src/libraries/System.Private.CoreLib/src/System/Byte.cs b/src/libraries/System.Private.CoreLib/src/System/Byte.cs
index 1300066cd4d70..a09f978be8ce0 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Byte.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Byte.cs
@@ -300,8 +300,8 @@ object IConvertible.ToType(Type type, IFormatProvider? provider)
///
static byte IAdditionOperators.operator +(byte left, byte right) => (byte)(left + right);
- // ///
- // static byte IAdditionOperators.operator checked +(byte left, byte right) => checked((byte)(left + right));
+ ///
+ static byte IAdditionOperators.operator checked +(byte left, byte right) => checked((byte)(left + right));
//
// IAdditiveIdentity
@@ -381,8 +381,8 @@ object IConvertible.ToType(Type type, IFormatProvider? provider)
///
static byte IDecrementOperators.operator --(byte value) => --value;
- // ///
- // static byte IDecrementOperators.operator checked --(byte value) => checked(--value);
+ ///
+ static byte IDecrementOperators.operator checked --(byte value) => checked(--value);
//
// IDivisionOperators
@@ -391,8 +391,8 @@ object IConvertible.ToType(Type type, IFormatProvider? provider)
///
static byte IDivisionOperators.operator /(byte left, byte right) => (byte)(left / right);
- // ///
- // static byte IDivisionOperators.operator checked /(byte left, byte right) => checked((byte)(left / right));
+ ///
+ static byte IDivisionOperators.operator checked /(byte left, byte right) => (byte)(left / right);
//
// IEqualityOperators
@@ -411,8 +411,8 @@ object IConvertible.ToType(Type type, IFormatProvider? provider)
///
static byte IIncrementOperators.operator ++(byte value) => ++value;
- // ///
- // static byte IIncrementOperators.operator checked ++(byte value) => checked(++value);
+ ///
+ static byte IIncrementOperators.operator checked ++(byte value) => checked(++value);
//
// IMinMaxValue
@@ -445,8 +445,8 @@ object IConvertible.ToType(Type type, IFormatProvider? provider)
///
static byte IMultiplyOperators.operator *(byte left, byte right) => (byte)(left * right);
- // ///
- // static byte IMultiplyOperators.operator checked *(byte left, byte right) => checked((byte)(left * right));
+ ///
+ static byte IMultiplyOperators.operator checked *(byte left, byte right) => checked((byte)(left * right));
//
// INumber
@@ -937,8 +937,8 @@ public static bool TryCreate(TOther value, out byte result)
///
static byte ISubtractionOperators.operator -(byte left, byte right) => (byte)(left - right);
- // ///
- // static byte ISubtractionOperators.operator checked -(byte left, byte right) => checked((byte)(left - right));
+ ///
+ static byte ISubtractionOperators.operator checked -(byte left, byte right) => checked((byte)(left - right));
//
// IUnaryNegationOperators
@@ -947,8 +947,8 @@ public static bool TryCreate(TOther value, out byte result)
///
static byte IUnaryNegationOperators.operator -(byte value) => (byte)(-value);
- // ///
- // static byte IUnaryNegationOperators.operator checked -(byte value) => checked((byte)(-value));
+ ///
+ static byte IUnaryNegationOperators.operator checked -(byte value) => checked((byte)(-value));
//
// IUnaryPlusOperators
diff --git a/src/libraries/System.Private.CoreLib/src/System/Char.cs b/src/libraries/System.Private.CoreLib/src/System/Char.cs
index 06c575f509e95..bef8526bf066d 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Char.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Char.cs
@@ -1068,8 +1068,8 @@ public static int ConvertToUtf32(string s, int index)
///
static char IAdditionOperators.operator +(char left, char right) => (char) (left + right);
- // ///
- // static char IAdditionOperators.operator checked +(char left, char right) => checked((char)(left + right));
+ ///
+ static char IAdditionOperators.operator checked +(char left, char right) => checked((char)(left + right));
//
// IAdditiveIdentity
@@ -1149,8 +1149,8 @@ public static int ConvertToUtf32(string s, int index)
///
static char IDecrementOperators.operator --(char value) => --value;
- // ///
- // static char IDecrementOperators.operator checked --(char value) => checked(--value);
+ ///
+ static char IDecrementOperators.operator checked --(char value) => checked(--value);
//
// IDivisionOperators
@@ -1159,8 +1159,8 @@ public static int ConvertToUtf32(string s, int index)
///
static char IDivisionOperators.operator /(char left, char right) => (char)(left / right);
- // ///
- // static char IDivisionOperators.operator /(char left, char right) => checked((char)(left / right));
+ ///
+ static char IDivisionOperators.operator checked /(char left, char right) => (char)(left / right);
//
// IEqualityOperators
@@ -1179,8 +1179,8 @@ public static int ConvertToUtf32(string s, int index)
///
static char IIncrementOperators.operator ++(char value) => ++value;
- // ///
- // static char IIncrementOperators.operator checked ++(char value) => checked(++value);
+ ///
+ static char IIncrementOperators.operator checked ++(char value) => checked(++value);
//
// IMinMaxValue
@@ -1213,8 +1213,8 @@ public static int ConvertToUtf32(string s, int index)
///
static char IMultiplyOperators.operator *(char left, char right) => (char)(left * right);
- // ///
- // static char IMultiplyOperators.operator checked *(char left, char right) => checked((char)(left * right));
+ ///
+ static char IMultiplyOperators.operator checked *(char left, char right) => checked((char)(left * right));
//
// INumber
@@ -1733,8 +1733,8 @@ static bool ISpanParsable.TryParse(ReadOnlySpan s, IFormatProvider?
///
static char ISubtractionOperators.operator -(char left, char right) => (char)(left - right);
- // ///
- // static char ISubtractionOperators.operator checked -(char left, char right) => checked((char)(left - right));
+ ///
+ static char ISubtractionOperators.operator checked -(char left, char right) => checked((char)(left - right));
//
// IUnaryNegationOperators
@@ -1743,8 +1743,8 @@ static bool ISpanParsable.TryParse(ReadOnlySpan s, IFormatProvider?
///
static char IUnaryNegationOperators.operator -(char value) => (char)(-value);
- // ///
- // static char IUnaryNegationOperators.operator checked -(char value) => checked((char)(-value));
+ ///
+ static char IUnaryNegationOperators.operator checked -(char value) => checked((char)(-value));
//
// IUnaryPlusOperators
diff --git a/src/libraries/System.Private.CoreLib/src/System/DateTime.cs b/src/libraries/System.Private.CoreLib/src/System/DateTime.cs
index b3cc06c3725fa..a7bd97628c648 100644
--- a/src/libraries/System.Private.CoreLib/src/System/DateTime.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/DateTime.cs
@@ -1511,8 +1511,8 @@ internal static bool TryCreate(int year, int month, int day, int hour, int minut
// IAdditionOperators
//
- // ///
- // static DateTime IAdditionOperators.operator checked +(DateTime left, TimeSpan right) => checked(left + right);
+ ///
+ static DateTime IAdditionOperators.operator checked +(DateTime left, TimeSpan right) => left + right;
//
// IAdditiveIdentity
@@ -1550,10 +1550,10 @@ internal static bool TryCreate(int year, int month, int day, int hour, int minut
// ISubtractionOperators
//
- // ///
- // static DateTime ISubtractionOperators.operator checked -(DateTime left, TimeSpan right) => checked(left - right);
+ ///
+ static DateTime ISubtractionOperators.operator checked -(DateTime left, TimeSpan right) => left - right;
- // ///
- // static TimeSpan ISubtractionOperators.operator checked -(DateTime left, DateTime right) => checked(left - right);
+ ///
+ static TimeSpan ISubtractionOperators.operator checked -(DateTime left, DateTime right) => left - right;
}
}
diff --git a/src/libraries/System.Private.CoreLib/src/System/DateTimeOffset.cs b/src/libraries/System.Private.CoreLib/src/System/DateTimeOffset.cs
index 61c57ed07c9a1..bb064a960099c 100644
--- a/src/libraries/System.Private.CoreLib/src/System/DateTimeOffset.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/DateTimeOffset.cs
@@ -867,8 +867,8 @@ public static implicit operator DateTimeOffset(DateTime dateTime) =>
// IAdditionOperators
//
- // ///
- // static DateTimeOffset IAdditionOperators.operator checked +(DateTimeOffset left, TimeSpan right) => checked(left + right);
+ ///
+ static DateTimeOffset IAdditionOperators.operator checked +(DateTimeOffset left, TimeSpan right) => left + right;
//
// IAdditiveIdentity
@@ -906,10 +906,10 @@ public static implicit operator DateTimeOffset(DateTime dateTime) =>
// ISubtractionOperators
//
- // ///
- // static DateTimeOffset ISubtractionOperators.operator checked -(DateTimeOffset left, TimeSpan right) => checked(left - right);
+ ///
+ static DateTimeOffset ISubtractionOperators.operator checked -(DateTimeOffset left, TimeSpan right) => left - right;
- // ///
- // static TimeSpan ISubtractionOperators.operator checked -(DateTimeOffset left, DateTimeOffset right) => checked(left - right);
+ ///
+ static TimeSpan ISubtractionOperators.operator checked -(DateTimeOffset left, DateTimeOffset right) => left - right;
}
}
diff --git a/src/libraries/System.Private.CoreLib/src/System/Decimal.cs b/src/libraries/System.Private.CoreLib/src/System/Decimal.cs
index e6d63b7fa6ad8..a73492e7b26f8 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Decimal.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Decimal.cs
@@ -1082,8 +1082,8 @@ object IConvertible.ToType(Type type, IFormatProvider? provider)
// IAdditionOperators
//
- // ///
- // static decimal IAdditionOperators.operator checked +(decimal left, decimal right) => checked(left + right);
+ ///
+ static decimal IAdditionOperators.operator checked +(decimal left, decimal right) => left + right;
//
// IAdditiveIdentity
@@ -1096,22 +1096,22 @@ object IConvertible.ToType(Type type, IFormatProvider? provider)
// IDecrementOperators
//
- // ///
- // static decimal IDecrementOperators.operator checked --(decimal value) => checked(--value);
+ ///
+ static decimal IDecrementOperators.operator checked --(decimal value) => --value;
//
// IDivisionOperators
//
- // ///
- // static decimal IDivisionOperators.operator checked /(decimal left, decimal right) => checked(left / right);
+ ///
+ static decimal IDivisionOperators.operator checked /(decimal left, decimal right) => left / right;
//
// IIncrementOperators
//
- // ///
- // static decimal IIncrementOperators.operator checked ++(decimal value) => checked(++value);
+ ///
+ static decimal IIncrementOperators.operator checked ++(decimal value) => ++value;
//
// IMinMaxValue
@@ -1134,8 +1134,8 @@ object IConvertible.ToType(Type type, IFormatProvider? provider)
// IMultiplyOperators
//
- // ///
- // public static decimal operator checked *(decimal left, decimal right) => checked(left * right);
+ ///
+ public static decimal operator checked *(decimal left, decimal right) => left * right;
//
// INumber
@@ -1504,14 +1504,14 @@ public static bool TryCreate(TOther value, out decimal result)
// ISubtractionOperators
//
- // ///
- // static decimal ISubtractionOperators.operator checked -(decimal left, decimal right) => checked(left - right);
+ ///
+ static decimal ISubtractionOperators.operator checked -(decimal left, decimal right) => left - right;
//
// IUnaryNegationOperators
//
- // ///
- // static decimal IUnaryNegationOperators.operator checked -(decimal value) => checked(-value);
+ ///
+ static decimal IUnaryNegationOperators.operator checked -(decimal value) => -value;
}
}
diff --git a/src/libraries/System.Private.CoreLib/src/System/Double.cs b/src/libraries/System.Private.CoreLib/src/System/Double.cs
index 56ef392dec225..63348c8ba5846 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Double.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Double.cs
@@ -491,8 +491,8 @@ object IConvertible.ToType(Type type, IFormatProvider? provider)
///
static double IAdditionOperators.operator +(double left, double right) => left + right;
- // ///
- // static double IAdditionOperators.operator checked +(double left, double right) => checked(left + right);
+ ///
+ static double IAdditionOperators.operator checked +(double left, double right) => left + right;
//
// IAdditiveIdentity
@@ -560,8 +560,8 @@ public static bool IsPow2(double value)
///
static double IDecrementOperators.operator --(double value) => --value;
- // ///
- // static double IDecrementOperators.operator checked --(double value) => checked(--value);
+ ///
+ static double IDecrementOperators.operator checked --(double value) => --value;
//
// IDivisionOperators
@@ -570,8 +570,8 @@ public static bool IsPow2(double value)
///
static double IDivisionOperators.operator /(double left, double right) => left / right;
- // ///
- // static double IDivisionOperators.operator checked /(double left, double right) => checked(left / right);
+ ///
+ static double IDivisionOperators.operator checked /(double left, double right) => left / right;
//
// IExponentialFunctions
@@ -716,8 +716,8 @@ public static bool IsPow2(double value)
///
static double IIncrementOperators.operator ++(double value) => ++value;
- // ///
- // static double IIncrementOperators.operator checked ++(double value) => checked(++value);
+ ///
+ static double IIncrementOperators.operator checked ++(double value) => ++value;
//
// ILogarithmicFunctions
@@ -772,10 +772,10 @@ public static bool IsPow2(double value)
//
///
- static double IMultiplyOperators.operator *(double left, double right) => (double)(left * right);
+ static double IMultiplyOperators.operator *(double left, double right) => left * right;
- // ///
- // static double IMultiplyOperators.operator checked *(double left, double right) => checked((double)(left * right));
+ ///
+ static double IMultiplyOperators.operator checked *(double left, double right) => left * right;
//
// INumber
@@ -1153,10 +1153,10 @@ public static bool TryCreate(TOther value, out double result)
//
///
- static double ISubtractionOperators.operator -(double left, double right) => (double)(left - right);
+ static double ISubtractionOperators.operator -(double left, double right) => left - right;
- // ///
- // static double ISubtractionOperators.operator checked -(double left, double right) => checked((double)(left - right));
+ ///
+ static double ISubtractionOperators.operator checked -(double left, double right) => left - right;
//
// ITrigonometricFunctions
@@ -1212,10 +1212,10 @@ public static bool TryCreate(TOther value, out double result)
//
///
- static double IUnaryNegationOperators.operator -(double value) => (double)(-value);
+ static double IUnaryNegationOperators.operator -(double value) => -value;
- // ///
- // static double IUnaryNegationOperators.operator checked -(double value) => checked((double)(-value));
+ ///
+ static double IUnaryNegationOperators.operator checked -(double value) => -value;
//
// IUnaryPlusOperators
diff --git a/src/libraries/System.Private.CoreLib/src/System/Half.cs b/src/libraries/System.Private.CoreLib/src/System/Half.cs
index 730541d260f53..a51d6b11a23e4 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Half.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Half.cs
@@ -715,8 +715,8 @@ private static double CreateDoubleNaN(bool sign, ulong significand)
///
public static Half operator +(Half left, Half right) => (Half)((float)left + (float)right);
- // ///
- // static Half IAdditionOperators.operator checked +(Half left, Half right) => checked((Half)((float)left + (float)right));
+ ///
+ static Half IAdditionOperators.operator checked +(Half left, Half right) => left + right;
//
// IAdditiveIdentity
@@ -789,13 +789,8 @@ public static bool IsPow2(Half value)
return (Half)tmp;
}
- // ///
- // static Half IDecrementOperators.operator checked --(Half value)
- // {
- // var tmp = (float)value;
- // --tmp;
- // return (Half)tmp;
- // }
+ ///
+ static Half IDecrementOperators.operator checked --(Half value) => --value;
//
// IDivisionOperators
@@ -804,8 +799,8 @@ public static bool IsPow2(Half value)
///
public static Half operator /(Half left, Half right) => (Half)((float)left / (float)right);
- // ///
- // static Half IDivisionOperators.operator checked /(Half left, Half right) => checked((Half)((float)left / (float)right));
+ ///
+ static Half IDivisionOperators.operator checked /(Half left, Half right) => left / right;
//
// IExponentialFunctions
@@ -943,13 +938,8 @@ public static bool IsPow2(Half value)
return (Half)tmp;
}
- // ///
- // static Half IIncrementOperators.operator checked ++(Half value)
- // {
- // var tmp = (float)value;
- // ++tmp;
- // return (Half)tmp;
- // }
+ ///
+ static Half IIncrementOperators.operator checked ++(Half value) => ++value;
//
// ILogarithmicFunctions
@@ -994,8 +984,8 @@ public static bool IsPow2(Half value)
///
public static Half operator *(Half left, Half right) => (Half)((float)left * (float)right);
- // ///
- // static Half IMultiplyOperators.operator checked *(Half left, Half right) => checked((Half)((float)left * (float)right));
+ ///
+ static Half IMultiplyOperators.operator checked *(Half left, Half right) => left * right;
//
// INumber
@@ -1375,8 +1365,8 @@ public static bool TryCreate(TOther value, out Half result)
///
public static Half operator -(Half left, Half right) => (Half)((float)left - (float)right);
- // ///
- // static Half ISubtractionOperators.operator checked -(Half left, Half right) => checked((Half)((float)left - (float)right));
+ ///
+ static Half ISubtractionOperators.operator checked -(Half left, Half right) => left - right;
//
// ITrigonometricFunctions
@@ -1438,8 +1428,8 @@ public static (Half Sin, Half Cos) SinCos(Half x)
///
public static Half operator -(Half value) => (Half)(-(float)value);
- // ///
- // static Half IUnaryNegationOperators.operator checked -(Half value) => checked((Half)(-(float)value));
+ ///
+ static Half IUnaryNegationOperators.operator checked -(Half value) => -value;
//
// IUnaryPlusOperators
diff --git a/src/libraries/System.Private.CoreLib/src/System/Int16.cs b/src/libraries/System.Private.CoreLib/src/System/Int16.cs
index 9a03a4f27915c..041bccb2a7b6c 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Int16.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Int16.cs
@@ -306,8 +306,8 @@ object IConvertible.ToType(Type type, IFormatProvider? provider)
///
static short IAdditionOperators.operator +(short left, short right) => (short)(left + right);
- // ///
- // static short IAdditionOperators.operator checked +(short left, short right) => checked((short)(left + right));
+ ///
+ static short IAdditionOperators.operator checked +(short left, short right) => checked((short)(left + right));
//
// IAdditiveIdentity
@@ -394,8 +394,8 @@ public static short Log2(short value)
///
static short IDecrementOperators.operator --(short value) => --value;
- // ///
- // static short IDecrementOperators.operator checked --(short value) => checked(--value);
+ ///
+ static short IDecrementOperators.operator checked --(short value) => checked(--value);
//
// IDivisionOperators
@@ -404,8 +404,8 @@ public static short Log2(short value)
///
static short IDivisionOperators.operator /(short left, short right) => (short)(left / right);
- // ///
- // static short IDivisionOperators.operator checked /(short left, short right) => checked((short)(left / right));
+ ///
+ static short IDivisionOperators.operator checked /(short left, short right) => (short)(left / right);
//
// IEqualityOperators
@@ -424,8 +424,8 @@ public static short Log2(short value)
///
static short IIncrementOperators.operator ++(short value) => ++value;
- // ///
- // static short IIncrementOperators.operator checked ++(short value) => checked(++value);
+ ///
+ static short IIncrementOperators.operator checked ++(short value) => checked(++value);
//
// IMinMaxValue
@@ -458,8 +458,8 @@ public static short Log2(short value)
///
static short IMultiplyOperators.operator *(short left, short right) => (short)(left * right);
- // ///
- // static short IMultiplyOperators.operator checked *(short left, short right) => checked((short)(left * right));
+ ///
+ static short IMultiplyOperators.operator checked *(short left, short right) => checked((short)(left * right));
//
// INumber
@@ -1011,8 +1011,8 @@ public static bool TryCreate(TOther value, out short result)
///
static short ISubtractionOperators.operator -(short left, short right) => (short)(left - right);
- // ///
- // static short ISubtractionOperators.operator checked -(short left, short right) => checked((short)(left - right));
+ ///
+ static short ISubtractionOperators.operator checked -(short left, short right) => checked((short)(left - right));
//
// IUnaryNegationOperators
@@ -1021,8 +1021,8 @@ public static bool TryCreate(TOther value, out short result)
///
static short IUnaryNegationOperators.operator -(short value) => (short)(-value);
- // ///
- // static short IUnaryNegationOperators.operator checked -(short value) => checked((short)(-value));
+ ///
+ static short IUnaryNegationOperators.operator checked -(short value) => checked((short)(-value));
//
// IUnaryPlusOperators
diff --git a/src/libraries/System.Private.CoreLib/src/System/Int32.cs b/src/libraries/System.Private.CoreLib/src/System/Int32.cs
index a27ad79bcc043..4bb0900afe826 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Int32.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Int32.cs
@@ -298,8 +298,8 @@ object IConvertible.ToType(Type type, IFormatProvider? provider)
///
static int IAdditionOperators.operator +(int left, int right) => left + right;
- // ///
- // static int IAdditionOperators.operator checked +(int left, int right) => checked(left + right);
+ ///
+ static int IAdditionOperators.operator checked +(int left, int right) => checked(left + right);
//
// IAdditiveIdentity
@@ -386,8 +386,8 @@ public static int Log2(int value)
///
static int IDecrementOperators.operator --(int value) => --value;
- // ///
- // static int IDecrementOperators.operator checked --(int value) => checked(--value);
+ ///
+ static int IDecrementOperators.operator checked --(int value) => checked(--value);
//
// IDivisionOperators
@@ -396,8 +396,8 @@ public static int Log2(int value)
///
static int IDivisionOperators.operator /(int left, int right) => left / right;
- // ///
- // static int IDivisionOperators.operator checked /(int left, int right) => checked(left / right);
+ ///
+ static int IDivisionOperators.operator checked /(int left, int right) => left / right;
//
// IEqualityOperators
@@ -416,8 +416,8 @@ public static int Log2(int value)
///
static int IIncrementOperators.operator ++(int value) => ++value;
- // ///
- // static int IIncrementOperators.operator checked ++(int value) => checked(++value);
+ ///
+ static int IIncrementOperators.operator checked ++(int value) => checked(++value);
//
// IMinMaxValue
@@ -450,8 +450,8 @@ public static int Log2(int value)
///
static int IMultiplyOperators.operator *(int left, int right) => left * right;
- // ///
- // static int IMultiplyOperators.operator checked *(int left, int right) => checked(left * right);
+ ///
+ static int IMultiplyOperators.operator checked *(int left, int right) => checked(left * right);
//
// INumber
@@ -975,8 +975,8 @@ public static bool TryCreate(TOther value, out int result)
///
static int ISubtractionOperators.operator -(int left, int right) => left - right;
- // ///
- // static int ISubtractionOperators.operator checked -(int left, int right) => checked(left - right);
+ ///
+ static int ISubtractionOperators.operator checked -(int left, int right) => checked(left - right);
//
// IUnaryNegationOperators
@@ -985,8 +985,8 @@ public static bool TryCreate(TOther value, out int result)
///
static int IUnaryNegationOperators.operator -(int value) => -value;
- // ///
- // static int IUnaryNegationOperators.operator checked -(int value) => checked(-value);
+ ///
+ static int IUnaryNegationOperators.operator checked -(int value) => checked(-value);
//
// IUnaryPlusOperators
diff --git a/src/libraries/System.Private.CoreLib/src/System/Int64.cs b/src/libraries/System.Private.CoreLib/src/System/Int64.cs
index 15d22f401a8ba..cbd24e046043f 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Int64.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Int64.cs
@@ -285,8 +285,8 @@ object IConvertible.ToType(Type type, IFormatProvider? provider)
///
static long IAdditionOperators.operator +(long left, long right) => left + right;
- // ///
- // static long IAdditionOperators.operator checked +(long left, long right) => checked(left + right);
+ ///
+ static long IAdditionOperators.operator checked +(long left, long right) => checked(left + right);
//
// IAdditiveIdentity
@@ -373,8 +373,8 @@ public static long Log2(long value)
///
static long IDecrementOperators.operator --(long value) => --value;
- // ///
- // static long IDecrementOperators.operator checked --(long value) => checked(--value);
+ ///
+ static long IDecrementOperators.operator checked --(long value) => checked(--value);
//
// IDivisionOperators
@@ -383,8 +383,8 @@ public static long Log2(long value)
///
static long IDivisionOperators.operator /(long left, long right) => left / right;
- // ///
- // static long IDivisionOperators.operator checked /(long left, long right) => checked(left / right);
+ ///
+ static long IDivisionOperators.operator checked /(long left, long right) => left / right;
//
// IEqualityOperators
@@ -403,8 +403,8 @@ public static long Log2(long value)
///
static long IIncrementOperators.operator ++(long value) => ++value;
- // ///
- // static long IIncrementOperators.operator checked ++(long value) => checked(++value);
+ ///
+ static long IIncrementOperators.operator checked ++(long value) => checked(++value);
//
// IMinMaxValue
@@ -437,8 +437,8 @@ public static long Log2(long value)
///
static long IMultiplyOperators.operator *(long left, long right) => left * right;
- // ///
- // static long IMultiplyOperators.operator checked *(long left, long right) => checked(left * right);
+ ///
+ static long IMultiplyOperators.operator checked *(long left, long right) => checked(left * right);
//
// INumber
@@ -933,8 +933,8 @@ public static bool TryCreate(TOther value, out long result)
///
static long ISubtractionOperators.operator -(long left, long right) => left - right;
- // ///
- // static long ISubtractionOperators.operator checked -(long left, long right) => checked(left - right);
+ ///
+ static long ISubtractionOperators.operator checked -(long left, long right) => checked(left - right);
//
// IUnaryNegationOperators
@@ -943,8 +943,8 @@ public static bool TryCreate(TOther value, out long result)
///
static long IUnaryNegationOperators.operator -(long value) => -value;
- // ///
- // static long IUnaryNegationOperators.operator checked -(long value) => checked(-value);
+ ///
+ static long IUnaryNegationOperators.operator checked -(long value) => checked(-value);
//
// IUnaryPlusOperators
diff --git a/src/libraries/System.Private.CoreLib/src/System/IntPtr.cs b/src/libraries/System.Private.CoreLib/src/System/IntPtr.cs
index c085467da93b2..6ee443975b90a 100644
--- a/src/libraries/System.Private.CoreLib/src/System/IntPtr.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/IntPtr.cs
@@ -270,8 +270,8 @@ public static bool TryParse(ReadOnlySpan s, NumberStyles style, IFormatPro
///
static nint IAdditionOperators.operator +(nint left, nint right) => left + right;
- // ///
- // static nint IAdditionOperators.operator checked +(nint left, nint right) => checked(left + right);
+ ///
+ static nint IAdditionOperators.operator checked +(nint left, nint right) => checked(left + right);
//
// IAdditiveIdentity
@@ -416,8 +416,8 @@ static nint IBinaryNumber.Log2(nint value)
///
static nint IDecrementOperators.operator --(nint value) => --value;
- // ///
- // static nint IDecrementOperators.operator checked --(nint value) => checked(--value);
+ ///
+ static nint IDecrementOperators.operator checked --(nint value) => checked(--value);
//
// IDivisionOperators
@@ -426,8 +426,8 @@ static nint IBinaryNumber.Log2(nint value)
///
static nint IDivisionOperators.operator /(nint left, nint right) => left / right;
- // ///
- // static nint IDivisionOperators.operator checked /(nint left, nint right) => checked(left / right);
+ ///
+ static nint IDivisionOperators.operator checked /(nint left, nint right) => left / right;
//
// IIncrementOperators
@@ -436,8 +436,8 @@ static nint IBinaryNumber.Log2(nint value)
///
static nint IIncrementOperators.operator ++(nint value) => ++value;
- // ///
- // static nint IIncrementOperators.operator checked ++(nint value) => checked(++value);
+ ///
+ static nint IIncrementOperators.operator checked ++(nint value) => checked(++value);
//
// IMinMaxValue
@@ -470,8 +470,8 @@ static nint IBinaryNumber.Log2(nint value)
///
static nint IMultiplyOperators.operator *(nint left, nint right) => left * right;
- // ///
- // static nint IMultiplyOperators.operator checked *(nint left, nint right) => checked(left * right);
+ ///
+ static nint IMultiplyOperators.operator checked *(nint left, nint right) => checked(left * right);
//
// INumber
@@ -965,8 +965,8 @@ static bool INumber.TryCreate(TOther value, out nint result)
///
static nint ISubtractionOperators.operator -(nint left, nint right) => left - right;
- // ///
- // static nint ISubtractionOperators.operator checked -(nint left, nint right) => checked(left - right);
+ ///
+ static nint ISubtractionOperators.operator checked -(nint left, nint right) => checked(left - right);
//
// IUnaryNegationOperators
@@ -975,8 +975,8 @@ static bool INumber.TryCreate(TOther value, out nint result)
///
static nint IUnaryNegationOperators.operator -(nint value) => -value;
- // ///
- // static nint IUnaryNegationOperators.operator checked -(nint value) => checked(-value);
+ ///
+ static nint IUnaryNegationOperators.operator checked -(nint value) => checked(-value);
//
// IUnaryPlusOperators
diff --git a/src/libraries/System.Private.CoreLib/src/System/Numerics/IAdditionOperators.cs b/src/libraries/System.Private.CoreLib/src/System/Numerics/IAdditionOperators.cs
index 04634e242c768..2a23b40648fce 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Numerics/IAdditionOperators.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Numerics/IAdditionOperators.cs
@@ -16,11 +16,11 @@ public interface IAdditionOperators
/// The sum of and .
static abstract TResult operator +(TSelf left, TOther right);
- // /// Adds two values together to compute their sum.
- // /// The value to which is added.
- // /// The value which is added to .
- // /// The sum of and .
- // /// The sum of and is not representable by .
- // static abstract TResult operator checked +(TSelf left, TOther right);
+ /// Adds two values together to compute their sum.
+ /// The value to which is added.
+ /// The value which is added to .
+ /// The sum of and .
+ /// The sum of and is not representable by .
+ static abstract TResult operator checked +(TSelf left, TOther right);
}
}
diff --git a/src/libraries/System.Private.CoreLib/src/System/Numerics/IDecrementOperators.cs b/src/libraries/System.Private.CoreLib/src/System/Numerics/IDecrementOperators.cs
index 2071c47886bf4..49ad93519f5c2 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Numerics/IDecrementOperators.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Numerics/IDecrementOperators.cs
@@ -13,10 +13,10 @@ public interface IDecrementOperators
/// The result of decrementing .
static abstract TSelf operator --(TSelf value);
- // /// Decrements a value.
- // /// The value to decrement.
- // /// The result of decrementing .
- // /// The result of decrementing is not representable by .
- // static abstract TSelf operator checked --(TSelf value);
+ /// Decrements a value.
+ /// The value to decrement.
+ /// The result of decrementing .
+ /// The result of decrementing is not representable by .
+ static abstract TSelf operator checked --(TSelf value);
}
}
diff --git a/src/libraries/System.Private.CoreLib/src/System/Numerics/IDivisionOperators.cs b/src/libraries/System.Private.CoreLib/src/System/Numerics/IDivisionOperators.cs
index bd5f8d8c8618c..4c5548920c6da 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Numerics/IDivisionOperators.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Numerics/IDivisionOperators.cs
@@ -16,11 +16,11 @@ public interface IDivisionOperators
/// The quotient of divided-by .
static abstract TResult operator /(TSelf left, TOther right);
- // /// Divides two values together to compute their quotient.
- // /// The value which divides.
- // /// The value which divides .
- // /// The quotient of divided-by .
- // /// The quotient of divided-by is not representable by .
- // static abstract TResult operator checked /(TSelf left, TOther right);
+ /// Divides two values together to compute their quotient.
+ /// The value which divides.
+ /// The value which divides .
+ /// The quotient of divided-by .
+ /// The quotient of divided-by is not representable by .
+ static abstract TResult operator checked /(TSelf left, TOther right);
}
}
diff --git a/src/libraries/System.Private.CoreLib/src/System/Numerics/IIncrementOperators.cs b/src/libraries/System.Private.CoreLib/src/System/Numerics/IIncrementOperators.cs
index aec1348c0a9c9..3dd705603e473 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Numerics/IIncrementOperators.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Numerics/IIncrementOperators.cs
@@ -13,10 +13,10 @@ public interface IIncrementOperators
/// The result of incrementing .
static abstract TSelf operator ++(TSelf value);
- // /// Increments a value.
- // /// The value to increment.
- // /// The result of incrementing .
- // /// The result of incrementing is not representable by .
- // static abstract TSelf operator checked ++(TSelf value);
+ /// Increments a value.
+ /// The value to increment.
+ /// The result of incrementing .
+ /// The result of incrementing is not representable by .
+ static abstract TSelf operator checked ++(TSelf value);
}
}
diff --git a/src/libraries/System.Private.CoreLib/src/System/Numerics/IMultiplyOperators.cs b/src/libraries/System.Private.CoreLib/src/System/Numerics/IMultiplyOperators.cs
index 97efb32b55445..24a2a41470c98 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Numerics/IMultiplyOperators.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Numerics/IMultiplyOperators.cs
@@ -16,11 +16,11 @@ public interface IMultiplyOperators
/// The product of divided-by .
static abstract TResult operator *(TSelf left, TOther right);
- // /// Multiplies two values together to compute their product.
- // /// The value which multiplies.
- // /// The value which multiplies .
- // /// The product of divided-by .
- // /// The product of multiplied-by is not representable by .
- // static abstract TResult operator checked *(TSelf left, TOther right);
+ /// Multiplies two values together to compute their product.
+ /// The value which multiplies.
+ /// The value which multiplies .
+ /// The product of divided-by .
+ /// The product of multiplied-by is not representable by .
+ static abstract TResult operator checked *(TSelf left, TOther right);
}
}
diff --git a/src/libraries/System.Private.CoreLib/src/System/Numerics/ISubtractionOperators.cs b/src/libraries/System.Private.CoreLib/src/System/Numerics/ISubtractionOperators.cs
index 488b164d462a2..38bd5a2b4625f 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Numerics/ISubtractionOperators.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Numerics/ISubtractionOperators.cs
@@ -16,11 +16,11 @@ public interface ISubtractionOperators
/// The difference of subtracted from .
static abstract TResult operator -(TSelf left, TOther right);
- // /// Subtracts two values to compute their difference.
- // /// The value from which is subtracted.
- // /// The value which is subtracted from .
- // /// The difference of subtracted from .
- // /// The difference of subtracted from is not representable by .
- // static abstract TResult operator checked -(TSelf left, TOther right);
+ /// Subtracts two values to compute their difference.
+ /// The value from which is subtracted.
+ /// The value which is subtracted from .
+ /// The difference of subtracted from .
+ /// The difference of subtracted from is not representable by .
+ static abstract TResult operator checked -(TSelf left, TOther right);
}
}
diff --git a/src/libraries/System.Private.CoreLib/src/System/Numerics/IUnaryNegationOperators.cs b/src/libraries/System.Private.CoreLib/src/System/Numerics/IUnaryNegationOperators.cs
index fb34b44c20e0e..b03b13d5071e4 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Numerics/IUnaryNegationOperators.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Numerics/IUnaryNegationOperators.cs
@@ -14,10 +14,10 @@ public interface IUnaryNegationOperators
/// The unary negation of .
static abstract TResult operator -(TSelf value);
- // /// Computes the unary negation of a value.
- // /// The value for which to compute its unary negation.
- // /// The unary negation of .
- // /// The unary negation of is not representable by .
- // static abstract TResult operator checked -(TSelf value);
+ /// Computes the unary negation of a value.
+ /// The value for which to compute its unary negation.
+ /// The unary negation of .
+ /// The unary negation of is not representable by .
+ static abstract TResult operator checked -(TSelf value);
}
}
diff --git a/src/libraries/System.Private.CoreLib/src/System/SByte.cs b/src/libraries/System.Private.CoreLib/src/System/SByte.cs
index b8d12a053d0c4..3f494d2ec1955 100644
--- a/src/libraries/System.Private.CoreLib/src/System/SByte.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/SByte.cs
@@ -314,8 +314,8 @@ object IConvertible.ToType(Type type, IFormatProvider? provider)
///
static sbyte IAdditionOperators.operator +(sbyte left, sbyte right) => (sbyte)(left + right);
- // ///
- // static sbyte IAdditionOperators.operator checked +(sbyte left, sbyte right) => checked((sbyte)(left + right));
+ ///
+ static sbyte IAdditionOperators.operator checked +(sbyte left, sbyte right) => checked((sbyte)(left + right));
//
// IAdditiveIdentity
@@ -402,8 +402,8 @@ public static sbyte Log2(sbyte value)
///
static sbyte IDecrementOperators.operator --(sbyte value) => --value;
- // ///
- // static sbyte IDecrementOperators.operator checked --(sbyte value) => checked(--value);
+ ///
+ static sbyte IDecrementOperators.operator checked --(sbyte value) => checked(--value);
//
// IDivisionOperators
@@ -412,8 +412,8 @@ public static sbyte Log2(sbyte value)
///
static sbyte IDivisionOperators.operator /(sbyte left, sbyte right) => (sbyte)(left / right);
- // ///
- // static sbyte IDivisionOperators.operator checked /(sbyte left, sbyte right) => checked((sbyte)(left / right));
+ ///
+ static sbyte IDivisionOperators.operator checked /(sbyte left, sbyte right) => (sbyte)(left / right);
//
// IEqualityOperators
@@ -432,8 +432,8 @@ public static sbyte Log2(sbyte value)
///
static sbyte IIncrementOperators.operator ++(sbyte value) => ++value;
- // ///
- // static sbyte IIncrementOperators.operator checked ++(sbyte value) => checked(++value);
+ ///
+ static sbyte IIncrementOperators.operator checked ++(sbyte value) => checked(++value);
//
// IMinMaxValue
@@ -466,8 +466,8 @@ public static sbyte Log2(sbyte value)
///
static sbyte IMultiplyOperators.operator *(sbyte left, sbyte right) => (sbyte)(left * right);
- // ///
- // static sbyte IMultiplyOperators.operator checked *(sbyte left, sbyte right) => checked((sbyte)(left * right));
+ ///
+ static sbyte IMultiplyOperators.operator checked *(sbyte left, sbyte right) => checked((sbyte)(left * right));
//
// INumber
@@ -1038,8 +1038,8 @@ public static bool TryCreate(TOther value, out sbyte result)
///
static sbyte ISubtractionOperators.operator -(sbyte left, sbyte right) => (sbyte)(left - right);
- // ///
- // static sbyte ISubtractionOperators.operator checked -(sbyte left, sbyte right) => checked((sbyte)(left - right));
+ ///
+ static sbyte ISubtractionOperators.operator checked -(sbyte left, sbyte right) => checked((sbyte)(left - right));
//
// IUnaryNegationOperators
@@ -1048,8 +1048,8 @@ public static bool TryCreate(TOther value, out sbyte result)
///
static sbyte IUnaryNegationOperators.operator -(sbyte value) => (sbyte)(-value);
- // ///
- // static sbyte IUnaryNegationOperators.operator checked -(sbyte value) => checked((sbyte)(-value));
+ ///
+ static sbyte IUnaryNegationOperators.operator checked -(sbyte value) => checked((sbyte)(-value));
//
// IUnaryPlusOperators
diff --git a/src/libraries/System.Private.CoreLib/src/System/Single.cs b/src/libraries/System.Private.CoreLib/src/System/Single.cs
index 7b13ffcd5bcb5..2b86f9e2d3d18 100644
--- a/src/libraries/System.Private.CoreLib/src/System/Single.cs
+++ b/src/libraries/System.Private.CoreLib/src/System/Single.cs
@@ -486,8 +486,8 @@ object IConvertible.ToType(Type type, IFormatProvider? provider)
///
static float IAdditionOperators.operator +(float left, float right) => left + right;
- // ///
- // static float IAdditionOperators.operator checked +(float left, float right) => checked(left + right);
+ ///
+ static float IAdditionOperators.operator checked +(float left, float right) => left + right;
//
// IAdditiveIdentity
@@ -555,8 +555,8 @@ public static bool IsPow2(float value)
///
static float IDecrementOperators.operator --(float value) => --value;
- // ///
- // static float IDecrementOperators.operator checked --(float value) => checked(--value);
+ ///
+ static float IDecrementOperators.operator checked --(float value) => --value;
//
// IDivisionOperators
@@ -565,8 +565,8 @@ public static bool IsPow2(float value)
///
static float IDivisionOperators.operator /(float left, float right) => left / right;
- // ///
- // static float IDivisionOperators.operator checked /(float left, float right) => checked(left / right);
+ ///
+ static float IDivisionOperators.operator checked /(float left, float right) => left / right;
//
// IExponentialFunctions
@@ -711,8 +711,8 @@ public static bool IsPow2(float value)
///
static float IIncrementOperators.operator ++(float value) => ++value;
- // ///
- // static float IIncrementOperators.operator checked ++(float value) => checked(++value);
+ ///