Beispiel #1
0
        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}");
        }
Beispiel #2
0
 public static string BuildName <T>(this IDotnetExpander expander)
 {
     return(expander.BuildName(typeof(T)));
 }