Skip to content

Commit 5dbd200

Browse files
Revert "Converting projects to .NET Core 3.0"
This reverts commit 49165e0.
1 parent 3ad1d93 commit 5dbd200

File tree

22 files changed

+70
-1075
lines changed

22 files changed

+70
-1075
lines changed

AbstractFactory/AbstractFactory.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
<AppDesignerFolder>Properties</AppDesignerFolder>
1010
<RootNamespace>AbstractFactory</RootNamespace>
1111
<AssemblyName>AbstractFactory</AssemblyName>
12-
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
12+
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
1414
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
15-
<TargetFrameworkProfile />
1615
</PropertyGroup>
1716
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1817
<PlatformTarget>AnyCPU</PlatformTarget>

AbstractFactory/App.config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8" ?>
22
<configuration>
33
<startup>
4-
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
55
</startup>
6-
</configuration>
6+
</configuration>

AbstractFactory/Program.cs

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,41 +6,41 @@
66

77
namespace AbstractFactory
88
{
9-
class Program
9+
class Program
10+
{
11+
/// <summary>
12+
/// The Abstract Factory pattern provides an interface for creating related families of objects
13+
/// without needing to specify the concrete implementations. This pattern is critical for ideas
14+
/// like Dependency Injection.
15+
/// </summary>
16+
/// <param name="args"></param>
17+
static void Main(string[] args)
1018
{
11-
/// <summary>
12-
/// The Abstract Factory pattern provides an interface for creating related families of objects
13-
/// without needing to specify the concrete implementations. This pattern is critical for ideas
14-
/// like Dependency Injection.
15-
/// </summary>
16-
/// <param name="args"></param>
17-
static void Main(string[] args)
19+
Console.WriteLine("Who are you? (A)dult or (C)hild?");
20+
char input = Console.ReadKey().KeyChar;
21+
RecipeFactory factory;
22+
switch(input)
1823
{
19-
Console.WriteLine("Who are you? (A)dult or (C)hild?");
20-
char input = Console.ReadKey().KeyChar;
21-
RecipeFactory factory;
22-
switch(input)
23-
{
24-
case 'A':
25-
factory = new AdultCuisineFactory();
26-
break;
24+
case 'A':
25+
factory = new AdultCuisineFactory();
26+
break;
2727

28-
case 'C':
29-
factory = new KidCuisineFactory();
30-
break;
28+
case 'C':
29+
factory = new KidCuisineFactory();
30+
break;
3131

32-
default:
33-
throw new NotImplementedException();
32+
default:
33+
throw new NotImplementedException();
3434

35-
}
35+
}
3636

37-
var sandwich = factory.CreateSandwich();
38-
var dessert = factory.CreateDessert();
37+
var sandwich = factory.CreateSandwich();
38+
var dessert = factory.CreateDessert();
3939

40-
Console.WriteLine("\nSandwich: " + sandwich.GetType().Name);
41-
Console.WriteLine("Dessert: " + dessert.GetType().Name);
40+
Console.WriteLine("\nSandwich: " + sandwich.GetType().Name);
41+
Console.WriteLine("Dessert: " + dessert.GetType().Name);
4242

43-
Console.ReadKey();
44-
}
43+
Console.ReadKey();
4544
}
4645
}
46+
}

AbstractFactoryCore/AbstractFactory.csproj

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

AbstractFactoryCore/Program.cs

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

AbstractFactoryCore/RecipeFactory.cs

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

AdapterCore/Adapter.csproj

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

AdapterCore/Meats.cs

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

0 commit comments

Comments
 (0)