Class ValueMatcher¶
Namespace: OfficeOpenXml.FormulaParsing.ExcelUtilities
Assembly: EPPlus.dll
Compares and matches values
Inheritance¶
Derived¶
LookupValueMatcher
WildCardValueMatcher
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()
Constructors¶
ValueMatcher()¶
Fields¶
IncompatibleOperands¶
Value to represent incompatible operands
Field Value¶
Methods¶
CompareObjectToString(object, string)¶
Compares object to string candidate.
Parameters¶
searchedValue object
candidate string
Returns¶
CompareStringToObject(string, object, bool)¶
Compares string to object candidate
protected virtual int CompareStringToObject(string searchedValue, object candidate, bool convertNumericString = true)
Parameters¶
searchedValue string
candidate object
convertNumericString bool
Returns¶
CompareStringToString(string, string)¶
Compares strings
Parameters¶
searchedValue string
candidate string
Returns¶
IsMatch(object, object, bool)¶
Compares objects of different types using appropriate CompareTo methods
public virtual int IsMatch(object searchedValue, object candidate, bool convertNumericString = true)
Parameters¶
searchedValue object
original value
candidate object
potential match
convertNumericString bool
If true a numeric string will be convered to a number in the comparison. Default value is true.