mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2025-12-06 05:32:03 +01:00
20 lines
400 B
C#
20 lines
400 B
C#
|
|
using static System.Console;
|
|||
|
|
|
|||
|
|
namespace CallStackExceptionHandlingLib
|
|||
|
|
{
|
|||
|
|
public class Calculator
|
|||
|
|
{
|
|||
|
|
public static void Gamma() // public so it can be called from outside
|
|||
|
|
{
|
|||
|
|
WriteLine("In Gamma");
|
|||
|
|
Delta();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private static void Delta() // private so it can only be called internally
|
|||
|
|
{
|
|||
|
|
WriteLine("In Delta");
|
|||
|
|
File.OpenText("bad file path");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|