HasDifference Method
Definition
HasDifference(string, string, out string)
Determines whether there is a set difference between second and first.
public static bool HasDifference(string first, string second, out string difference)
Parameters
firststringThe value where characters that are not also in
secondwill be returned.secondstringThe value to compare with
first.differencestringThe set difference between
secondandfirstor Empty if no difference.
Returns
- bool
trueif there is a set difference betweensecondandfirst; otherwisefalse.