コード例 #1
0
 public static InputFile GetInputFile(int id) => InputFiles.Find(x => x.ID == id);
コード例 #2
0
 public static bool HasInputFile(string originalName) => InputFiles.Find(x => x.OriginalName.Equals(originalName)) != null;
コード例 #3
0
 /// <summary>
 /// Finds a stadnard <see cref="InputFile"/> in <see cref="InputFiles"/>.
 /// </summary>
 /// <param name="inputFileName">Name of the findable <see cref="InputFile"/>.</param>
 /// <returns>An <see cref="InputFile"/> whose name is <paramref name="inputFileName"/>.</returns>
 public static InputFile GetStandardInputFile(string inputFileName) => InputFiles.Find(x => x.Name.Equals(inputFileName) && x is StandardInputFile);