Let's say I have projoct A with class A that has this property:
public bool IsConnected { get { return m_isConnected; } private set { m_isConnected = value; } }
In the same solution, I have project B that references project A and has a user control called Login. This control has this attribute:
private A m_A = null;
and in the login constructor I make this call:
if (m_A! = null & m_A.IsConnected) {...}
In the same project, the main form has a custom control A on it, which was added by the form designer. The program works fine, and this property is read correctly.
However, when I open the main form in the constructor, I get this execution: MissingMethodException: 'Boolean A.get_IsConnected ()'
Commenting on m_A.IsConnected, let me use the constructor, but it gets pretty annoying. And sometimes it seems that he accidentally works.
Any ideas?
source share