Table of Contents

Struct EncodedString

Namespace
SixLabors.ImageSharp.Metadata.Profiles.Exif
Assembly
SixLabors.ImageSharp.dll

The EXIF encoded string structure.

public readonly struct EncodedString : IEquatable<EncodedString>
Implements
Inherited Members

Constructors

EncodedString(CharacterCode, string)

Initializes a new instance of the EncodedString struct.

public EncodedString(EncodedString.CharacterCode code, string text)

Parameters

code EncodedString.CharacterCode

The character code.

text string

The text value.

EncodedString(string)

Initializes a new instance of the EncodedString struct. Default use Unicode character code.

public EncodedString(string text)

Parameters

text string

The text value.

Properties

Code

Gets the character ode.

public EncodedString.CharacterCode Code { get; }

Property Value

EncodedString.CharacterCode

Text

Gets the text.

public string Text { get; }

Property Value

string

Methods

Equals(EncodedString)

public bool Equals(EncodedString other)

Parameters

other EncodedString

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(EncodedString, EncodedString)

Checks whether two EncodedString structures are equal.

public static bool operator ==(EncodedString left, EncodedString right)

Parameters

left EncodedString

The left hand EncodedString operand.

right EncodedString

The right hand EncodedString operand.

Returns

bool

True if the left parameter is equal to the right parameter; otherwise, false.

explicit operator string(EncodedString)

Converts the specified EncodedString to a string.

public static explicit operator string(EncodedString encodedString)

Parameters

encodedString EncodedString

The EncodedString to convert.

Returns

string

implicit operator EncodedString(string)

Converts the specified string to an instance of this type.

public static implicit operator EncodedString(string text)

Parameters

text string

The text value.

Returns

EncodedString

operator !=(EncodedString, EncodedString)

Checks whether two EncodedString structures are not equal.

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

Parameters

left EncodedString

The left hand EncodedString operand.

right EncodedString

The right hand EncodedString operand.

Returns

bool

True if the left parameter is not equal to the right parameter; otherwise, false.