예제 #1
0
 /// <summary>
 /// Renders the syntax for a type.
 /// </summary>
 /// <param name="renderer">The syntax renderer to use.</param>
 /// <param name="type">The type.</param>
 /// <returns>The rendered syntax.</returns>
 public static string Render(this ISyntaxRenderer renderer, DocumentedType type)
 {
     return(renderer.Render(type.Definition.GetTypeSignature(null)));
 }
예제 #2
0
 /// <summary>
 /// Renders the syntax for a method.
 /// </summary>
 /// <param name="renderer">The syntax renderer to use.</param>
 /// <param name="method">The method.</param>
 /// <returns>The rendered syntax.</returns>
 public static string Render(this ISyntaxRenderer renderer, DocumentedMethod method)
 {
     return(renderer.Render(method.Definition.GetMethodSignature(null)));
 }