阅读背景:

如何使用反射来获取显式实现接口的属性?

来源:互联网 

More specifically, if I have:

更具体地说,如果我有:

public class TempClass : TempInterface
{

    int TempInterface.TempProperty
    {
        get;
        set;
    }
    int TempInterface.TempProperty2
    {
        get;
        set;
    }

    public int TempProperty
    {
        get;
        set;
    }
}

public interface TempInterface
{
    int TempProperty
    {
        get;
        set;
    }
    int TempProperty2
    {
        get;
        set;
    }
}
p



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: