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)

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

public bool Equals(EncodedString other)

Parameters

other EncodedString

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 ==(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.