Struct EncodedString
The EXIF encoded string structure.
Implements
Namespace: SixLabors.ImageSharp.Metadata.Profiles.Exif
Assembly: SixLabors.ImageSharp.dll
Syntax
public readonly struct EncodedString
Constructors
| Improve this Doc View SourceEncodedString(EncodedString.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
| Improve this Doc View SourceCode
Gets the character ode.
Declaration
public readonly EncodedString.CharacterCode Code { get; }
Property Value
Type | Description |
---|---|
EncodedString.CharacterCode |
Text
Gets the text.
Declaration
public readonly string Text { get; }
Property Value
Type | Description |
---|---|
String |
Methods
| Improve this Doc View SourceEquals(EncodedString)
Declaration
public readonly bool Equals(EncodedString other)
Parameters
Type | Name | Description |
---|---|---|
EncodedString | other |
Returns
Type | Description |
---|---|
Boolean |
Equals(Nullable<Object>)
Declaration
public override readonly bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
Nullable<Object> | obj |
Returns
Type | Description |
---|---|
Boolean |
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
ToString()
Declaration
public override readonly string ToString()
Returns
Type | Description |
---|---|
String |
Operators
| Improve this Doc View SourceEquality(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 |
---|---|
Boolean | True if the |
Explicit(EncodedString to String)
Converts the specified EncodedString to a
Declaration
public static explicit operator string (EncodedString encodedString)
Parameters
Type | Name | Description |
---|---|---|
EncodedString | encodedString | The EncodedString to convert. |
Returns
Type | Description |
---|---|
String |
Implicit(String to EncodedString)
Converts the specified
Declaration
public static implicit operator EncodedString(string text)
Parameters
Type | Name | Description |
---|---|---|
String | text | The text value. |
Returns
Type | Description |
---|---|
EncodedString |
Inequality(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 |
---|---|
Boolean | True if the |