Exemplo n.º 1
0
 public static System.Uri SurrogateToValueRequired(MyUriSurrogate surrogate)
 {
     if (surrogate != null)
     {
         return MyUriSurrogate.SurrogateToValue(surrogate);
     }
     else
     {
         throw new PinchNullRequiredFieldException();
     }
 }
Exemplo n.º 2
0
 public static System.Uri SurrogateToValueOptional(MyUriSurrogate surrogate)
 {
     if (surrogate != null)
     {
         return MyUriSurrogate.SurrogateToValue(surrogate);
     }
     else
     {
         return null;
     }
 }