using Invercargill; namespace Usm { public class Dependencies { public Set runtime { get; set; } public Set build { get; set; } public Set manage { get; set; } public Set? acquire { get; set; } public static PropertyMapper get_mapper() { return PropertyMapper.build_for(cfg => { cfg.map_many("runtime", o => o.runtime.select(i => i.to_string()), (o, v) => o.runtime = v.convert(i => new ResourceRef(i)).to_set()); cfg.map_many("build", o => o.build.select(i => i.to_string()), (o, v) => o.build = v.convert(i => new ResourceRef(i)).to_set()); cfg.map_many("manage", o => o.manage.select(i => i.to_string()), (o, v) => o.manage = v.convert(i => new ResourceRef(i)).to_set()); cfg.map_many("acquire", o => o.manage.select(i => i.to_string()), (o, v) => o.manage = v.convert(i => new ResourceRef(i)).to_set(), false); cfg.set_constructor(() => new Dependencies()); }); } } }