/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
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace SampleLibrary
- {
- public class Employee
- {
- private readonly BankAccount _checkingAccount = new BankAccount(42);
- public void Pay(int wage)
- {
- var currentAmount = wage;
- _checkingAccount.Deposit(currentAmount);
- Console.WriteLine("Paid {0} units", wage);
- }
- }
- }