/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
- using System;
- using System.Collections.Generic;
- using System.Text;
- using LinFu.IoC;
- using LinFu.IoC.Configuration;
- using LinFu.IoC.Interfaces;
- namespace CarLibrary2
- {
- [Implements(typeof(IPerson), LifecycleType.OncePerRequest)]
- public class Person : IPerson
- {
- private string _name;
- private int _age;
- #region IPerson Members
- public string Name
- {
- get
- {
- return _name;
- }
- set
- {
- _name = value;
- }
- }
- public int Age
- {
- get
- {
- return _age;
- }
- set
- {
- _age = value;
- }
- }
- #endregion
- }
- }