S
senfo
Originally, I had a class like the following that I would serialize to
persist values from an options dialog:
[Serializable()]
public class MyClass
{
private int _someNum;
private string _someString;
public int SomeNum
{
get { return _someNum; }
set { _someNum = value; }
}
public int SomeString
{
get { return _someString; }
set { _someString = value; }
}
}
I later added a boolean type to the class as such:
[Serializable()]
public class MyClass
{
private int _someNum;
private string _someString;
private bool _someBool
public int SomeNum
{
get { return _someNum; }
set { _someNum = value; }
}
public string SomeString
{
get { return _someString; }
set { _someString = value; }
}
public bool SomeBool
{
get { return _someBool; }
set { _someString = someBool; }
}
}
Clients already have the original configuration class serialized on
their machines and now I need to ensure that, when the updated
application is installed, the value of SomeBool is true, by default.
Without deleting the original configuration file, is there any way that
I can ensure that the value of SomeBool is set to true? After the
update, it would be a little silly to ask that the users open their
options dialog to verify that the CheckBox is checked. ;-)
Thank you in advance,
persist values from an options dialog:
[Serializable()]
public class MyClass
{
private int _someNum;
private string _someString;
public int SomeNum
{
get { return _someNum; }
set { _someNum = value; }
}
public int SomeString
{
get { return _someString; }
set { _someString = value; }
}
}
I later added a boolean type to the class as such:
[Serializable()]
public class MyClass
{
private int _someNum;
private string _someString;
private bool _someBool
public int SomeNum
{
get { return _someNum; }
set { _someNum = value; }
}
public string SomeString
{
get { return _someString; }
set { _someString = value; }
}
public bool SomeBool
{
get { return _someBool; }
set { _someString = someBool; }
}
}
Clients already have the original configuration class serialized on
their machines and now I need to ensure that, when the updated
application is installed, the value of SomeBool is true, by default.
Without deleting the original configuration file, is there any way that
I can ensure that the value of SomeBool is set to true? After the
update, it would be a little silly to ask that the users open their
options dialog to verify that the CheckBox is checked. ;-)
Thank you in advance,