public void Union(AssemblyReferences obj) { Guard.AgainstNullArgument("obj", obj); PathReferences.UnionWith(obj.PathReferences); Assemblies.UnionWith(obj.Assemblies); }
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() }); }
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); }
public AssemblyReferences Except(AssemblyReferences obj) { Guard.AgainstNullArgument("obj", obj); return(new AssemblyReferences(PathReferences.Except(obj.PathReferences), Assemblies.Except(obj.Assemblies))); }