Ejemplo n.º 1
0
        bool IsTypeInterestingForDataflow(TypeReference typeReference)
        {
            if (typeReference.MetadataType == MetadataType.String)
            {
                return(true);
            }

            TypeDefinition type = _context.TryResolveTypeDefinition(typeReference);

            return(type != null && (
                       _hierarchyInfo.IsSystemType(type) ||
                       _hierarchyInfo.IsSystemReflectionIReflect(type)));
        }
Ejemplo n.º 2
0
 bool IsTypeInterestingForDataflow(TypeReference typeReference)
 {
     return(typeReference.MetadataType == MetadataType.String ||
            _hierarchyInfo.IsSystemType(typeReference) ||
            _hierarchyInfo.IsSystemReflectionIReflect(typeReference));
 }