root/trunk/nuxleus/Source/Xameleon/Function/HttpWebResponseStream.cs
| Revision 4577, 444 bytes (checked in by xmlhacker, 10 months ago) |
|---|
| Line | |
|---|---|
| 1 | using System.IO; |
| 2 | |
| 3 | namespace Xameleon.Function { |
| 4 | |
| 5 | public static class HttpWebResponseStream { |
| 6 | |
| 7 | ///<summary> |
| 8 | ///</summary> |
| 9 | ///<param name="stream"></param> |
| 10 | ///<returns></returns> |
| 11 | public static string GetResponseString ( Stream stream ) { |
| 12 | using (StreamReader reader = new StreamReader(stream)) { |
| 13 | return reader.ReadToEnd(); |
| 14 | } |
| 15 | } |
| 16 | } |
| 17 | } |
Note: See TracBrowser for help on using the browser.
