internal void GetInputAssemblies(ISet <AssemblyName> assemblies) { Requires.NotNull(assemblies, nameof(assemblies)); foreach (var inputAssembly in this.ExtraInputAssemblies) { assemblies.Add(inputAssembly); } this.TypeRef.GetInputAssemblies(assemblies); ReflectionHelpers.GetInputAssembliesFromMetadata(assemblies, this.Metadata); foreach (var export in this.ExportedTypes) { export.GetInputAssemblies(assemblies); } foreach (var exportingMember in this.ExportingMembers) { exportingMember.Key.GetInputAssemblies(assemblies); foreach (var export in exportingMember.Value) { export.GetInputAssemblies(assemblies); } } foreach (var import in this.Imports) { import.GetInputAssemblies(assemblies); } this.OnImportsSatisfiedRef.GetInputAssemblies(assemblies); this.ImportingConstructorOrFactoryRef.GetInputAssemblies(assemblies); }
internal void GetInputAssemblies(ISet <AssemblyName> assemblies) { Requires.NotNull(assemblies, nameof(assemblies)); // TODO: consider the assembly dependencies brought in by constraints. ReflectionHelpers.GetInputAssembliesFromMetadata(assemblies, this.Metadata); }
internal void GetInputAssemblies(ISet <AssemblyName> assemblies) { Requires.NotNull(assemblies, nameof(assemblies)); ReflectionHelpers.GetInputAssembliesFromMetadata(assemblies, this.Metadata); }