Skip to content

Commit f0cb374

Browse files
committed
Some synthatic sugar
1 parent d5b380e commit f0cb374

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Html2OpenXml/Primitives/HtmlBorder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public SideBorder Right
7373
/// <summary>
7474
/// Gets whether at least one side has been specified.
7575
/// </summary>
76-
public bool IsEmpty
76+
public readonly bool IsEmpty
7777
{
7878
get => sides == null || !(Left.IsValid || Right.IsValid || Bottom.IsValid || Top.IsValid);
7979
}

src/Html2OpenXml/Primitives/HtmlColor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace HtmlToOpenXml;
1717
/// <summary>
1818
/// Represents an ARGB color.
1919
/// </summary>
20-
readonly struct HtmlColor
20+
readonly struct HtmlColor : IEquatable<HtmlColor>
2121
{
2222
private static readonly char[] hexDigits = {
2323
'0', '1', '2', '3', '4', '5', '6', '7',

src/Html2OpenXml/Primitives/Unit.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public static Unit Parse(string? str, UnitMetric defaultMetric = UnitMetric.Unit
8888
/// <summary>
8989
/// Gets the value expressed in the English Metrics Units.
9090
/// </summary>
91-
private static Int64 ComputeInEmus(UnitMetric type, double value)
91+
private static long ComputeInEmus(UnitMetric type, double value)
9292
{
9393
/* Compute width and height in English Metrics Units.
9494
* There are 360000 EMUs per centimeter, 914400 EMUs per inch, 12700 EMUs per point

0 commit comments

Comments
 (0)