Return to Snippet

Revision: 32844
at October 3, 2010 05:57 by Jamon


Updated Code
class A
{
	public static vois f()
	{
		try
		{
			... B.DoSome(); // safe call, exceptions handled
		}
		catch(Exception e)
		{
			...
		}
	}
	
	public static void f2()
	{
		... //no try-catch block
		B.DoSome(); // possible unhandled exception
	}
}

class B
{
	public static void DoSome()
	{
		...
		//no try-catch block, possible to raise unhandled exception

	}
}

Revision: 32843
at October 3, 2010 05:48 by Jamon


Initial Code
class A
{
	public static vois f()
	{
		try
		{
			... B.DoSome(); // save call, exceptions handled
		}
		catch(Exception e)
		{
			...
		}
	}
	
	public static void f2()
	{
		... //no try-catch block
		B.DoSome(); // possible unhandled exception
	}
}

class B
{
	public static void DoSome()
	{
		...
		no try-catch block
	}
}

Initial URL

                                

Initial Description

                                

Initial Title
C#: Analyze unsafe method invokes

Initial Tags

                                

Initial Language
C#