News:
namespace ExtensionMethods { public static class NumericExtensionMethods { public static bool IsNumeric(this string s) { float output; return float.TryParse(s, out output); } } }
After adding the namespace, how will you call the ExtensionMethod on the string if your string variable is defined as:
string test="4";
test.IsNumeric();
ExtensionMethods.NumericExtensionMethods.IsNumeric();
NumericExtensionMethods m = new NumericExtensionMethods();m.IsNumeric(test);
None of the above