Struct EncodedString
The EXIF encoded string structure.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Metadata.Profiles.Exif
Assembly: SixLabors.ImageSharp.dll
Syntax
public readonly struct EncodedString : IEquatable<EncodedString>
Constructors
| Edit this page View SourceEncodedString(CharacterCode, string)
Initializes a new instance of the EncodedString struct.
Declaration
public EncodedString(EncodedString.CharacterCode code, string text)
Parameters
Type | Name | Description |
---|---|---|
EncodedString.CharacterCode | code | The character code. |
string | text | The text value. |
EncodedString(string)
Initializes a new instance of the EncodedString struct. Default use Unicode character code.
Declaration
public EncodedString(string text)
Parameters
Type | Name | Description |
---|---|---|
string | text | The text value. |
Properties
| Edit this page View SourceCode
Gets the character ode.
Declaration
public EncodedString.CharacterCode Code { get; }
Property Value
Type | Description |
---|---|
EncodedString.CharacterCode |
Text
Gets the text.
Declaration
public string Text { get; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceEquals(EncodedString)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(EncodedString other)
Parameters
Type | Name | Description |
---|---|---|
EncodedString | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the |
Equals(object?)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current instance. |
Returns
Type | Description |
---|---|
bool | true if |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
| Edit this page View SourceToString()
Returns the fully qualified type name of this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | The fully qualified type name. |
Overrides
Operators
| Edit this page View Sourceoperator ==(EncodedString, EncodedString)
Checks whether two EncodedString structures are equal.
Declaration
public static bool operator ==(EncodedString left, EncodedString right)
Parameters
Type | Name | Description |
---|---|---|
EncodedString | left | The left hand EncodedString operand. |
EncodedString | right | The right hand EncodedString operand. |
Returns
Type | Description |
---|---|
bool | True if the |
explicit operator string(EncodedString)
Converts the specified EncodedString to a string.
Declaration
public static explicit operator string(EncodedString encodedString)
Parameters
Type | Name | Description |
---|---|---|
EncodedString | encodedString | The EncodedString to convert. |
Returns
Type | Description |
---|---|
string |
implicit operator EncodedString(string)
Converts the specified string to an instance of this type.
Declaration
public static implicit operator EncodedString(string text)
Parameters
Type | Name | Description |
---|---|---|
string | text | The text value. |
Returns
Type | Description |
---|---|
EncodedString |
operator !=(EncodedString, EncodedString)
Checks whether two EncodedString structures are not equal.
Declaration
public static bool operator !=(EncodedString left, EncodedString right)
Parameters
Type | Name | Description |
---|---|---|
EncodedString | left | The left hand EncodedString operand. |
EncodedString | right | The right hand EncodedString operand. |
Returns
Type | Description |
---|---|
bool | True if the |