Class Vs Structure in program design ..
I am converting my old C project to c# project to explore the language.
My C program is a viewer , which reads a file and displays Data and parameters in different formats and print them .
I have used plenty of structures in my c code.
Now should I convert them to classes and use ?
or
I should define a class and use structures inside ?
pl guide ..
Thanking you ..
Re: Class Vs Structure in program design ..
tl;dr version: probably classes, unless you have a good reason to choose structs.
Longer version, you'll probably want to read about the differences: http://msdn.microsoft.com/en-us/libr...=vs.71%29.aspx
Re: Class Vs Structure in program design ..
Thank u BiophysEngr Sir ,
I will difinately go for classes . I am just thinking for the best possible way to design the program.