forked from scriptcs/scriptcs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAssemblyReferences.cs
More file actions
30 lines (26 loc) · 890 Bytes
/
AssemblyReferences.cs
File metadata and controls
30 lines (26 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace ScriptCs.Contracts
{
public class AssemblyReferences
{
public AssemblyReferences()
{
PathReferences = new HashSet<string>();
Assemblies = new HashSet<Assembly>();
}
public HashSet<string> PathReferences { get; set; }
public HashSet<Assembly> Assemblies { get; set; }
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;
}
}
}