Skip to content

BindingFlagSupport source is duplicated between CoreLib and System.Reflection.MetadataLoadContext #116243

Open
@ericstj

Description

@ericstj

In working on #116080 I noticed that nativeaot Corelib has a copy of the same code that's in MetadataLoadContext

<Compile Include="System\Reflection\Runtime\BindingFlagSupport\ConstructorPolicies.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\EventPolicies.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\FieldPolicies.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\MemberPolicies.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\MemberTypeIndex.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\MethodPolicies.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\NameFilter.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\NameFilter.NativeFormat.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\NestedTypePolicies.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\PropertyPolicies.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\QueriedMemberList.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\QueryResult.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\QueryResult.Enumerator.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\Shared.cs" />

<Compile Include="System\Reflection\Runtime\BindingFlagSupport\ConstructorPolicies.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\EventPolicies.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\FieldPolicies.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\MemberPolicies.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\MemberTypeIndex.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\MethodPolicies.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\NameFilter.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\NameFilter.Ecma.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\NestedTypePolicies.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\PropertyPolicies.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\QueriedMemberList.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\QueryResult.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\QueryResult.Enumerator.cs" />
<Compile Include="System\Reflection\Runtime\BindingFlagSupport\Shared.cs" />

We should diff this to see if it's diverged and reconcile if it has, then deduplicate and place in common.

cc @jkotas @MichalStrehovsky

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions