Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27517

VS 2012 [RESOLVED] Getting the contents of a certain line of a string

$
0
0
If I have a string that has many lines in it, what is the best way to get the contents of a certain line?
E.g If the string is as follows:

Code:

    Public Property TestProperty1 As String
        Get
            Return _Name
        End Get
        Set(value As String)
            _Name = value
        End Set
    End Property

What is the best way to get the contents of line 2 ("Get")?

Viewing all articles
Browse latest Browse all 27517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>