Takes a string and converts it to a bool? based on "Yes" == true, "No" == false, null || "" == null.
public static bool? YesNoBool(string val)
The string value to compare to "Yes" for true or null or "" for null. Any other value returns false.
bool? b = "Yes".YesNoBool();