Skip to content

Commit

Permalink
Fix broken behaviour for AssemblyHelper (#3909)
Browse files Browse the repository at this point in the history
  • Loading branch information
Evangelink authored Jul 28, 2022
1 parent 990f7c0 commit 18aeea4
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ public static class AssemblyHelper
/// </summary>
public static bool? DoesReferencesAssembly(string source, AssemblyName referenceAssembly)
{
ValidateArg.NotNull(referenceAssembly, nameof(referenceAssembly));
try
if (source.IsNullOrEmpty() || referenceAssembly is null)
{
ValidateArg.NotNullOrEmpty(source, nameof(source));
return null;
}

try
{
var referenceAssemblyName = referenceAssembly.Name;
var referenceAssemblyPublicKeyToken = referenceAssembly.GetPublicKeyToken();

Expand Down

0 comments on commit 18aeea4

Please sign in to comment.