Let's take this xml structure as example:
<?xml version="1.0" encoding="utf-8"?>
<Configuration-content>
<XFile Name="file name 1" />
<XFile Name="name2" />
<XFile Name="name3" />
<XFile Name="name4" />
</Configuration-content>
C# interface to implement:
public class Configuration
{
public XFile[] Files { get; set; }
}
public interface IConfigurationRipository
{
Configuration Get();
void Save(Configuration entity);
}
I wonder what's the best way to do that.
The task is to implement IConfigurationRipository
using your favorite approach.