Loading files
7f9864208This file is pinned to the selected release. Download the original to open it in your design tool.
using System.Collections.Generic;
using System.Linq;
namespace System.Reflection;
public static class AssembliesEnumerableExtensions
{
public static void ThrowArgumentExceptionIfAnyInMemory(this IEnumerable<Assembly> assemblies)
{
var assembly = assemblies.FirstOrDefault(assembly => string.IsNullOrEmpty(assembly.Location));
if (assembly != null)
{
throw new ArgumentException(
"No assembly used for hardware generation can be an in-memory one, but the assembly named \"" +
assembly.FullName + "\" is.");
}
}
}