コード例 #1
0
        static void Main(string[] args)
        {
            MobileAccount mobile1 = new MobileAccount("0993422226");
            MobileAccount mobile2 = new MobileAccount("0502121212");

            mobile2.Call("099");
            mobile2.SendMail("0993422226");
            Console.WriteLine(new string('-', 30));
            mobile1.AddAccount(mobile2.PhoneNumber, new Account {
                Name = "Dima"
            });

            mobile2.SendMail("0993422226");
        }
コード例 #2
0
 public void Call(MobileAccount account)
 {
     Call(account.PhoneNumber);
 }
コード例 #3
0
 public void SendMail(MobileAccount account)
 {
     SendMail(account.PhoneNumber);
 }