Struct IccVersion
Represents the ICC profile version number.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Metadata.Profiles.Icc
Assembly: SixLabors.ImageSharp.dll
Syntax
public readonly struct IccVersion : IEquatable<IccVersion>
Constructors
| Edit this page View SourceIccVersion(int, int, int)
Initializes a new instance of the IccVersion struct.
Declaration
public IccVersion(int major, int minor, int patch)
Parameters
Type | Name | Description |
---|---|---|
int | major | The major version number. |
int | minor | The minor version number. |
int | patch | The patch version number. |
Properties
| Edit this page View SourceMajor
Gets the major version number.
Declaration
public int Major { get; }
Property Value
Type | Description |
---|---|
int |
Minor
Gets the minor version number.
Declaration
public int Minor { get; }
Property Value
Type | Description |
---|---|
int |
Patch
Gets the patch number.
Declaration
public int Patch { get; }
Property Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceEquals(IccVersion)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(IccVersion other)
Parameters
Type | Name | Description |
---|---|---|
IccVersion | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the |
Equals(object?)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current instance. |
Returns
Type | Description |
---|---|
bool | true if |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
| Edit this page View SourceToString()
Returns the fully qualified type name of this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | The fully qualified type name. |
Overrides
Operators
| Edit this page View Sourceoperator ==(IccVersion, IccVersion)
Returns a value indicating whether the two values are equal.
Declaration
public static bool operator ==(IccVersion left, IccVersion right)
Parameters
Type | Name | Description |
---|---|---|
IccVersion | left | The first value. |
IccVersion | right | The second value. |
Returns
Type | Description |
---|---|
bool |
operator !=(IccVersion, IccVersion)
Returns a value indicating whether the two values are not equal.
Declaration
public static bool operator !=(IccVersion left, IccVersion right)
Parameters
Type | Name | Description |
---|---|---|
IccVersion | left | The first value. |
IccVersion | right | The second value. |
Returns
Type | Description |
---|---|
bool |