Exemplo n.º 1
0
        public static string Describe(this ITypeDescriptor descriptor)
        {
            var sb = new StringBuilder();

            descriptor.BuildHumanReadableFullName(sb, new HashSet <ITypeDescriptor>(ReferenceEqualityComparer <ITypeDescriptor> .Instance), 0);
            return(sb.ToString());
        }
Exemplo n.º 2
0
 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(">");
 }
Exemplo n.º 3
0
 public void BuildHumanReadableFullName(StringBuilder text, HashSet <ITypeDescriptor> stack, uint indent)
 {
     text.Append("List<");
     _itemDescriptor.BuildHumanReadableFullName(text, stack, indent);
     text.Append(">");
 }