Example #1
0
 /// <inheritdoc/>
 public override String ToString()
 {
     System.Text.StringBuilder sb = new System.Text.StringBuilder();
     sb.Append('<').Append(_uri).Append('>')
     .Append(' ').Append(_attributes.Title);
     if (_attributes.Contains(LinkFormat.ResourceType))
     {
         sb.Append("\n\t").Append(LinkFormat.ResourceType)
         .Append(":\t").Append(_attributes.GetResourceTypes());
     }
     if (_attributes.Contains(LinkFormat.InterfaceDescription))
     {
         sb.Append("\n\t").Append(LinkFormat.InterfaceDescription)
         .Append(":\t").Append(_attributes.GetInterfaceDescriptions());
     }
     if (_attributes.Contains(LinkFormat.ContentType))
     {
         sb.Append("\n\t").Append(LinkFormat.ContentType)
         .Append(":\t").Append(_attributes.GetContentTypes());
     }
     if (_attributes.Contains(LinkFormat.MaxSizeEstimate))
     {
         sb.Append("\n\t").Append(LinkFormat.MaxSizeEstimate)
         .Append(":\t").Append(_attributes.MaximumSizeEstimate);
     }
     if (_attributes.Observable)
     {
         sb.Append("\n\t").Append(LinkFormat.Observable);
     }
     return(sb.ToString());
 }