Skip to content

Commit 608a1d9

Browse files
committed
update solution to .NET 5
1 parent 864fabb commit 608a1d9

20 files changed

+15
-223
lines changed

CommandPattern/CommandPattern.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<TargetFramework>net5.0</TargetFramework>
66
</PropertyGroup>
77

88
</Project>

CompositePattern/CompositePattern.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<TargetFramework>net5.0</TargetFramework>
66
</PropertyGroup>
77

88
</Project>

CompoundPattern/CompoundPattern.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<TargetFramework>net5.0</TargetFramework>
66
</PropertyGroup>
77

88
</Project>

DecoratorPattern/DecoratorPattern.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<TargetFramework>net5.0</TargetFramework>
66
</PropertyGroup>
77

88
</Project>

FactoryPattern/FactoryPattern.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<TargetFramework>net5.0</TargetFramework>
66
</PropertyGroup>
77

88
</Project>

IteratorPattern/IteratorPattern.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<TargetFramework>net5.0</TargetFramework>
66
</PropertyGroup>
77

88
</Project>

ObserverPattern/ObserverPattern.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<TargetFramework>net5.0</TargetFramework>
66
</PropertyGroup>
77

88
</Project>

ObserverPattern/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ private static void Main()
1212

1313
private static void WeatherStation()
1414
{
15-
var weatherData = new WeatherData();
15+
var weatherData = new Weatherdata();
1616
var currentDisplay = new CurrentConditionDisplay(weatherData);
1717
var statisticsDisplay = new StatisticsDisplay(weatherData);
1818
var forcastDisplay = new ForecastDisplay(weatherData);

ObserverPattern/Weatherdata.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
namespace ObserverPattern
44
{
5-
public class WeatherData : ISubject
5+
public class Weatherdata : ISubject
66
{
77
private readonly List<IObserver> _observers;
88
private float _temperature;
99
private float _humidity;
1010
private float _pressure;
1111

12-
public WeatherData()
12+
public Weatherdata()
1313
{
1414
_observers = new List<IObserver>();
1515
}

ProxyPattern/MatchMaking/IPersonBean.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

ProxyPattern/MatchMaking/MatchMakingTestDrive.cs

Lines changed: 0 additions & 50 deletions
This file was deleted.

ProxyPattern/MatchMaking/PersonBean.cs

Lines changed: 0 additions & 28 deletions
This file was deleted.

ProxyPattern/MatchMaking/ProxyHandler/IInvocationHandler.cs

Lines changed: 0 additions & 7 deletions
This file was deleted.

ProxyPattern/MatchMaking/ProxyHandler/NonOwnerInvocationHandler.cs

Lines changed: 0 additions & 53 deletions
This file was deleted.

ProxyPattern/MatchMaking/ProxyHandler/OwnerInvocationHandler.cs

Lines changed: 0 additions & 54 deletions
This file was deleted.

ProxyPattern/Program.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using ProxyPattern.Castle;
2-
using ProxyPattern.MatchMaking;
32
using System;
43

54
namespace ProxyPattern
@@ -10,9 +9,6 @@ private static void Main()
109
{
1110
CastleDynamicProxyTest.Test();
1211
Console.ReadKey();
13-
14-
MatchMakingTestDrive.Run();
15-
Console.ReadKey();
1612
}
1713
}
1814
}

ProxyPattern/ProxyPattern.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<TargetFramework>net5.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Castle.Core" Version="4.4.0" />
9+
<PackageReference Include="Castle.Core" Version="4.4.1" />
1010
</ItemGroup>
1111

1212
</Project>

SingletonPattern/SingletonPattern.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<TargetFramework>net5.0</TargetFramework>
66
</PropertyGroup>
77

88
</Project>

StatePattern/StatePattern.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<TargetFramework>net5.0</TargetFramework>
66
</PropertyGroup>
77

88
</Project>

StrategyPattern/StrategyPattern.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<TargetFramework>net5.0</TargetFramework>
66
</PropertyGroup>
77

88
</Project>

0 commit comments

Comments
 (0)