Will I create any problems if I make all my class properties structure members like the following code does?
private struct Properties { public int p1; public int p2; } private Properties P; public int p1 { get { return P.p1; } set { P.p1 = value; } } public int p2 { get { return P.p2; } set { P.p2 = value; } } I did the analogous thing in VB for years, but then speed was not important. Now I am just getting started with C# on real time projects where speed matters. Thanks for any feedback!
"Will I create any problems"- Well, it makes the code more complex for no discernible reason. Complex things are more likely to fail than simple things.