public static bool IsEmpty(this IUmlFill fill) { return(string.IsNullOrEmpty(fill?.GetCode())); }
public static string GetCodeWithSpace(this IUmlFill fill, bool convertToRgb = false) { var code = fill?.GetCode(convertToRgb); return(string.IsNullOrEmpty(code) ? string.Empty : " " + code); }