public static string Good5(DerivedStringer x, IFormatProvider p) { if (x == null) throw new ArgumentNullException("x"); if (p == null) throw new ArgumentNullException("p"); return x.ToString("{0}", p); }
// D1007/UseBaseTypes // G1003/FormatProvider public static string Bad5(DerivedStringer x) { if (x == null) throw new ArgumentNullException("x"); return x.ToString(); }