Skip to content

Commit 1f2674e

Browse files
committed
享元模式
1 parent 4fd3dc8 commit 1f2674e

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

DesignPatterns/FlyweightPattern/FlyweightPattern/FlyweightPattern.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
<ItemGroup>
4646
<Compile Include="Flyweight.cs" />
4747
<Compile Include="FlyweightFactory.cs" />
48+
<Compile Include="ImageNode.cs" />
4849
<Compile Include="Program.cs" />
4950
<Compile Include="Properties\AssemblyInfo.cs" />
5051
</ItemGroup>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)