diff options
Diffstat (limited to 'Aggregator')
| -rw-r--r-- | Aggregator/Parser/Class1.cs | 6 | ||||
| -rw-r--r-- | Aggregator/Parser/Download.cs | 11 | 
2 files changed, 11 insertions, 6 deletions
diff --git a/Aggregator/Parser/Class1.cs b/Aggregator/Parser/Class1.cs deleted file mode 100644 index 635f2eb..0000000 --- a/Aggregator/Parser/Class1.cs +++ /dev/null @@ -1,6 +0,0 @@ -using System; - -namespace Parser { -    public class Class1 { -    } -} diff --git a/Aggregator/Parser/Download.cs b/Aggregator/Parser/Download.cs new file mode 100644 index 0000000..30a2881 --- /dev/null +++ b/Aggregator/Parser/Download.cs @@ -0,0 +1,11 @@ +using System.Net; + +namespace Parser { +    public static class Download { +        public static string DownloadXML(string site) { +            using (var client = new WebClient()) { +                return client.DownloadString(site); +            } +        } +    } +}  | 
