Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>disable</Nullable>
<ImplicitUsings>true</ImplicitUsings>
<OutputType>Exe</OutputType>
<StartupObject>ConsoleApplication2.ProgramTwo</StartupObject>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace ConsoleApplication1
{
class Program
class ProgramOne
{
static void Main(string[] args)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;

namespace ConsoleApplication1
namespace ConsoleApplication2
{
// <snippet2>
class Program
class ProgramTwo
{
static void Main()
{
Expand All @@ -27,8 +27,7 @@ class Counter

protected virtual void OnThresholdReached(EventArgs e)
{
EventHandler handler = ThresholdReached;
handler?.Invoke(this, e);
ThresholdReached?.Invoke(this, e);
}

// provide remaining implementation for the class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// <snippet6>
using System;

namespace ConsoleApplication1
namespace ConsoleApplication3
{
class Program
class ProgramThree
{
static void Main(string[] args)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// <snippet7>
using System;

namespace ConsoleApplication1
namespace ConsoleApplication4
{
class Program
class ProgramFour
{
static void Main(string[] args)
{
Expand Down