Struct ReplacerEntry
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
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
objectThe 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
ReplacerEntryThe 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
ReplacerEntryFirst entry to compare.
entry2
ReplacerEntrySecond 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
ReplacerEntryFirst entry to compare.
entry2
ReplacerEntrySecond entry to compare.
Returns
- bool
true if the first object is different to the second object; otherwise, false.