static MyUriSurrogate ValueToSurrogate(Uri uri) { MyUriSurrogate surrogate = new MyUriSurrogate(); surrogate.Address = uri.ToString(); return surrogate; }
static Uri SurrogateToValue(MyUriSurrogate surrogate) { return new Uri(surrogate.Address); }
static MyUriSurrogate ValueToSurrogate(Uri uri) { MyUriSurrogate surrogate = new MyUriSurrogate(); surrogate.Address = uri.ToString(); return surrogate; }
static Uri SurrogateToValue(MyUriSurrogate surrogate) { return new Uri(surrogate.Address); }