propertygrid最近是否改变了行为? [英] Did the propertygrid recently change behavior?

查看:75
本文介绍了propertygrid最近是否改变了行为?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一段代码,它从XML格式的文件中读取属性并将其呈现给用户以供查看和编辑

I have a block of code thats reading properties from an XML formatted file and presenting it to the user for view and edit

将其设置为读取的对象作为源属性网格

its setting the object read as the source of the property grid

我现在得到一系列对象引用错误

I am now getting a series of object reference errors

代码已经工作了一段时间 - 没有变化

The code has been working for awhile - no changes

我想知道底层控件是否做了不同的事情?

I was wondering if the underlying control is doing something different?

推荐答案

我不知道有任何变化但是我想知道你是否正在使用LINQ并依赖于可能没有明确定义的行为。例如,如果您使用LINQ从XML读取属性并假设每次查询属性
时它会返回相同的对象然后可能不是真的。

I'm not aware of any changes but I wonder if you are/were using LINQ and relying on behavior that may not have been explicitly defined. For example if you were using LINQ to read attributes from the XML and assuming that each time you queried for an attribute it would give you back the same object then that may not be true.

你能发布失败的代码以及异常细节吗?

Can you post the code that is failing along with the exception details?


这篇关于propertygrid最近是否改变了行为?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆