All pastes #62596 Raw Edit

Anonymous

public text v1 · immutable
#62596 ·published 2006-06-06 16:35 UTC
rendered paste body
using System;

class X {
        static void Main ()
        {
                X obj = new X ();
                M ("(" + obj + ")");
        }

        static void M (string s){
                Console.WriteLine (s);
        }

        public double Ratio {
                get
                        { return 1.0; }
        }

        public override string ToString ()
        {
return Math.Round(100 * Ratio).ToString() + "%";
        }
}