コード例 #1
0
ファイル: O.cs プロジェクト: shangshen/cozy
 public static void Cozy()
 {
     O1ExceptionClasses.Cozy();
     O2CatchingExceptions.Cozy();
     O3UserDefinedException.Cozy();
     O4CallerInformation.Cozy();
 }
コード例 #2
0
ファイル: O4CallerInformation.cs プロジェクト: xxy1991/cozy
        public static void Cozy()
        {
            Console.WriteLine("\n-----------------------------------------------");
            Console.WriteLine(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName);
            Console.WriteLine("-----------------------------------------------");

            var p = new O4CallerInformation();
            p.Log();
            p.SomeProperty = 33;

            Action a1 = () => p.Log();
            a1();
        }
コード例 #3
0
        public static void Cozy()
        {
            Console.WriteLine("\n-----------------------------------------------");
            Console.WriteLine(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName);
            Console.WriteLine("-----------------------------------------------");

            var p = new O4CallerInformation();

            p.Log();
            p.SomeProperty = 33;

            Action a1 = () => p.Log();

            a1();
        }