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