Struct IccVersion
- Namespace
- SixLabors.ImageSharp.Metadata.Profiles.Icc
- Assembly
- SixLabors.ImageSharp.dll
Represents the ICC profile version number.
public readonly struct IccVersion : IEquatable<IccVersion>
- Implements
- Inherited Members
Constructors
IccVersion(int, int, int)
Initializes a new instance of the IccVersion struct.
public IccVersion(int major, int minor, int patch)
Parameters
majorintThe major version number.
minorintThe minor version number.
patchintThe patch version number.
Properties
Major
Gets the major version number.
public int Major { get; }
Property Value
Minor
Gets the minor version number.
public int Minor { get; }
Property Value
Patch
Gets the patch number.
public int Patch { get; }
Property Value
Methods
Equals(IccVersion)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(IccVersion other)
Parameters
otherIccVersionAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
operator ==(IccVersion, IccVersion)
Returns a value indicating whether the two values are equal.
public static bool operator ==(IccVersion left, IccVersion right)
Parameters
leftIccVersionThe first value.
rightIccVersionThe second value.
Returns
operator !=(IccVersion, IccVersion)
Returns a value indicating whether the two values are not equal.
public static bool operator !=(IccVersion left, IccVersion right)
Parameters
leftIccVersionThe first value.
rightIccVersionThe second value.