コード例 #1
0
 public static LocalMod FromLocalModInfo(LocalModInfo info, ISupportModding game)
 {
     if (info == null)
     {
         throw new ArgumentNullException(nameof(info));
     }
     if (game == null)
     {
         throw new ArgumentNullException(nameof(game));
     }
     return(CreateLocalMod(info.Name, info.Path, game));
 }
コード例 #2
0
 public static LocalMod FromLocalModInfo(LocalModInfo info, ISupportModding game) {
     Contract.Requires<ArgumentNullException>(info != null);
     Contract.Requires<ArgumentNullException>(game != null);
     return CreateLocalMod(info.Name, info.Path, game);
 }