public string GetDescription(IProfileSetting actionFacade) { if (_descriptions.TryGetValue(actionFacade.GetType(), out Func <IProfileSetting, string> descriptionFunc)) { return(descriptionFunc.Invoke(actionFacade)); } return(""); }
private IProfileSetting CopySetting(IProfileSetting setting) { var copyMethod = setting?.GetType().GetMethod(nameof(ConversionProfile.Copy)); return((IProfileSetting)copyMethod?.Invoke(setting, null)); }