Mercurial > pub > ImplabNet
diff Implab.Playground/Program.cs @ 270:ade80d94dfb5 v3
Working on Unity container xml configuration
author | cin |
---|---|
date | Wed, 25 Apr 2018 04:44:40 +0300 |
parents | ff581cff7003 |
children | d4d437ec4483 |
line wrap: on
line diff
--- a/Implab.Playground/Program.cs Tue Apr 24 01:46:02 2018 +0300 +++ b/Implab.Playground/Program.cs Wed Apr 25 04:44:40 2018 +0300 @@ -14,6 +14,8 @@ } + public string Name { get; set; } + public int IntValue { get; set; } public string StringValue { get; set; } @@ -30,6 +32,10 @@ } public T Instance { get; set; } + + public void SetInstance(T value) { + Instance = value; + } } public class Program { @@ -39,7 +45,7 @@ var conf = SerializationHelpers.DeserializeFromFile<ContainerElement>("data/sample.xml"); - Console.WriteLine($"Registrations: {conf.Registrations.Count}"); + Console.WriteLine($"Registrations: {conf.Items.Count}"); }