Skip to content

Instantly share code, notes, and snippets.

@MichalGrzegorzak
Forked from sclarson/gist:2580699
Created February 12, 2013 08:45
Show Gist options
  • Save MichalGrzegorzak/4761019 to your computer and use it in GitHub Desktop.
Save MichalGrzegorzak/4761019 to your computer and use it in GitHub Desktop.
[XmlIgnore]
public Uri Url { get; set; }
[XmlAttribute("uri")]
[Browsable(false), EditorBrowsable(EditorBrowsableState.Never)]
public string UriString
{
get { return Url == null ? null : Url.ToString(); }
set { Url = value == null ? null : new Uri(value); }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment