Answer the question
In order to leave comments, you need to log in
How to get a C# domain?
Hello. how to get domain from string?
For example,
poddomen.domen.ru
should return
domen.ru
new Uri(" https://poddomen.domen.ru ").Do not suggest host :)
It will return poddomen.domen.ru, but you need the domain domen.ru
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question