catch (Exception x) {
    switch (x.GetType().Name) {
      case "FileNotFoundException":
        ...
        break;
    }
  }