1
Answer

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

santosh kumar

santosh kumar

6y
745
1
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)