/examples/LinFu.AOP.Samples/SampleLibrary/Employee.cs

http://github.com/philiplaureano/LinFu · C# · 19 lines · 17 code · 2 blank · 0 comment · 0 complexity · d0122c6a74debd6c8fbe4ba533177a89 MD5 · raw file

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace SampleLibrary
  6. {
  7. public class Employee
  8. {
  9. private readonly BankAccount _checkingAccount = new BankAccount(42);
  10. public void Pay(int wage)
  11. {
  12. var currentAmount = wage;
  13. _checkingAccount.Deposit(currentAmount);
  14. Console.WriteLine("Paid {0} units", wage);
  15. }
  16. }
  17. }