PageRenderTime 102ms CodeModel.GetById 60ms app.highlight 2ms RepoModel.GetById 38ms app.codeStats 0ms

/examples/ioc/PropertyInjectionSample/CarLibrary2/Person.cs

http://github.com/philiplaureano/LinFu
C# | 44 lines | 39 code | 5 blank | 0 comment | 0 complexity | fe2470477575fdd435d038b39f15076b MD5 | raw file
 1using System;
 2using System.Collections.Generic;
 3using System.Text;
 4
 5using LinFu.IoC;
 6using LinFu.IoC.Configuration;
 7using LinFu.IoC.Interfaces;
 8
 9namespace CarLibrary2
10{
11    [Implements(typeof(IPerson), LifecycleType.OncePerRequest)]
12    public class Person : IPerson
13    {
14        private string _name;
15        private int _age;
16        #region IPerson Members
17
18        public string Name
19        {
20            get
21            {
22                return _name;
23            }
24            set
25            {
26                _name = value;
27            }
28        }
29
30        public int Age
31        {
32            get
33            {
34                return _age;
35            }
36            set
37            {
38                _age = value;
39            }
40        }
41
42        #endregion
43    }
44}