Exemplo n.º 1
0
        public AssemblyVersionedIdentity(AssemblyName assemblyName)
        {
            if (assemblyName == null)
            {
                throw new ArgumentNullException(nameof(assemblyName));
            }

            if (string.IsNullOrEmpty(assemblyName.Name))
            {
                throw new ArgumentException("Assembly's name cannot be empty.", nameof(assemblyName));
            }

            Unversioned = new AssemblyUnversionedIdentity(assemblyName);
            Version     = assemblyName.Version;
        }
 public IEnumerable <AssemblyDependencyNode> GetDirectDependantsByGroup(AssemblyUnversionedIdentity dependencyGroup)
 => _nodes
 .Where(x => x.Identity.Unversioned == dependencyGroup)
 .SelectMany(GetDirectDependants)
 .Distinct();