我试过这样的事情:
[NonSerialized]
private string _DecodeText;
public string DecodeText { get { return _DecodeText; } set { _DecodeText = value; } }
Run Code Online (Sandbox Code Playgroud)
但它不起作用."DecodeText"仍在序列化文件中.如何防止属性序列化?
我有以下声明:
select region_id from regions
where region_name = 'Europe'
Run Code Online (Sandbox Code Playgroud)
我在下面的语句中需要输出,其中'bla'是:
select count(*) from countries
where region_id = 'bla'
Run Code Online (Sandbox Code Playgroud)
我怎样才能做到这一点?
当ComputedHorizontalScrollBarVisibility更改时,我需要获得通知。可悲的是,没有事件可做。有没有办法做到这一点?也许继承?