PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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