santosh kumar

santosh kumar

  • NA
  • 22
  • 5.3k

I am getting in the output System.Collections.Generic.List

May 15 2018 1:14 PM
Hi,
 
I am getting System.Collections.Generic.List`1[System.String] in the output at "Allow prefixes" and "DenyPrefixes" instead of data.
 
Below is my code
 
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class IndexingPolicy {\n");
sb.Append(" AllowPrefixes: ").Append(AllowPrefixes).Append("\n");
sb.Append(" DenyPrefixes: ").Append(DenyPrefixes).Append("\n");
sb.Append(" DisableIndexing: ").Append(DisableIndexing).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
 

Answers (1)