1
Reply

The wise way to define a string class

pedram

pedram

Apr 23 2013 7:02 AM
876
I wonder if you could tell me whether it is a wise way to declare a string class in C#:

 class Item 
    {  
        public
 string id = "";  
        public
 string name = "";  
        public
 string title = "";  
        public
 string value = "";  
        public
 string type = "";  
        public
 string tagname = ""
    }
 Their value is to be added in a program.

Answers (1)