Exemplo n.º 1
0
        private MemberDependency CreateMemberDependency(MemberMetadataInfo type, AssemblyReferenceInformation definedInAssembly)
        {
            // Apply heuristic to determine if API is most likely defined in a framework assembly
            if (!_assemblyFilter.IsFrameworkMember(definedInAssembly))
            {
                return(null);
            }

            return(new MemberDependency
            {
                CallingAssembly = CallingAssembly,
                MemberDocId = FormattableString.Invariant($"T:{type}"),
                DefinedInAssemblyIdentity = definedInAssembly
            });
        }
Exemplo n.º 2
0
 public static bool IsFrameworkMember(this IDependencyFilter filter, AssemblyReferenceInformation assembly)
 {
     return(filter.IsFrameworkMember(assembly.Name, assembly.PublicKeyToken));
 }