classes Vs structs

Hi All

i want to know for passsing the data between layers in my application ,is it better i use class or struct acoording to advantage and disadvantages of them ,and i dont need to serialazation of data or hierarchy that only class have these advantages ,whic one is better to use

thanks



Answer this question

classes Vs structs

  • Ankit Nagpal

    It depends on your requirements. It is hard to say one way or the other. You should probably redirect the question to the Visual Studio data access forum or one of the programming language forums since this has nothing to do with TSQL.

  • classes Vs structs