C# 如何将反射从wp8.1 silverlight转换为wp8.1

C# 如何将反射从wp8.1 silverlight转换为wp8.1,c#,windows-phone-8,reflection,C#,Windows Phone 8,Reflection,我正在使用vs2015,我在wp7.1 Silverlight中开发了一个应用程序。我把它升级到wp8.1 Silverlight。当我试图将其发布到商店时,它没有通过认证。我做了一些测试,并决定将其转换为wp8.1以通过认证 在从wp8.1 Silverlight转换到wp8.1的过程中,我在反射方面遇到了一些困难,因为反射与win8.1 Silverlight中的反射不同 我有这个方法(在wp8.1 Silverlight编译中没有错误)。 谁能帮我把它写在wp8.1里 public B

我正在使用vs2015,我在wp7.1 Silverlight中开发了一个应用程序。我把它升级到wp8.1 Silverlight。当我试图将其发布到商店时,它没有通过认证。我做了一些测试,并决定将其转换为wp8.1以通过认证

在从wp8.1 Silverlight转换到wp8.1的过程中,我在反射方面遇到了一些困难,因为反射与win8.1 Silverlight中的反射不同

我有这个方法(在wp8.1 Silverlight编译中没有错误)。 谁能帮我把它写在wp8.1里

  public ByConventionMapperStrategy(Type entityType, bool publicOnly)
        : base(entityType, publicOnly)
    {
        //map members that are properties
        ColumnPredicate = m => m.MemberType == MemberTypes.Property;

        //map members that are properties and icollection types.
        RelationshipPredicate = m =>
            {
                return m.MemberType == MemberTypes.Property && typeof(ICollection).IsAssignableFrom((m as PropertyInfo).PropertyType);
            };
    }

    public Func<MemberInfo, bool> ColumnPredicate;
    public Func<MemberInfo, bool> RelationshipPredicate;
public by约定映射策略(Type entityType,bool publicOnly)
:base(entityType,仅限Public)
{
//映射属于属性的成员

ColumnPredicate=m=>m.MemberType==MemberTypes.Property; //映射属于属性和icollection类型的成员。 RelationshipPredicate=m=> { 返回m.MemberType==MemberTypes.Property&&typeof(ICollection).IsAssignableFrom((m as PropertyInfo).PropertyType); }; } 公共职能; 公共函数关系谓词;
请原谅我的英语。
谢谢您的帮助。

它没有通过认证的原因是什么?我认为在反射方面不应该对代码进行任何更改。它没有通过认证,因为我在wp8.1 Silverlight应用程序中使用了community.CsharpSqlite.SQLiteClent.wp dll,该dll处于调试模式。我试图制作一个发布模式的版本,但没有成功。我决定将应用程序转换为UWP,并更改为sqlite net provider.ColumnPredicate=m=>m.MemberType==MemberTypes.Property;Been:ColumnPredicate=m=>m.GetType().GetTypeInfo().GetType()==typeof(PropertyInfo);这是等价物吗?