public static JProperty Transform(TransformType type, IExifValue value) { try { Transformer service = TransformProvider.GetService(type); service.Name = value.GetName(); return(service.Transform(value)); } catch (Exception ex) { string name = value.GetName(); return(new JProperty(name, ex.Message)); } }