mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2026-04-05 14:25:37 +00:00
Initial commit
This commit is contained in:
parent
e523533d17
commit
10cceacca6
50 changed files with 1280 additions and 0 deletions
19
vs4win/Chapter04/CallStackExceptionHandlingLib/Calculator.cs
Normal file
19
vs4win/Chapter04/CallStackExceptionHandlingLib/Calculator.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
Loading…
Add table
Add a link
Reference in a new issue