Exemplo n.º 1
0
		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);
		}
Exemplo n.º 2
0
        // D1007/UseBaseTypes
        // G1003/FormatProvider
        public static string Bad5(DerivedStringer x)
        {
            if (x == null)
            {
                throw new ArgumentNullException("x");
            }

            return(x.ToString());
        }
Exemplo n.º 3
0
        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));
        }
Exemplo n.º 4
0
		// D1007/UseBaseTypes
		// G1003/FormatProvider
		public static string Bad5(DerivedStringer x)
		{
			if (x == null)
				throw new ArgumentNullException("x");

			return x.ToString();
		}