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