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)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(EncodedString other)
Parameters
otherEncodedStringAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand 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
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.