原创 狀態模式
State_Model 抽象狀態State using System; using System.Collections.Generic; using System.Linq; using System.Text; using S
原创 Json基礎解析
Json基礎解析 Json數據文本 [ {"id":1001,"name":"倚天劍","damage":100}, {"id":1002,"name":"屠龍刀","damage":110}, {"id":1003
原创 組合模式
Composite_Model 抽象類Component適當情況下實現所有類公共接口的默認行爲。聲明一個接口用於管理和訪問Component的子部件 using System; using System.Collections.G
原创 適配器模式
Adapter_Model 期望的接口 using System; using System.Collections.Generic; using System.Linq; using System.Text; using Sys
原创 適配器模式之籃球適配器案例
Adaptet_Model_BasketBallDemo 球員抽象類 using System; using System.Collections.Generic; using System.Linq; using System.
原创 備忘錄模式_基本代碼
Memento_Model 發起人_Originator using System; using System.Collections.Generic; using System.Linq; using System.Text;
原创 觀察者模式——問題案例——雙耦合代碼
祕書類——Secretary using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.T
原创 外觀模式--Facade_Model
四個子系統的類 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threadin
原创 觀察者模式——利用委託改善
看股票的同事 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading
原创 工廠方法模式
工廠方法模式`` 代碼塊 運算類 using System; using System.Collections.Generic; using System.Linq; using System.Text; using Syste
原创 命令模式
Command_Model 抽象命令類 using System; using System.Collections.Generic; using System.Linq; using System.Text; using S
原创 EasyTouch
*** EasyTouch觸屏移動Demo using System; using System.Collections; using System.Collections.Generic; using UnityEngine;
原创 XML基礎文本C#解析
XML基礎文本C#解析 1. XML技能數據文本 <SkillInfo> <SkillList> <Skill SkillID="20002" Ski
原创 C# ref關鍵字和out關鍵字的區別
C#out關鍵字 這個是正常的out關鍵字使用的方式 這個是錯誤的out關鍵字使用方式 第一:從以上第一幅圖可以發現 out如果作爲參數傳遞 它是按照地址傳遞的 a和b的參數值是不會被傳入到方法中的。 第二:從第二幅圖
原创 觀察者模式案例——Publish/Subscribe
抽象通知者 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading