Table of Contents

Struct ReplacerEntry

Namespace
Yarhl.Media.Text
Assembly
Yarhl.Media.Text.dll

Entry of the map of replacements.

public struct ReplacerEntry : IEquatable<ReplacerEntry>
Implements
Inherited Members

Constructors

ReplacerEntry(string, string)

Initializes a new instance of the ReplacerEntry struct.

public ReplacerEntry(string original, string modified)

Parameters

original string

The original string to replace.

modified string

The modified string.

Properties

Modified

Gets the modified string.

public readonly string Modified { get; }

Property Value

string

Modified string.

Original

Gets the original string.

public readonly string Original { get; }

Property Value

string

Original string.

Methods

Equals(object?)

Determines whether two object instances are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(ReplacerEntry)

Determines whether two object instances are equal.

public bool Equals(ReplacerEntry other)

Parameters

other ReplacerEntry

The instance to compare with the current instance.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Operators

operator ==(ReplacerEntry, ReplacerEntry)

Determines whether two object instances are equal.

public static bool operator ==(ReplacerEntry entry1, ReplacerEntry entry2)

Parameters

entry1 ReplacerEntry

First entry to compare.

entry2 ReplacerEntry

Second entry to compare.

Returns

bool

true if the first object is equal to the second object; otherwise, false.

operator !=(ReplacerEntry, ReplacerEntry)

Determines whether two object instances are different.

public static bool operator !=(ReplacerEntry entry1, ReplacerEntry entry2)

Parameters

entry1 ReplacerEntry

First entry to compare.

entry2 ReplacerEntry

Second entry to compare.

Returns

bool

true if the first object is different to the second object; otherwise, false.