Question: What method correctly extends the string class?
- public static string IsvalidName(this string i, string value) {}
- public static void IsvalidName(this string i, string value) {}
- public string IsvalidName(this string i, string value) {}
- public void IsvalidName(this string i, string value) {}
Answer: The correct answer of the above question is Option A:public static string IsvalidName(this string i, string value) {}