예제 #1
0
        private void DemoAnimal()
        {
            IAnimal animal = _container.GetInstance <IAnimal>();

            animal.Age  = 2;
            animal.Type = "cat";

            if (animal.IsDirty)
            {
                Console.WriteLine(animal.GetChangeLog());
            }
        }