<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://www.zhuzhugst.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://www.zhuzhugst.com/feed.php">
        <title>张叶安的博客 - csharp:gof23种设计模式</title>
        <description></description>
        <link>https://www.zhuzhugst.com/</link>
        <image rdf:resource="https://www.zhuzhugst.com/lib/exe/fetch.php?media=logo.png" />
       <dc:date>2026-04-22T04:55:12+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://www.zhuzhugst.com/doku.php?id=csharp:gof23%E7%A7%8D%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F:%E5%8D%95%E4%BE%8B%E6%A8%A1%E5%BC%8F&amp;rev=1766978569&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.zhuzhugst.com/doku.php?id=csharp:gof23%E7%A7%8D%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F:%E8%A7%82%E5%AF%9F%E8%80%85%E6%A8%A1%E5%BC%8F&amp;rev=1767933926&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.zhuzhugst.com/doku.php?id=csharp:gof23%E7%A7%8D%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F:%E7%AE%80%E5%8D%95%E5%B7%A5%E5%8E%82%E6%A8%A1%E5%BC%8F&amp;rev=1766371873&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.zhuzhugst.com/doku.php?id=csharp:gof23%E7%A7%8D%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F:%E7%BB%84%E5%90%88%E6%A8%A1%E5%BC%8F&amp;rev=1767933229&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://www.zhuzhugst.com/lib/exe/fetch.php?media=logo.png">
        <title>张叶安的博客</title>
        <link>https://www.zhuzhugst.com/</link>
        <url>https://www.zhuzhugst.com/lib/exe/fetch.php?media=logo.png</url>
    </image>
    <item rdf:about="https://www.zhuzhugst.com/doku.php?id=csharp:gof23%E7%A7%8D%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F:%E5%8D%95%E4%BE%8B%E6%A8%A1%E5%BC%8F&amp;rev=1766978569&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-12-29T03:22:49+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>单例模式</title>
        <link>https://www.zhuzhugst.com/doku.php?id=csharp:gof23%E7%A7%8D%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F:%E5%8D%95%E4%BE%8B%E6%A8%A1%E5%BC%8F&amp;rev=1766978569&amp;do=diff</link>
        <description>C# 单例模式 (Singleton Pattern)

单例模式是 C# 开发中最常用的设计模式之一。它确保一个类只有一个实例，并提供一个全局访问点来获取该实例。

1. 为什么使用单例模式？

在 C# 应用程序中，单例模式通常用于管理共享资源，例如：</description>
    </item>
    <item rdf:about="https://www.zhuzhugst.com/doku.php?id=csharp:gof23%E7%A7%8D%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F:%E8%A7%82%E5%AF%9F%E8%80%85%E6%A8%A1%E5%BC%8F&amp;rev=1767933926&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-01-09T04:45:26+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>观察者模式</title>
        <link>https://www.zhuzhugst.com/doku.php?id=csharp:gof23%E7%A7%8D%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F:%E8%A7%82%E5%AF%9F%E8%80%85%E6%A8%A1%E5%BC%8F&amp;rev=1767933926&amp;do=diff</link>
        <description>C# 设计模式：观察者模式 (Observer Pattern)

观察者模式（Observer Pattern）是一种行为型设计模式。它定义了对象之间的一对多依赖关系，当一个对象（被观察者）的状态发生改变时，所有依赖于它的对象（观察者）都会得到通知并自动更新。</description>
    </item>
    <item rdf:about="https://www.zhuzhugst.com/doku.php?id=csharp:gof23%E7%A7%8D%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F:%E7%AE%80%E5%8D%95%E5%B7%A5%E5%8E%82%E6%A8%A1%E5%BC%8F&amp;rev=1766371873&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-12-22T02:51:13+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>简单工厂模式</title>
        <link>https://www.zhuzhugst.com/doku.php?id=csharp:gof23%E7%A7%8D%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F:%E7%AE%80%E5%8D%95%E5%B7%A5%E5%8E%82%E6%A8%A1%E5%BC%8F&amp;rev=1766371873&amp;do=diff</link>
        <description>简单工厂模式 (Simple Factory Pattern) - C#

简单工厂模式虽然不属于 GoF 23种设计模式（它是工厂方法模式的一个特例或简化版），但在实际开发中非常常用。它主要用于管理对象的创建过程。

1. 原理</description>
    </item>
    <item rdf:about="https://www.zhuzhugst.com/doku.php?id=csharp:gof23%E7%A7%8D%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F:%E7%BB%84%E5%90%88%E6%A8%A1%E5%BC%8F&amp;rev=1767933229&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2026-01-09T04:33:49+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>组合模式</title>
        <link>https://www.zhuzhugst.com/doku.php?id=csharp:gof23%E7%A7%8D%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F:%E7%BB%84%E5%90%88%E6%A8%A1%E5%BC%8F&amp;rev=1767933229&amp;do=diff</link>
        <description>C# 设计模式：组合模式 (Composite Pattern)

组合模式（Composite Pattern）是一种结构型设计模式。它允许你将对象组合成树形结构来表现“整体/部分”的层次结构。组合能让客户端以一致的方式处理个别对象（叶子）和对象组合（容器）。</description>
    </item>
</rdf:RDF>
