public static void Main(string[] args) { var fund = new Fund(); fund.BuyFund(); fund.SellFund(); Console.Read(); }
static void Main(string[] args) { Fund jijin = new Fund(); jijin.BuyFund(); jijin.SellFund(); Console.ReadKey(); }
static void Main(string[] args) { Fund fund = new Fund(); fund.BuyFund(); fund.SellFund(); Console.ReadLine(); }
static void Main(string[] args) { #region 基本用法(对应Basic.cs) Facade facade = new Facade(); facade.MethodA(); facade.MethodB(); #endregion #region 具体实例(对应Example.cs) Fund jijin = new Fund(); jijin.BuyFund(); jijin.SellFund(); Console.Read(); #endregion }
static void Main(string[] args) { Fund fund = new Fund(); // 基金買入 fund.BuyFund(); // 基金贖回 fund.SellFund(); // 由於Facade的作用,用戶端可以根本不知三個子系統類別的存在 Facade facade = new Facade(); facade.MethodA(); facade.MethodB(); Console.ReadLine(); }