Struct IccVersion
Represents the ICC profile version number.
Implements
IEquatable<IccVersion>
Namespace: SixLabors.ImageSharp.Metadata.Profiles.Icc
Assembly: SixLabors.ImageSharp.dll
Syntax
public readonly struct IccVersion
Constructors
| Improve this Doc View SourceIccVersion(Int32, Int32, Int32)
Initializes a new instance of the IccVersion struct.
Declaration
public IccVersion(int major, int minor, int patch)
Parameters
Type | Name | Description |
---|---|---|
Int32 | major | The major version number. |
Int32 | minor | The minor version number. |
Int32 | patch | The patch version number. |
Properties
| Improve this Doc View SourceMajor
Gets the major version number.
Declaration
public readonly int Major { get; }
Property Value
Type | Description |
---|---|
Int32 |
Minor
Gets the minor version number.
Declaration
public readonly int Minor { get; }
Property Value
Type | Description |
---|---|
Int32 |
Patch
Gets the patch number.
Declaration
public readonly int Patch { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceEquals(IccVersion)
Declaration
public readonly bool Equals(IccVersion other)
Parameters
Type | Name | Description |
---|---|---|
IccVersion | other |
Returns
Type | Description |
---|---|
Boolean |
Equals(Nullable<Object>)
Declaration
public override readonly bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
Nullable<Object> | obj |
Returns
Type | Description |
---|---|
Boolean |
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
ToString()
Declaration
public override readonly string ToString()
Returns
Type | Description |
---|---|
String |
Operators
| Improve this Doc View SourceEquality(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 |
---|---|
Boolean | true if the two value are equal; otherwise, false. |
Inequality(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 |
---|---|
Boolean | true if the two value are not equal; otherwise, false. |
Implements
IEquatable<>