I have done some research on this question before deciding to ask it. I just could not find anything that helped me.
I am writing an application in C# for the compact framework 2.0.
I need to take a data object instantiated on form1 and pass that object a form2. Work on the data object in form2 and then pass that data back to form1 so it can be saved.
I understand that a form is just an object an I also understand that objects are past by reference and not by value. I also understand the difference between the two types. I just cannot make it work for some reason.
What is the best, and cleanest, way in code to achieve this?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…