In this quick tip I will show you a simple way to retrieve Root Domain and favicon icon from URL using C#. Its quite useful if you are building some kind of a newsreader app and wish to display the source of a news article in a proper way. Use the displayRootDomain
method that takes url
as input and gets the root domain and favicon.
This works for most URLs but I can’t guarantee if it will work for all links.