示例#1
0
        private static void Method()
        {
            MB8 mb = MakeNewMB8();

            for (int i = 0; i < 5; i += 3)
            {
                try
                {
                    mb = MakeAndUseMB8(mb);
                }
                finally
                {
                    Console.WriteLine(s_counter);
                }
            }
        }
示例#2
0
 private static MB8 MakeAndUseMB8(MB8 mb)
 {
     mb.foo = ++s_counter;
     return(mb);
 }