Skip to content

Commit

Permalink
Make the struct readonly that can be readonly.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Nov 13, 2023
1 parent e023b58 commit 4f7b858
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Magick.NET.Core/Types/Number.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace ImageMagick;
/// <summary>
/// Represents an exif number.
/// </summary>
public struct Number : IEquatable<Number>, IComparable<Number>
public readonly struct Number : IEquatable<Number>, IComparable<Number>
{
private readonly uint _value;

Expand Down
2 changes: 1 addition & 1 deletion src/Magick.NET.Core/Types/Percentage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace ImageMagick;
/// <summary>
/// Represents a percentage value.
/// </summary>
public struct Percentage : IEquatable<Percentage>, IComparable<Percentage>
public readonly struct Percentage : IEquatable<Percentage>, IComparable<Percentage>
{
private readonly double _value;

Expand Down
2 changes: 1 addition & 1 deletion src/Magick.NET.Core/Types/Rational.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace ImageMagick;
/// <remarks>
/// This is a very simplified implementation of a rational number designed for use with metadata only.
/// </remarks>
public struct Rational : IEquatable<Rational>
public readonly struct Rational : IEquatable<Rational>
{
/// <summary>
/// Initializes a new instance of the <see cref="Rational"/> struct.
Expand Down
2 changes: 1 addition & 1 deletion src/Magick.NET.Core/Types/SignedRational.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace ImageMagick;
/// <remarks>
/// This is a very simplified implementation of a rational number designed for use with metadata only.
/// </remarks>
public struct SignedRational : IEquatable<SignedRational>
public readonly struct SignedRational : IEquatable<SignedRational>
{
/// <summary>
/// Initializes a new instance of the <see cref="SignedRational"/> struct.
Expand Down
2 changes: 1 addition & 1 deletion src/Magick.NET.Core/Types/Threshold.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace ImageMagick;
/// <summary>
/// Struct for a threshold with a minimum and maximum.
/// </summary>
public struct Threshold : IEquatable<Threshold>
public readonly struct Threshold : IEquatable<Threshold>
{
/// <summary>
/// Initializes a new instance of the <see cref="Threshold"/> struct.
Expand Down

0 comments on commit 4f7b858

Please sign in to comment.