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
codeEncodedString.CharacterCodeThe character code.
textstringThe text value.
EncodedString(string)
Initializes a new instance of the EncodedString struct. Default use Unicode character code.
public EncodedString(string text)
Parameters
textstringThe 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
otherEncodedString
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
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
leftEncodedStringThe left hand EncodedString operand.
rightEncodedStringThe right hand EncodedString operand.
Returns
- bool
True if the
leftparameter is equal to therightparameter; otherwise, false.
explicit operator string(EncodedString)
Converts the specified EncodedString to a string.
public static explicit operator string(EncodedString encodedString)
Parameters
encodedStringEncodedStringThe 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
textstringThe text value.
Returns
operator !=(EncodedString, EncodedString)
Checks whether two EncodedString structures are not equal.
public static bool operator !=(EncodedString left, EncodedString right)
Parameters
leftEncodedStringThe left hand EncodedString operand.
rightEncodedStringThe right hand EncodedString operand.
Returns
- bool
True if the
leftparameter is not equal to therightparameter; otherwise, false.