Quantcast
Channel: Remove URl from a string in c# - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Answer by Derek Lakin for Remove URl from a string in c#

$
0
0

You can just access the attribute value for the url attribute:

ThumbSource = imageFeed.Element("thumbnail").Attribute("url").Value,

It would probably worth using some kind of extensions method to return string.Empty if the attribute is missing, though.


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>