Hello All!
I have two objects, one that is read only and one that is read-write. I am trying to morph from Readonly to Readwrite. Below is the code I am currently using to morph:
However when stepping through the code, when it gets to the line
I get an exception stating that it is an invalid cast. What am I doing wrong?
Thanks in advance for the help!
Tazzmann
I have two objects, one that is read only and one that is read-write. I am trying to morph from Readonly to Readwrite. Below is the code I am currently using to morph:
Code:
private void btnCreate_Click(object sender, System.EventArgs e)
{
try
{
m_roAddress = null;
m_roAddress = new RSMedical.System.rwAddress();
}
catch (System.Exception ex)
{
System.Console.WriteLine(ex.ToString());
}
}
Code:
m_roAddress = new RSMedical.System.rwAddress();
Thanks in advance for the help!
Tazzmann