1
public class KeyValue : ProfileBase
{
    public KeyValue()
    { }

    public List<KeyValuePair<string, string>> pair
    {
        get { return (List<KeyValuePair<string,string>>)base["pair"]; }
        set { base["pair"] = value; }
    }

    public string Name
    {
        get { return base["Name"] as string; }
        set { base["Name"] = value; }
    }
}

这个 CustomProfile 类有什么问题。我正在保存键值对列表,但是当我访问它时,每对都显示 null,但它给出了正确的名称

4

0 回答 0