You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <summary>Indicates strict equality of two <see cref=""{_quantity.Name}""/> quantities, where both <see cref=""Value"" /> and <see cref=""Unit"" /> are exactly equal.</summary>
772
773
/// <remarks>Consider using <see cref=""Equals({_quantity.Name}, {_valueType}, ComparisonType)""/> to check equality across different units and to specify a floating-point number error tolerance.</remarks>
773
774
[Obsolete(""Consider using Equals(Angle, {_valueType}, ComparisonType) to check equality across different units and to specify a floating-point number error tolerance."")]
774
-
public override bool Equals(object obj)
775
+
public override bool Equals(object? obj)
775
776
{{
776
777
if (obj is null || !(obj is {_quantity.Name} otherQuantity))
777
778
return false;
@@ -803,7 +804,7 @@ public bool Equals({_quantity.Name} other)
803
804
/// <item><term> Greater than zero</term><description> This instance follows <paramref name=""obj"" /> in the sort order.</description></item>
804
805
/// </list>
805
806
/// </returns>
806
-
public int CompareTo(object obj)
807
+
public int CompareTo(object? obj)
807
808
{{
808
809
if (obj is null) throw new ArgumentNullException(nameof(obj));
809
810
if (!(obj is {_quantity.Name} otherQuantity)) throw new ArgumentException(""Expected type {_quantity.Name}."", nameof(obj));
@@ -1126,7 +1134,7 @@ public string ToString(string format)
1126
1134
/// <param name=""format"">The format string.</param>
1127
1135
/// <param name=""provider"">Format to use for localization and number formatting. Defaults to <see cref=""CultureInfo.CurrentCulture"" /> if null.</param>
1128
1136
/// <returns>The string representation.</returns>
1129
-
public string ToString(string format, IFormatProvider? provider)
1137
+
public string ToString(string? format, IFormatProvider? provider)
1130
1138
{{
1131
1139
return QuantityFormatter.Format<{_unitEnumName}>(this, format, provider);
1132
1140
}}
@@ -1137,75 +1145,75 @@ public string ToString(string format, IFormatProvider? provider)
0 commit comments