Skip to content

Instantly share code, notes, and snippets.

@aashishkoirala
Last active December 20, 2015 20:59
Show Gist options
  • Save aashishkoirala/6194179 to your computer and use it in GitHub Desktop.
Save aashishkoirala/6194179 to your computer and use it in GitHub Desktop.
Handling duplicate assemblies with MEF - AssemblyEqualityComparer class.
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