private object StringEqual(CallSite site, object self, string other) { if (self != null && self.GetType() == typeof(string) && other != null) { return(StringOps.Equals((string)self, other) ? ScriptingRuntimeHelpers.True : ScriptingRuntimeHelpers.False); } return(((CallSite <Func <CallSite, object, string, object> >)site).Update(site, self, other)); }
public static bool Equals(char x, [NotNull] string y) => StringOps.Equals(char.ToString(x), y);