Translating code from one language to another is not really a good idea. Different languages have different optimizations and ways of doing things. Since you are looking for this to be translated into any other language, I think it would be better for you to take what the code is doing (conceptually) and figure out how to do it in the language of your choice.
As a last resort, you could use this code directly inside .NET as evidenced by the second most popular answer to this question on Stack Overflow:
http://stackoverflow.com/questions/5221669/php-to-c-sharp-converter[
^]
As for what this specific code does, in case you are wondering, it loads a webpage into memory and then parses it. Basically, it looks like you are doing screen scraping or other such tasks. There are demos for how to do this in each of the languages you mentioned above.