Ejemplo n.º 1
0
        public static void AddFiles(
            [NotNull] this PlugInSourceList list,
            params string[] filePaths)
        {
            Check.NotNull(list, nameof(list));

            list.Add(new FilePlugInSource(filePaths));
        }
Ejemplo n.º 2
0
        public static void AddFolder(
            [NotNull] this PlugInSourceList list, [NotNull] string folder,
            SearchOption searchOption = SearchOption.TopDirectoryOnly)
        {
            Check.NotNull(list, nameof(list));

            list.Add(new FolderPlugInSource(folder, searchOption));
        }
Ejemplo n.º 3
0
        public static void AddTypes(
            [NotNull] this PlugInSourceList list,
            params Type[] moduleTypes)
        {
            Check.NotNull(list, nameof(list));

            list.Add(new TypePlugInSource(moduleTypes));
        }