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
Copy file name to clipboardExpand all lines: TypeGuesser/DecimalSize.cs
+10-11Lines changed: 10 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ namespace TypeGuesser;
7
7
/// Records the number of decimal places required to represent a given decimal. This can class can represent a int (in which case <see cref="NumbersAfterDecimalPlace"/> will be 0) or
8
8
/// decimal. If the origin of the class is not numerical then a <see cref="DecimalSize"/> might still exist but it should be <see cref="IsEmpty"/>.
9
9
/// </summary>
10
-
publicclassDecimalSize
10
+
publicclassDecimalSize:IEquatable<DecimalSize>
11
11
{
12
12
/// <summary>
13
13
/// The maximum number of digits that should be allowed before the decimal point (e.g. <see cref="Precision"/> - <see cref="Scale"/>)
@@ -129,23 +129,22 @@ public int ToStringLength()
129
129
#region Equality
130
130
131
131
/// <summary>
132
-
/// Property based equality
132
+
/// Determines whether the specified DecimalSize is equal to the current DecimalSize.
133
133
/// </summary>
134
-
/// <param name="other"></param>
135
-
/// <returns></returns>
136
-
privateboolEquals(DecimalSizeother)
134
+
/// <param name="other">The DecimalSize to compare with the current DecimalSize.</param>
135
+
/// <returns>true if the specified DecimalSize is equal to the current DecimalSize; otherwise, false.</returns>
0 commit comments