using System; namespace Carbon.Json { public class PropertyTransformation { public PropertyTransformation(string name, Func transformer) { Name = name ?? throw new ArgumentNullException(nameof(name)); Transformer = transformer ?? throw new ArgumentNullException(nameof(transformer)); } public string Name { get; } public Func Transformer { get; } } }