Esempio n. 1
0
 public static WebResult <T> AsXml <T>(this WebResult <byte[]> webResult)
 {
     return(webResult.Cast(XmlSerializerExtensions.XmlToObject <T>));
 }
Esempio n. 2
0
 public static WebResult <T> AsJson <T>(this WebResult <byte[]> webResult)
 {
     return(webResult.Cast(DataContractJsonSerializerExtensions.JsonToObject <T>));
 }
Esempio n. 3
0
 public static WebResult <string> AsText(this WebResult <byte[]> webResult)
 {
     return(webResult.Cast(ByteArrayExtensions.GetString));
 }