private void RowMap(BulmaNavbarRowMapArgs args, BulmaNavbarRowMapResult result, string fieldName) { var propertyInfo = args.Row.GetType().GetProperty(fieldName); if (propertyInfo != null) { object value = propertyInfo.GetValue(args.Row); result.GetType().GetField(fieldName).SetValue(result, value); } }
private void RowMap(Row args, BulmaNavbarRowMapResult result, string propertyName) { object value = args.GetType().GetProperty(propertyName).GetValue(args); result.GetType().GetProperty(propertyName).SetValue(result, value); }