示例#1
0
 public void ValidateOrThrow()
 {
     if (!MediaId.HasValue)
     {
         throw new Exception("No media id provided.");
     }
     if (!FieldName.IsSet())
     {
         throw new Exception("No field name provided.");
     }
 }