Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Trim analyzer doesn't warn on GetType().GetMethods() #86921

@agocke

Description

@agocke

The following doesn't seem to produce an analyzer warning:

class C
{
    public static void Main()
    {
        M("abc");
    }
    public static void M(object o)
    {
        var methods = o.GetType().GetMethods();
    }
}

Metadata

Metadata

Assignees

Labels

area-Tools-ILLink.NET linker development as well as trimming analyzers

Type

No type

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions