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.CharacterCodeThe character code.
text
stringThe text value.
EncodedString(string)
Initializes a new instance of the EncodedString struct. Default use Unicode character code.
public EncodedString(string text)
Parameters
text
stringThe text value.
Properties
Code
Gets the character ode.
public EncodedString.CharacterCode Code { get; }
Property Value
Text
Gets the text.
public string Text { get; }
Property Value
Methods
Equals(EncodedString)
public bool Equals(EncodedString other)
Parameters
other
EncodedString
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(EncodedString, EncodedString)
Checks whether two EncodedString structures are equal.
public static bool operator ==(EncodedString left, EncodedString right)
Parameters
left
EncodedStringThe left hand EncodedString operand.
right
EncodedStringThe right hand EncodedString operand.
Returns
- bool
True if the
left
parameter is equal to theright
parameter; otherwise, false.
explicit operator string(EncodedString)
Converts the specified EncodedString to a string.
public static explicit operator string(EncodedString encodedString)
Parameters
encodedString
EncodedStringThe EncodedString to convert.
Returns
implicit operator EncodedString(string)
Converts the specified string to an instance of this type.
public static implicit operator EncodedString(string text)
Parameters
text
stringThe text value.
Returns
operator !=(EncodedString, EncodedString)
Checks whether two EncodedString structures are not equal.
public static bool operator !=(EncodedString left, EncodedString right)
Parameters
left
EncodedStringThe left hand EncodedString operand.
right
EncodedStringThe right hand EncodedString operand.
Returns
- bool
True if the
left
parameter is not equal to theright
parameter; otherwise, false.