vb.net - Newbie question: how do I create a class to hold data in Visual Basic Studio? -


I really am sorry. It should look like an incredibly stupid question, but as long as I ask that I I will never understand. I am trying to write a program to read in a basic CSV file in Visual Basic (tried and left at C #) and I asked a friend to tell me that programming is better than I am. He said that I should make a class to capture that data in which I have read.

The problem is, I have made a class earlier in VB, Java or nothing, I know all the posts related to classes, I at a higher level understand how classes do not work But I want to suck on the real details of making one.

So that's what I did:

  Go back to the array as public class TsvData property fullDataSet (???) End Gate Set (Beer Val Value ARR) And Set End And Property And Class  

I have got a question mark and I am stuck. The class is going to catch a lot of data, so I made it an array. It may be a bad move, I do not know. I just know that this string can not be and it certainly can not be an integer or a float.

For the gateer and setter, this is why I put it in question marks because I want to return the entire array there are other virtues in the class that are basically the same data permutations, but it is complete Set when I want to save it or something else, now I want to return the whole array, but typing "Return Full Dataet ()" is not a good idea. I mean, the name of the property is "fullDataSet ()." It will only make some kind of loop. But there is no other data to return.

Do I want to diminish any other head inside the property, which already has an array, and instead of changing?

  public class TsvData personal _ fullDataset string () as string () public Return to the Property FullDataset () string () Set _fullDataSet End (ByVal Value as String ()) _fullDataSet = value End Set End Property  

Note that this is a poorly designed Since the example of this, it combines a concept for a solid representation Land and customer class allows you to modify the interior without any error checking. Returning the readonly collection or some dedicated container would be better.


Comments