.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Structure and class usage

Posted By: Asha.MP     Posted Date: September 05, 2010    Points:2   Category :ASP.Net
Dear All..

If i want to use structure in ASP.net, i can Declare a structre with in the Class and also outside the class. which is better?

Author: Jean Paul             
Posted Date: September 28, 2010     Points: 5   

Outside the class is better if you need to reuse it.

Otherwise you have to use the class name prefix to access it like ClassName.StructName

Jean Paul http://jeanpaulva.com/

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend