public static string BuildName(this IDotnetExpander expander, object value) { if (value == null) { return(string.Empty); } var type = value.GetType(); var stringValue = ValueExtensions.IsPrimitive(type) ? $", {value.As<string>()}" : string.Empty; return($"{expander.BuildName(type)}{stringValue}"); }
public static string BuildName <T>(this IDotnetExpander expander) { return(expander.BuildName(typeof(T))); }