title: How to stop finally block from execute in C#
body: <p>I have created a try block.Inside that try block again <code>try</code> block and it's <code>finally</code> block.I closed that outside try block.followed by <code>finally</code> block.Suppose I don't want to execute the <code>finally</code> block,for that I wrote <code>Environment.Exit(0)</code>.Does there is any other method that stop finally block from <code>execution.return 0;</code>(that is in java).Please let me know.</p>
  
  <pre><code>public static int Main()
          {
              try
              {
                  Console.WriteLine("First try block");
  
                  try
                  {
                      Console.WriteLine("Second try block");
                      //exit(0);
                      Environment.Exit(0);
                      //return 0;
                  }
  
                  finally
                  {
                      Console.WriteLine("Finally block of inner try");
                  }
              }
  
              finally
              {
                  Console.WriteLine("Finally block of second try");
              }
  </code></pre>