Table of Contents

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

major int

The major version number.

minor int

The minor version number.

patch int

The patch version number.

Properties

Major

Gets the major version number.

public int Major { get; }

Property Value

int

Minor

Gets the minor version number.

public int Minor { get; }

Property Value

int

Patch

Gets the patch number.

public int Patch { get; }

Property Value

int

Methods

Equals(IccVersion)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(IccVersion other)

Parameters

other IccVersion

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and 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

left IccVersion

The first value.

right IccVersion

The second value.

Returns

bool

true if the two value are equal; otherwise, false.

operator !=(IccVersion, IccVersion)

Returns a value indicating whether the two values are not equal.

public static bool operator !=(IccVersion left, IccVersion right)

Parameters

left IccVersion

The first value.

right IccVersion

The second value.

Returns

bool

true if the two value are not equal; otherwise, false.