public static string Describe(this ITypeDescriptor descriptor) { var sb = new StringBuilder(); descriptor.BuildHumanReadableFullName(sb, new HashSet <ITypeDescriptor>(ReferenceEqualityComparer <ITypeDescriptor> .Instance), 0); return(sb.ToString()); }
public void BuildHumanReadableFullName(StringBuilder text, HashSet <ITypeDescriptor> stack, uint indent) { text.Append("Dictionary<"); _keyDescriptor.BuildHumanReadableFullName(text, stack, indent); text.Append(", "); _valueDescriptor.BuildHumanReadableFullName(text, stack, indent); text.Append(">"); }
public void BuildHumanReadableFullName(StringBuilder text, HashSet <ITypeDescriptor> stack, uint indent) { text.Append("List<"); _itemDescriptor.BuildHumanReadableFullName(text, stack, indent); text.Append(">"); }