Last active
December 20, 2015 20:59
-
-
Save aashishkoirala/6194179 to your computer and use it in GitHub Desktop.
Handling duplicate assemblies with MEF - AssemblyEqualityComparer class.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private class AssemblyEqualityComparer : IEqualityComparer<Assembly> | |
{ | |
public bool Equals(Assembly x, Assembly y) | |
{ | |
return x.FullName == y.FullName; | |
} | |
public int GetHashCode(Assembly obj) | |
{ | |
return obj.GetHashCode(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment