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