コード例 #1
0
 /// <summary>
 /// Simplify the content retrieval for testing
 /// </summary>
 /// <typeparam name="TValue">The type required</typeparam>
 /// <param name="content">The HttpContent being read from</param>
 /// <returns>The content cast to the right type</returns>
 public static String Get(this HttpContent content) => content.Get <String>(); // String "get" is the default