1 parent 4fd3dc8 commit 1f2674eCopy full SHA for 1f2674e
2 files changed
DesignPatterns/FlyweightPattern/FlyweightPattern/FlyweightPattern.csproj
@@ -45,6 +45,7 @@
45
<ItemGroup>
46
<Compile Include="Flyweight.cs" />
47
<Compile Include="FlyweightFactory.cs" />
48
+ <Compile Include="ImageNode.cs" />
49
<Compile Include="Program.cs" />
50
<Compile Include="Properties\AssemblyInfo.cs" />
51
</ItemGroup>
DesignPatterns/FlyweightPattern/FlyweightPattern/ImageNode.cs
@@ -0,0 +1,16 @@
1
+using System;
2
+using System.Collections.Generic;
3
+using System.Linq;
4
+using System.Text;
5
+using System.Threading.Tasks;
6
+
7
+namespace FlyweightPattern
8
+{
9
+ /// <summary>
10
+ /// 抽象图片类
11
+ /// </summary>
12
+ public abstract class ImageNode
13
+ {
14
+ public abstract void Show();
15
+ }
16
+}
0 commit comments