Tech
Forums
Jobs
Books
Events
Live
Interviews Prep
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
ERROR "Control can not leave body of finally clause"
Swapnil Mache
Jun 4 2016 6:19 AM
287
Reply
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace test2
{
public class a
{
public int m1()
{
try
{
return 10;
}
catch (Exception e)
{
return 20;
}
finally
{
return 30;
}
}
}
class Program
{
public static void Main(string[] args)
{
a A = new a();
int i = A.m1();
// S.O.P(i);
Console.WriteLine("" + i);
Console.ReadLine();
}
}
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
How to create a method with using http Get or Post methods
Grid View And SQL