It looks like this code is parsing a code file and extracting class names from any class declarations contained in the code.
First it asks: Does "oneline" start with with "Public Class "
If so, then it executes all of the code in that if block.
- Get the character location of "Class " and add 6
- Instantiate a couple arrays (one string, one char)
- Set the "separators" array to contain 2 elements (the tab character and a space)
- Set "names" to contain elements based on the result of splitting the sub string of "oneline" (starting at "nameStart") into pieces based on either the tab or space character.
- Instantiate and set "className" to the first element of the "names" array.
- Set the class/module scope array "m_classNames" element located at index "m_classCount" to the value in "className"
- Increment the class/module scope variable "m_classCount" by 1
The result of something like is that for the given "oneline" value of:
Public Class MyClass
you'll end up with "className" equaling "MyClass" and the counter will increment.
How are you trying to learn VB
.NET? Have you got an intro to VB
.NET book yet? This seems like a round-about way of learning if you asked me.