Exemplo n.º 1
0
        public void Union(AssemblyReferences obj)
        {
            Guard.AgainstNullArgument("obj", obj);

            PathReferences.UnionWith(obj.PathReferences);
            Assemblies.UnionWith(obj.Assemblies);
        }
Exemplo n.º 2
0
 public Bookmark ToBookmark()
 {
     return(new Bookmark(SearchFor, ReplaceWith, FilePattern)
     {
         Description = Description,
         IgnoreFilePattern = IgnoreFilePattern,
         TypeOfFileSearch = TypeOfFileSearch,
         TypeOfSearch = TypeOfSearch,
         CaseSensitive = CaseSensitive,
         WholeWord = WholeWord,
         Multiline = Multiline,
         Singleline = Singleline,
         BooleanOperators = BooleanOperators,
         IncludeSubfolders = IncludeSubfolders,
         IncludeHiddenFiles = IncludeHidden,
         IncludeBinaryFiles = IncludeBinary,
         MaxSubfolderDepth = MaxSubfolderDepth,
         UseGitignore = UseGitignore,
         SkipRemoteCloudStorageFiles = SkipRemoteCloudStorageFiles,
         IncludeArchive = IncludeArchive,
         FollowSymlinks = FollowSymlinks,
         CodePage = CodePage,
         ApplyFileSourceFilters = ApplyFileSourceFilters,
         ApplyFilePropertyFilters = ApplyFilePropertyFilters,
         ApplyContentSearchFilters = ApplyContentSearchFilters,
         FolderReferences = PathReferences.Split(new char[] { '\n', '\r' }, StringSplitOptions.RemoveEmptyEntries).ToList()
     });
 }
Exemplo n.º 3
0
        public AssemblyReferences Except(AssemblyReferences obj)
        {
            Guard.AgainstNullArgument("obj", obj);

            var deltaObject = new AssemblyReferences
            {
                PathReferences = new HashSet <string>(PathReferences.Except(obj.PathReferences)),
                Assemblies     = new HashSet <Assembly>(Assemblies.Except(obj.Assemblies))
            };

            return(deltaObject);
        }
Exemplo n.º 4
0
        public AssemblyReferences Except(AssemblyReferences obj)
        {
            Guard.AgainstNullArgument("obj", obj);

            return(new AssemblyReferences(PathReferences.Except(obj.PathReferences), Assemblies.Except(obj.Assemblies)));
        }